/* ==========================================================================
   STYLING SITE PRINCIPAL GUTENBERG (EDITORIAL / ACCESSIBLE LIGHT MODE)
   ========================================================================== */

:root {
    --bg-main: #f9f7f1;
    --bg-card: #ffffff;
    --text-dark: #1f2421;
    --text-muted: #6b7280;
    --brand-terracotta: #e0664e;
    --brand-sage: #a4beac;
    --brand-gold: #d8b063;
    --brand-forest: #1e3a34;
    --brand-plum: #7e4b5b;
    --brand-dusty: #c89f9c;
    --border-light: #e5e0d8;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Plus Jakarta Sans', -apple-system, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.theme-gutenberg {
    background-color: var(--bg-main);
    color: var(--text-dark);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

/* TOP ANNOUNCEMENT BAR */
.top-announcement {
    background-color: var(--brand-forest);
    color: #e2e8f0;
    text-align: center;
    padding: 8px 16px;
    font-size: 0.75rem;
    letter-spacing: 1px;
    font-weight: 600;
}

/* MAIN HEADER */
.main-header {
    background-color: var(--bg-main);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.logo-icon {
    font-size: 1.5rem;
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.main-nav {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-btn {
    background: none;
    border: none;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s;
}

.nav-btn:hover, .nav-btn.active {
    color: var(--brand-terracotta);
}

.highlight-dash {
    background: rgba(6, 182, 212, 0.1);
    color: #0284c7;
    font-weight: 700;
    border: 1px solid rgba(6, 182, 212, 0.3);
    display: flex;
    align-items: center;
    gap: 6px;
}

.dash-dot {
    width: 8px;
    height: 8px;
    background-color: #06b6d4;
    border-radius: 50%;
    box-shadow: 0 0 8px #06b6d4;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
}

/* VIEWS TOGGLE */
.view-section {
    display: none;
}

.view-section.active {
    display: block;
}

/* HERO SECTION */
.hero-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 60px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.tagline {
    color: var(--brand-terracotta);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 4rem;
    line-height: 1.05;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.btn {
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background-color: var(--brand-terracotta);
    color: white;
}

.btn-primary:hover {
    background-color: #cb533b;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-dark);
}

.btn-secondary:hover {
    background: rgba(0,0,0,0.05);
}

.hero-badges {
    display: flex;
    align-items: center;
    gap: 16px;
}

.avatar-group {
    display: flex;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    border: 2px solid var(--bg-main);
    margin-left: -10px;
}

.avatar:first-child { margin-left: 0; }
.av-1 { background-color: var(--brand-gold); }
.av-2 { background-color: var(--brand-terracotta); }
.av-3 { background-color: var(--brand-sage); }

.badge-text {
    font-size: 0.85rem;
    line-height: 1.3;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 500px;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.since-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(235, 222, 198, 0.9);
    backdrop-filter: blur(4px);
    border: 1px solid var(--brand-gold);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: var(--brand-forest);
}

/* CATALOG SECTION */
.catalog-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 60px 24px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
}

.sub-label {
    font-size: 0.75rem;
    color: var(--brand-terracotta);
    font-weight: 700;
    letter-spacing: 1px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 800;
}

.search-box {
    position: relative;
    width: 300px;
}

.search-box input {
    width: 100%;
    padding: 10px 16px 10px 36px;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    background-color: white;
    font-family: var(--font-sans);
    outline: none;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    opacity: 0.5;
}

.filter-pills {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.pill {
    padding: 8px 18px;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    background: white;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}

.pill.active, .pill:hover {
    background-color: var(--brand-forest);
    color: white;
    border-color: var(--brand-forest);
}

/* BOOKS GRID & COVERS STYLING */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 32px;
}

.book-card {
    display: flex;
    flex-direction: column;
}

.cover-wrapper {
    height: 360px;
    border-radius: 8px;
    padding: 24px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    transition: transform 0.3s ease;
}

.book-card:hover .cover-wrapper {
    transform: translateY(-6px);
}

.cover-terracotta { background-color: var(--brand-terracotta); }
.cover-sage { background-color: var(--brand-sage); }
.cover-gold { background-color: #d1b16a; }
.cover-forest { background-color: var(--brand-forest); }
.cover-plum { background-color: var(--brand-plum); }
.cover-dusty { background-color: var(--brand-dusty); }
.cover-dark { background-color: #26292b; }

.fav-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cover-frame {
    width: 100%;
    height: 100%;
    border: 1px solid rgba(255,255,255,0.4);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 24px 16px;
    text-align: center;
    color: white;
}

.frame-arch { border-radius: 120px 120px 0 0; }
.frame-oval { border-radius: 50%; }
.frame-double { border: 3px double rgba(255,255,255,0.5); }

.cover-author {
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.cover-title {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
}

.cover-brand {
    font-family: var(--font-serif);
    font-size: 0.75rem;
    font-style: italic;
    opacity: 0.8;
}

.book-info {
    padding-top: 16px;
}

.book-cat {
    font-size: 0.65rem;
    color: var(--brand-terracotta);
    font-weight: 700;
    letter-spacing: 1px;
}

.book-name {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 4px 0;
}

.book-author-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.book-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-light);
    padding-top: 12px;
}

.badge-free {
    background-color: #e6f4ea;
    color: #137333;
    font-size: 0.65rem;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 700;
}

.action-links {
    display: flex;
    gap: 8px;
}

.action-links button {
    background: none;
    border: none;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-dark);
    cursor: pointer;
}

.action-links button:hover {
    color: var(--brand-terracotta);
}

/* BANNER SECTION */
.banner-section {
    background-color: var(--brand-forest);
    color: white;
    max-width: 1280px;
    margin: 60px auto;
    border-radius: 16px;
    padding: 60px 48px;
    display: grid;
    grid-template-columns: 180px 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.banner-circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.big-g {
    font-family: var(--font-serif);
    font-size: 6rem;
    font-weight: 800;
    color: #ffffff;
}

.tag-gold {
    color: var(--brand-gold);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.banner-text h2 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    margin: 8px 0 16px 0;
}

.banner-text p {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.btn-white {
    background-color: white;
    color: var(--brand-forest);
}

.banner-list {
    border-left: 1px solid rgba(255,255,255,0.15);
    padding-left: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.banner-item {
    display: flex;
    gap: 16px;
    align-items: center;
}

.banner-item .num {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--brand-gold);
}

.banner-item p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.9);
}

.welcome-toast {
    position: fixed;
    z-index: 200;
    top: 24px;
    right: 24px;
    max-width: calc(100vw - 48px);
    padding: 16px 22px;
    border-radius: 12px;
    background: var(--brand-forest);
    color: #fff;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 0.25s, transform 0.25s;
}

.welcome-toast[hidden] {
    display: none;
}

.welcome-toast.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .welcome-toast {
        transition: none;
    }
}

/* FOOTER */
.main-footer {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 24px;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}