/* =========================
   HEADER
========================= */

.header-container{
    max-width:1200px;
    margin:0 auto;
}

.site-header{
    background:#ffffff;
    border-bottom:1px solid #e5e5e5;
    position:sticky;
    top:0;
    z-index:1000;
}

/* =========================
   TOP HEADER
========================= */

.header-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    padding:16px 32px;
    flex-wrap:wrap;
}

/* =========================
   LOGO
========================= */

.logo-link{
    display:flex;
    align-items:center;
    gap:12px;
    text-decoration:none;
}

.logo img{
    height:56px;
    width:auto;
    display:block;
}

.site-name{
    font-family:'Merriweather', serif;
    font-size:1.25rem;
    font-weight:700;
    color:#1f1f1f;
    line-height:1.2;
}

/* =========================
   SEARCH
========================= */

.header-search{
    flex:1;
    max-width:500px;
    min-width:260px;
}

.header-search form{
    display:flex;
    align-items:center;
}

.header-search input{
    flex:1;
    padding:12px 16px;
    border:1px solid #d0d0d0;
    border-right:none;
    border-radius:8px 0 0 8px;
    font-family:'Inter', sans-serif;
    font-size:0.95rem;
    outline:none;
}

.header-search input:focus{
    border-color:#888;
}

.header-search button{
    padding:12px 18px;
    border:none;
    background:#1f1f1f;
    color:#ffffff;
    border-radius:0 8px 8px 0;
    cursor:pointer;
    font-family:'Inter', sans-serif;
    font-weight:500;
    transition:0.2s ease;
}

.header-search button:hover{
    opacity:0.9;
}
.header-search {
    position: relative;
}

#search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    display: none;
    z-index: 9999;
    max-height: 400px;
    overflow-y: auto;
}

#search-suggestions a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #222;
    border-bottom: 1px solid #eee;
}

#search-suggestions a:hover {
    background: #f5f5f5;
}

/* =========================
   ACCOUNT BUTTON
========================= */

.account-btn{
    display:inline-block;
    padding:10px 18px;
    background:#1f1f1f;
    color:#ffffff;
    text-decoration:none;
    border-radius:8px;
    font-family:'Inter', sans-serif;
    font-size:0.95rem;
    font-weight:500;
    transition:0.2s ease;
}

.account-btn:hover{
    opacity:0.9;
}

/* =========================
   NAVIGATION
========================= */

.header-bottom{
    border-top:1px solid #f0f0f0;
    padding:12px 32px;
    display:flex;
    justify-content:center;
}

.nav{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:32px;
    flex-wrap:wrap;
}

.nav a{
    text-decoration:none;
    color:#333333;
    font-family:'Inter', sans-serif;
    font-size:0.95rem;
    font-weight:500;
    transition:0.2s ease;
}

.nav a:hover{
    color:#7a1f1f;
}

/* =========================
   HERO SECTION
========================= */

.hero-section{
    background:#f8f3ea;
    padding:80px 20px;
}

.hero-content{
    max-width:1200px;
    margin:0 auto;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:60px;
    flex-wrap:wrap;
}

.hero-text{
    flex:1;
    min-width:320px;
}

.hero-text h1{
    font-size:56px;
    line-height:1.15;
    margin-bottom:24px;
    color:#1f1f1f;
}

.hero-subtitle{
    font-size:18px;
    line-height:1.9;
    color:#5c5348;
    max-width:650px;
    margin-bottom:36px;
}

.hero-buttons{
    display:flex;
    gap:18px;
    flex-wrap:wrap;
}

.hero-btn{
    display:inline-block;
    padding:14px 28px;
    border-radius:8px;
    text-decoration:none;
    font-family:'Inter', sans-serif;
    font-weight:600;
    transition:0.2s ease;
}

.primary-btn{
    background:#1f1f1f;
    color:#ffffff;
}

.primary-btn:hover{
    opacity:0.9;
}

.secondary-btn{
    border:1px solid #1f1f1f;
    color:#1f1f1f;
    background:transparent;
}

.secondary-btn:hover{
    background:#1f1f1f;
    color:#ffffff;
}

.hero-visual{
    flex:1;
    min-width:320px;
    display:flex;
    justify-content:center;
    gap:20px;
    flex-wrap:wrap;
}

.hero-book{
    width:140px;
    transform:rotate(-2deg);
}

.hero-book:nth-child(even){
    transform:rotate(2deg);
}

.hero-book img{
    width:100%;
    border-radius:10px;
    box-shadow:0 8px 24px rgba(0,0,0,0.12);
}

.hero-buttons{
    display:flex;
    gap:16px;
    margin-top:30px;
    flex-wrap:wrap;
}

.hero-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:14px 28px;
    border-radius:8px;
    text-decoration:none;
    font-family:'Inter', sans-serif;
    font-size:15px;
    font-weight:600;
    transition:0.2s ease;
}

.primary-btn{
    background:#1f1f1f;
    color:#ffffff;
}

.primary-btn:hover{
    background:#000000;
}

.secondary-btn{
    border:1px solid #1f1f1f;
    color:#1f1f1f;
    background:transparent;
}

.secondary-btn:hover{
    background:#1f1f1f;
    color:#ffffff;
}

/* =========================
   HERO VISUAL COLLAGE
========================= */

.hero-visual{
    position:relative;
    height:520px;
}

.hero-book{
    position:absolute;
    width:180px;
    transition:0.3s ease;
}

.hero-book img{
    width:100%;
    display:block;
    border-radius:12px;
    box-shadow:0 12px 30px rgba(0,0,0,0.18);
}

/* Individual placements */

.hero-book-1{
    top:0;
    left:40px;
    transform:rotate(-8deg);
}

.hero-book-2{
    top:120px;
    left:220px;
    transform:rotate(6deg);
}

.hero-book-3{
    top:250px;
    left:60px;
    transform:rotate(-5deg);
}

.hero-book-4{
    top:40px;
    left:260px;
    transform:rotate(10deg);
}

.hero-book-5{
    top:260px;
    left:260px;
    transform:rotate(-4deg);
}

.hero-book:hover{
    transform:scale(1.04);
    z-index:10;
}

/* =========================
   HERO MOBILE
========================= */

@media(max-width:768px){

    .hero-section{
        padding:60px 20px;
    }

    .hero-content{
        flex-direction:column;
        text-align:center;
    }

    .hero-text h1{
        font-size:38px;
    }

    .hero-subtitle{
        font-size:16px;
    }

    .hero-buttons{
        justify-content:center;
    }

}

@media(max-width:768px){

    .hero-content{
        grid-template-columns:1fr;
        gap:50px;
    }

    .hero-text{
        text-align:center;
    }

    .hero-buttons{
        justify-content:center;
    }

    .hero-visual{
        height:420px;
        transform:scale(0.82);
    }

}

/* =========================
   MOBILE RESPONSIVE
========================= */

@media (max-width: 768px){

    .header-top{
        flex-direction:column;
        align-items:stretch;
        padding:16px 20px;
    }

    .logo-link{
        justify-content:center;
    }

    .site-name{
        font-size:1.05rem;
        text-align:center;
    }

    .header-search{
        max-width:100%;
    }

    .header-account{
        text-align:center;
    }

    .header-bottom{
        padding:12px 20px;
    }

    .nav{
        gap:18px;
    }

}

*{
    box-sizing:border-box;
}

body{
    margin:0;
    font-family:'Inter',sans-serif;
    background:#f6f0e5;
    color:#2b2620;
    line-height:1.6;
}

.container{
    max-width:1200px;
    margin:auto;
    padding:40px 20px;
}

.site-footer{
    margin-top:80px;
    background:#2b2620;
    color:#f3ede3;
    padding:60px 20px 30px;
}

.footer-inner{
    max-width:1200px;
    margin:auto;
    display:grid;
    grid-template-columns:2fr repeat(4, 1fr);
    gap:24px;
}

.footer-column h3{
    font-family:'Merriweather',serif;
    font-size:18px;
    margin-bottom:18px;
    color:#ffffff;
}

.footer-column p{
    margin:0 0 14px;
    font-size:14px;
    line-height:1.8;
}

.footer-column a{
    display:block;
    color:#f3ede3;
    text-decoration:none;
    margin-bottom:12px;
    font-size:14px;
    transition:0.3s;
}

.footer-column a:hover{
    color:#b7791f;
}

.footer-bottom{
    max-width:1200px;
    margin:50px auto 0;
    padding-top:20px;
    border-top:1px solid rgba(255,255,255,0.1);
    text-align:center;
    font-size:13px;
    color:#c8bfb2;
}

/* =========================
   SECTION HEADERS
========================= */

.section-header{
    text-align:center;
    margin-bottom:50px;
}

.section-header h2{
    font-family:'Merriweather', serif;
    font-size:40px;
    color:#1f1f1f;
    margin-bottom:16px;
}

.section-header p{
    max-width:760px;
    margin:0 auto;
    font-size:17px;
    line-height:1.8;
    color:#5c5348;
}

/* =========================
   FEATURED CATEGORIES
========================= */

.featured-categories-section{
    padding:80px 20px;
    background:#ffffff;
}

/* =========================
   CATEGORIES GRID
========================= */

.categories-grid{
    display:grid;
    grid-template-columns:repeat(4, 1fr);
    gap:28px;
}

/* =========================
   CATEGORY CARD
========================= */

.category-card{
    background:#ffffff;
    border-radius:18px;
    overflow:hidden;
    text-decoration:none;
    color:inherit;
    box-shadow:0 6px 20px rgba(0,0,0,0.06);
    transition:0.25s ease;
    border:1px solid #ece7df;
    display:flex;
    flex-direction:column;
    height:100%;
}

.category-card:hover{
    transform:translateY(-6px);
    box-shadow:0 12px 28px rgba(0,0,0,0.12);
}

/* =========================
   CATEGORY IMAGE
========================= */

.category-image{
    width:100%;
    aspect-ratio:4/3;
    overflow:hidden;
    background:#f2ede5;
}

.category-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition:0.3s ease;
}

.category-card:hover .category-image img{
    transform:scale(1.04);
}

/* =========================
   CATEGORY CONTENT
========================= */

.category-content{
    padding:24px;
    display:flex;
    flex-direction:column;
    flex:1;
}

.category-content h3{
    font-family:'Merriweather', serif;
    font-size:22px;
    line-height:1.4;
    color:#1f1f1f;
    margin:0 0 14px;
}

.category-content p{
    font-size:15px;
    line-height:1.8;
    color:#5c5348;
    margin:0 0 20px;
    flex:1;
}

/* =========================
   CATEGORY META
========================= */

.category-meta{
    font-size:14px;
    font-weight:600;
    color:#7a1f1f;
    margin-top:auto;
}

/* =========================
   VIEW ALL BUTTON
========================= */

.view-all-wrapper{
    text-align:center;
    padding:10px 20px 80px;
}

.view-all-btn{
    display:inline-block;
    padding:14px 30px;
    background:#1f1f1f;
    color:#ffffff;
    text-decoration:none;
    border-radius:8px;
    font-weight:600;
    transition:0.2s ease;
}

.view-all-btn:hover{
    background:#000000;
}

/* =========================
   PAGE HERO
========================= */

.page-hero{
    background:#f8f3ea;
    padding:70px 20px;
    text-align:center;
}

.page-hero-content{
    max-width:900px;
    margin:0 auto;
}

.page-hero h1{
    font-family:'Merriweather', serif;
    font-size:52px;
    line-height:1.2;
    color:#1f1f1f;
    margin-bottom:24px;
}

.page-hero p{
    font-size:18px;
    line-height:1.9;
    color:#5c5348;
}

/* =========================
   BOOK GRID
========================= */

.grid{
    display:grid;
    grid-template-columns:repeat(4, 1fr);
    gap:28px;
}

.book-link{
    text-decoration:none;
    color:inherit;
}

.book-card{
    background:#ffffff;
    border-radius:16px;
    overflow:hidden;
    box-shadow:0 6px 20px rgba(0,0,0,0.06);
    transition:0.25s ease;
    border:1px solid #ece7df;
    height:100%;
}

.book-card:hover{
    transform:translateY(-5px);
    box-shadow:0 12px 28px rgba(0,0,0,0.12);
}

.book-card img{
    width:100%;
    aspect-ratio:2/3;
    object-fit:cover;
    display:block;
}

.book-info{
    padding:18px;
}

.book-title{
    font-size:16px;
    line-height:1.6;
    font-weight:600;
    color:#1f1f1f;
    margin-bottom:10px;
}

.book-price{
    font-size:15px;
    color:#7a1f1f;
    font-weight:700;
}

/* =========================
   TABLET RESPONSIVE
========================= */

@media(max-width:1024px){

    .categories-grid{
        grid-template-columns:repeat(2, 1fr);
    }

    .grid{
        grid-template-columns:repeat(2, 1fr);
    }

}

/* =========================
   MOBILE RESPONSIVE
========================= */

@media(max-width:768px){

    .section-header h2{
        font-size:32px;
    }

    .page-hero h1{
        font-size:38px;
    }

    .page-hero p{
        font-size:16px;
    }

    .categories-grid{
        grid-template-columns:1fr;
        gap:24px;
    }

    .grid{
        grid-template-columns:1fr;
        gap:24px;
    }

    .category-content{
        padding:20px;
    }

    .category-content h3{
        font-size:20px;
    }

}

/* =========================
   CATEGORY PAGE
========================= */

.category-banner-section{
    padding:0 20px 40px;
}

.category-banner-image{
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 10px 30px rgba(0,0,0,0.10);
}

.category-banner-image img{
    width:100%;
    display:block;
}

.category-books-section{
    padding:20px 20px 80px;
}

.empty-state{
    background:#ffffff;
    border-radius:16px;
    padding:60px 30px;
    text-align:center;
    border:1px solid #ece7df;
}

.empty-state p{
    font-size:18px;
    color:#5c5348;
}

/* =========================
   AUTHORS SECTION
========================= */

.authors-section{
    background:#ffffff;
    padding:20px 0 60px;
}

.authors-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:28px;
}

.author-card{
    background:#ffffff;
    border-radius:16px;
    overflow:hidden;
    box-shadow:0 6px 20px rgba(0,0,0,0.06);
    transition:0.25s ease;
    border:1px solid #ece6db;
}

.author-card:hover{
    transform:translateY(-4px);
}

.author-photo{
    aspect-ratio:1/1;
    background:#f3ede3;
    overflow:hidden;
}

.author-photo img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.author-content{
    padding:22px;
}

.author-content h3{
    margin:0 0 14px;
    font-size:22px;
    line-height:1.3;
    color:#1f1f1f;
    font-family:'Merriweather', serif;
}

.author-description{
    font-size:15px;
    line-height:1.8;
    color:#5c5348;
    margin-bottom:20px;

    display:-webkit-box;
    -webkit-line-clamp:4;
    -webkit-box-orient:vertical;
    overflow:hidden;
}

.author-btn{
    display:inline-block;
    padding:12px 18px;
    border-radius:8px;
    background:#1f1f1f;
    color:#ffffff;
    text-decoration:none;
    font-size:14px;
    font-weight:600;
    transition:0.2s ease;
}

.author-btn:hover{
    opacity:0.9;
}

/* =========================
   ABOUT PLATFORM
========================= */

.about-platform-section{
    background:#f8f3ea;
    padding:80px 20px;
}

.about-platform-inner{
    max-width:900px;
    margin:0 auto;
    text-align:center;
}

.about-platform-inner h2{
    font-size:40px;
    margin-bottom:24px;
    color:#1f1f1f;
    font-family:'Merriweather', serif;
}

.about-platform-inner p{
    font-size:18px;
    line-height:1.9;
    color:#5c5348;
    margin-bottom:32px;
}

.about-platform-btn{
    display:inline-block;
    padding:14px 28px;
    background:#1f1f1f;
    color:#ffffff;
    text-decoration:none;
    border-radius:8px;
    font-weight:600;
    transition:0.2s ease;
}

.about-platform-btn:hover{
    opacity:0.9;
}

/* =========================
   PUBLISHING PAGE
========================= */

.publishing-hero{
    background:#f8f3ea;
    padding:100px 20px;
    text-align:center;
}

.publishing-hero-inner{
    max-width:900px;
    margin:auto;
}

.publishing-hero h1{
    font-size:56px;
    margin-bottom:24px;
    color:#1f1f1f;
}

.publishing-hero-text{
    font-size:19px;
    line-height:1.9;
    color:#5c5348;
}

.publishing-section{
    padding:80px 20px;
}

.publishing-alt{
    background:#fbf7f0;
}

.narrow-container{
    max-width:850px;
}

.publishing-section p{
    font-size:17px;
    line-height:1.9;
    color:#4d463d;
    margin-bottom:24px;
}

.publishing-list{
    padding-left:20px;
}

.publishing-list li{
    margin-bottom:16px;
    font-size:17px;
    line-height:1.8;
}

.publishing-steps{
    display:grid;
    gap:18px;
    margin-top:40px;
}

.publishing-step{
    background:#ffffff;
    border:1px solid #ece3d6;
    padding:20px 24px;
    border-radius:12px;
    font-size:16px;
    display:flex;
    align-items:center;
    gap:16px;
}

.publishing-step span{
    width:36px;
    height:36px;
    background:#1f1f1f;
    color:#ffffff;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:700;
}

.faq-item{
    margin-bottom:36px;
}

.faq-item h3{
    margin-bottom:12px;
    font-size:24px;
}

.publishing-contact-section{
    background:#2b2620;
    color:#f3ede3;
    text-align:center;
    padding:90px 20px;
}

.publishing-contact-section h2{
    font-size:42px;
    margin-bottom:20px;
}

.publishing-contact-section p{
    max-width:700px;
    margin:0 auto 30px;
    line-height:1.9;
    font-size:18px;
}

@media(max-width:768px){

    .publishing-hero{
        padding:70px 20px;
    }

    .publishing-hero h1{
        font-size:38px;
    }

    .publishing-hero-text{
        font-size:17px;
    }

    .publishing-section{
        padding:60px 20px;
    }

    .publishing-contact-section h2{
        font-size:32px;
    }

}

/*
|--------------------------------------------------------------------------
| PUBLISHING CTA SECTION
|--------------------------------------------------------------------------
*/

.publishing-cta-section {

    padding: 90px 20px;

    background: #f8f6f1;
}

.publishing-cta-inner {

    max-width: 850px;

    margin: 0 auto;

    text-align: center;
}

.publishing-cta-inner h2 {

    font-size: 42px;

    margin-bottom: 25px;

    line-height: 1.2;
}

.publishing-cta-inner p {

    font-size: 18px;

    line-height: 1.9;

    color: #444;

    margin-bottom: 40px;
}

.publishing-cta-btn {

    display: inline-block;

    padding: 16px 34px;

    background: #111;

    color: #fff;

    text-decoration: none;

    border-radius: 6px;

    font-weight: 600;

    transition: 0.3s ease;
}

.publishing-cta-btn:hover {

    background: #333;
}

.book-author {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #666;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.account-form{
    max-width:500px;
    margin:50px auto;
    padding:30px;
    border:1px solid #ddd;
    border-radius:8px;
    background:#fff;
}

.account-form h1{
    text-align:center;
    margin-bottom:25px;
}

.account-form p{
    margin-bottom:15px;
}

.account-form input{
    width:100%;
    padding:12px;
    box-sizing:border-box;
}

.account-form button{
    width:100%;
    padding:12px;
    cursor:pointer;
}

.success-message{
    color:green;
    text-align:center;
    margin-bottom:20px;
}

.error-message{
    color:red;
    text-align:center;
    margin-bottom:20px;
}

