/* Base styles - copying from original with BookClub modifications */
*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Georgia, 'Times New Roman', Times, serif;
    line-height: 1.6;
    color: #333;
}

/* Navbar Styles */
.navbar {
    background: #131313;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 50px;
}

#navbar__logo {
    background-color: #ff8177;
    background-image: linear-gradient(to top, #ff0844 0%, #df4f27 100%);
    background-size: 100%;
    -webkit-background-clip: text;
    -moz-background-clip: text;
    -ms-background-clip: text;
    -o-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-text-fill-color: transparent;
    display: flex;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    font-size: 2rem;
}

.navbar__menu {
    display: flex;
    justify-content: space-around;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar__item {
    margin: 0 0.5rem;
    height: 80px;
}

.navbar__links {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    transition: all 0.3s ease;
}

.navbar__links:hover {
    color: #ff8177;
    transform: translateY(-2px);
}

.navbar__links.active {
    font-weight: bold;
    color: #ff0844;
}

.navbar__btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 1rem;
    width: 100%;
} 

.button {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    padding: 10px 20px;
    height: 100%;
    width: 100%;
    border: none;
    outline: none;
    border-radius: 4px;
    background-image: linear-gradient(to top, #ff0844 0%, #ffb199 100%); 
    color: #fff;
    transition: all 0.3s ease;
}

.button:hover {
    background: #fe5196;
    transform: scale(1.05);
}

/* Mobile Menu Styles */
@media screen and (max-width:960px) {
    .navbar__container {
        display: flex;
        justify-content: space-between;
        height: 100%;
        z-index: 1;
        width: 100%;
        max-width: 1300px;
        padding: 0;
    }
    
    .navbar__menu {
        display: grid;
        grid-template-columns: auto;
        margin: 0;
        width: 100%;
        position: absolute;
        top: -1000px;
        opacity: 0;
        transition: all 0.5s ease;
        z-index: -1;
        background: #131313;
    }

    .navbar__menu.active {
        background: #131313;
        top: 100%;
        opacity: 1;
        transition: all 0.5s ease;
        z-index: 99;
        height: auto;
        padding: 30px 0;
    }

    #navbar__logo {
        padding-left: 25px;
    }

    .navbar__toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        cursor: pointer;
        height: 100%;
        padding: 0;
        margin-right: 25px;
    }

    .bar {
        width: 25px;
        height: 3px;
        margin: 3px auto;
        transition: all 0.3s ease-in-out;
        background: #fff;
        display: block;
    }

    .navbar__item {
        width: 100%;
        padding: 1rem;
    }

    .navbar__links {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .navbar__btn {
        width: 100%;
        padding: 1rem;
    }

    .button {
        width: 80%;
        margin: 0 auto;
    }

    .navbar__toggle .bar {
        display: block;
        cursor: pointer;
    }

    #mobile-menu.is-active .bar:nth-child(2) {
        opacity: 0;
    }

    #mobile-menu.is-active .bar:nth-child(1) {
        transform: translateX(8px) rotate(45deg);
    }
    #mobile-menu.is-active .bar:nth-child(3) {
        transform: translateX(-8px) rotate(-45deg);
    }
}

/* Hero section CSS */
.main {
    background-color: #141414;
}

.main__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    justify-self: center;
    margin: 0 auto;
    height: 90vh;
    background-color: #141414;
    z-index: 1;
    width: 100%;
    max-width: 1300px;
    padding: 0 50px;
}

.main__content h1 {
    font-size: 3rem;
    color: aliceblue;
    background-image: linear-gradient(to top, #ff0844 0%, #ffb199 100%);
    background-size: 100%;
    -webkit-background-clip: text;
    -moz-background-clip: text;
    -ms-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-text-fill-color: transparent;
}

.main__container h2 {
    font-size: 3rem;
    color: aliceblue;
    background-image: linear-gradient(to top, #b721ff 0%, #21d4fd 100%);
    background-size: 100%;
    -webkit-background-clip: text;
    -moz-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-text-fill-color: transparent;
}

.main__content p {
    margin-top: 1rem;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
}

.main__btn {
   font-size: 2rem;
   background-image: linear-gradient(to top, #f7706f 0%, #fe5196 100% );
   padding: 14px 28px;
   border: none;
   border-radius: 4px;
   margin-top: 2.5rem;
   cursor: pointer;
   position: relative;
   transition: all 0.35s;
   outline: none;
}

.main__btn a {
    position: relative;
    z-index: 2;
    color: #fff;
    text-decoration: none;
}

.main__btn::after {
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #ff0844;
    transition: all 0.35s;
    border-radius: 4px;
}

.main__btn:hover::after {
    width: 100%;
}

.main__img--container {
    text-align: center;
}

#main__img {
    height: 80%;
    width: 80%;
}

/* Services Section CSS */
.services {
    background: #141414;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 100px 0;
}

.services h1 {
    background-color: #ff8177;
    background-image: linear-gradient(to right, 
    #ff8177 0%, 
    #ff867a 0%,
    #ff8c7f 21%,
    #f99185 52%,
    #cf556c 78%,
    #b12a5b 100%
    );
    background-size: 100%;
    margin-bottom: 5rem;
    font-size: 2.5rem;
    -webkit-background-clip: text;
    -moz-background-clip: text;
    -ms-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-text-fill-color: transparent;
}

.services__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    padding: 0 2rem;
}

.services__card {
    background: linear-gradient(to bottom, 
    rgba(0,0,0,0) 0%, 
    rgba(17, 17, 17, 0.8) 100%
    );
    border-radius: 10px;
    height: 400px;
    position: relative;
    color: #fff;
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
}

.services__card:hover {
    transform: scale(1.05);
}

.services__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

.services__card h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.services__card p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.services__card button {
   color: white;
   padding: 12px 24px;
   border: none;
   border-radius: 4px;
   background: linear-gradient(to right, #ff0844 0%, #fe5196 100%);
   font-size: 1.1rem;
   cursor: pointer;
   transition: all 0.3s ease;
   align-self: flex-start;
}

.services__card button:hover {
    background: linear-gradient(to right, #fe5196 0%, #ff0844 100%);
    transform: translateY(-2px);
}

/* Featured Books Section */
.featured-books {
    background: #f8f9fa;
    padding: 100px 0;
}

.featured-books__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.featured-books h1 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    background: linear-gradient(to right, #ff0844 0%, #fe5196 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.featured-books__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

/* Book Card Styles */
.book__card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.book__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.book__card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.book__card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.book__card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.book__card .author {
    color: #666;
    font-style: italic;
    margin-bottom: 1rem;
}

.book__card .rating {
    color: #ff0844;
    margin-bottom: 1rem;
}

.book__card .description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.book__actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    flex: 1;
}

.btn-primary {
    background: linear-gradient(to right, #ff0844 0%, #fe5196 100%);
    color: white;
}

.btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

.btn:hover {
    transform: translateY(-2px);
}

/* Footer CSS */
.footer__container {
    background: #141414;
    display:flex;
    padding: 40px 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.footer__links {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    max-width: 1000px;
    margin: 40px auto 0 auto;
}

.footer__wrapper {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
}

.footer__link--items {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 16px;
    width: 200px;
    box-sizing: border-box;
}

.footer__link--items h2 {
    margin-bottom: 16px;
    color: #fff;
}

.footer__link--items a {
    color: #fff;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: 0.3s ease-out;
}

.footer__link--items a:hover {
    color: #ff0844;
    transition: 0.3s ease-out;
}

.social__icon--link {
    color: #fff;
    font-size: 24px;
}

.social__media {
    background: #1a1a1a;
    padding: 1rem 0;
    width: 100%;
}

.social__media--wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1000px;
    margin: 40px auto 0 auto;
}

.footer__logo {
    display: flex;
    align-items: center;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    font-size: 2rem;
}

.footer__logo a {
    color: #ff0844;
    text-decoration: none;
}

.footer__logo i {
    margin-right: 0.5rem;
}

.website__rights {
    text-align: center;
    color: #96475a;
}

.social__icons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 240px;
}

/* Mobile Responsiveness */
@media screen and (max-width: 770px) {
    .main__container{
        display: grid;
        grid-template-columns: auto;
        align-items: center;
        justify-self: center;
        width: 100%;
        margin: 0 auto;
        height: 90%;
    }

    .main__content{
        text-align: center;
        margin-bottom: 4rem;
    }
    
    .main__content h1 {
        font-size: 2.5rem;
        margin-top: 2rem;
    }

    .main__content h2{
        font-size: 2rem; 
    }

    .main__content p {
        margin-top: 1rem;
        font-size: 1.5rem;
    }

    .services__container {
        grid-template-columns: 1fr;
    }

    .featured-books__grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media screen and (max-width: 480px) {
    .main__content h1 {
        font-size: 2rem;
        margin-top: 3rem;
    }

    .main__content h2{
        font-size: 1.5rem; 
    }

    .main__content p {
        margin-top: 1rem;
        font-size: 1.2rem;
    }

    .main__btn{
        padding: 12px 36px;
        margin: 2.5rem 0;
    }

    .footer__wrapper {
        flex-direction: column;
    }

    .social__media--wrap {
        flex-direction: column;
    }
}

/* Authentication Message Styles */
.error-message {
    background-color: #fee;
    color: #c33;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 1rem;
    border: 1px solid #fcc;
}

.success-message {
    background-color: #efe;
    color: #3c3;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 1rem;
    border: 1px solid #cfc;
}

/* Loading Spinner */
.loading {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff0844;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}