/*
Theme Name: Dark Peacock
Author: Antigravity
Description: A minimalist dark mode theme for authors featuring a masonry grid.
Version: 1.0
*/

:root {
    --bg-color: #0a0a0a;
    --text-color: #ffffff;
    --heading-color: #ffffff;
    --border-color: #333333;
    --accent-color: #ffffff;
    --card-bg: #0a0a0a;
    --font-heading: brandon-grot-w01-light, sans-serif;
    --font-body: brandon-grot-w01-light, sans-serif;
}


/* Hamburger Menu Button (Hidden on Desktop) */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 200;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--heading-color);
    margin-bottom: 5px;
    transition: all 0.3s;
}

/* Mobile Nav State */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
        order: 3;
        position: absolute;
        right: 20px;
        top: 20px;
        /* Adjust as needed based on header padding */
    }

    .main-navigation {
        display: none;
        /* Hidden by default on mobile */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-color);
        border-bottom: 1px solid var(--border-color);
        padding: 1rem 0;
        z-index: 100;
        margin-top: 10px;
        /* Space from header */
    }

    .main-navigation.toggled {
        display: block;
        /* Show when toggled */
    }

    .main-navigation ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .site-header {
        position: relative;
        /* For absolute positioning of menu */
    }

    .site-header .container {
        justify-content: flex-start;
        /* Align logo left */
        position: static;
        /* allow absolute children relative to header or site-header */
    }

    .site-logo-img {
        height: 60px !important;
        margin-left: -90px !important;
        margin-top: -10px !important;
    }
}


html,
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--heading-color);
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    font-weight: 400;
}

a {
    color: var(--heading-color);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.8;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    padding: 10px 0;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    order: 1;
    /* Logo on the left */
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-branding img {
    max-height: 40px !important;
    margin-bottom: 0;
    margin-top: -10px !important;
}

.site-title {
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0;
}

.main-navigation {
    order: 2;
    /* Menu on the right */
    margin-top: 0;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    /* Align to right */
    gap: 30px;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    text-transform: none;
    letter-spacing: 0.05em;
    font-family: brandon-grot-w01-light, sans-serif;
    font-weight: normal;
    font-style: normal;
    font-size: 14px;
    color: #FFFFFF;
}

.main-navigation a:hover,
.main-navigation a:focus,
.main-navigation .current_page_item>a,
.main-navigation .current-menu-item>a,
.main-navigation .active>a {
    color: var(--heading-color);
    text-decoration: underline;
    font-weight: 700;
    text-underline-offset: 4px;
}

/* Hero Carousel */
.hero-carousel {
    position: relative;
    width: 100%;
    max-width: 400px;
    /* Constrain size on desktop */
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    /* Optional slight rounding */
    aspect-ratio: 4 / 5;
    /* Keep it vertical */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background: #111;
}

@media (min-width: 768px) {
    .hero-carousel {
        flex: 0 0 400px;
        margin: 0;
    }
}

.carousel-slide {
    display: none;
    width: 100%;
    height: 100%;
    transition: opacity 0.5s ease;
}

.carousel-slide.active {
    display: block;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    /* Good for portraits */
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s;
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

/* Masonry Grid */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.post-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    border-color: #555;
    transform: translateY(-2px);
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.post-card:hover .post-thumbnail img {
    filter: grayscale(0%);
}

.post-content {
    padding: 2rem;
}

.post-categories {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    display: block;
}

.post-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.post-excerpt {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2px;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border-color);
    padding: 4rem 0;
    margin-top: auto;
    text-align: center;
}

.newsletter-block {
    max-width: 500px;
    margin: 0 auto 3rem;
}

.newsletter-block h3 {
    margin-bottom: 1rem;
}

.newsletter-block p {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input[type="email"] {
    flex: 1;
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 12px;
    color: var(--heading-color);
    border-radius: 4px;
}

.newsletter-form button {
    background: var(--heading-color);
    color: var(--bg-color);
    border: none;
    padding: 0 24px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.footer-credits {
    font-size: 0.8rem;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 768px) {
    .site-header {
        padding: 20px 0;
    }

    .main-navigation ul {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .masonry-grid {
        grid-template-columns: 1fr;
    }
}

/* Page Specifics */
.skin-narrow {
    max-width: 800px;
}

.centered-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.text-focus {
    font-size: 1.1rem;
    line-height: 1.8;
}

.separator-small {
    border: 0;
    height: 1px;
    background: var(--border-color);
    margin: 2rem auto;
    width: 100px;
}

/* Books Grid */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 3rem;
    margin: 3rem 0;
}

.book-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.book-cover {
    width: 160px;
    height: 240px;
    background: #1a1a1a;
    border: 1px solid #333;
    position: relative;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.book-cover:hover {
    transform: translateY(-5px);
}

.book-spine {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(0, 0, 0, 0.5);
}

.book-title-face {
    font-family: var(--font-heading);
    color: var(--heading-color);
    font-size: 1rem;
    text-transform: uppercase;
}

/* Book Variants */
.book-cover.type-2 {
    background: #222;
}

.book-cover.type-3 {
    background: #151515;
}

.book-details h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.book-meta {
    font-size: 0.8rem;
    color: #666;
    display: block;
    margin-bottom: 0.5rem;
}



/* Single Book Layout */
.single-book-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    margin-top: 2rem;
}

.single-book-cover {
    width: 100%;
    position: sticky;
    top: 2rem;
}

.book-cover-large {
    width: 100%;
    height: 450px;
    /* larger aspect ratio */
    background: #1a1a1a;
    border: 1px solid #333;
    box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.single-book-meta {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #888;
}

.single-book-meta li {
    list-style: none;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #222;
    padding-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
}

.book-synopsis {
    font-size: 1.1rem;
    line-height: 1.8;
}

.book-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.btn-primary {
    background: var(--heading-color);
    color: var(--bg-color);
    padding: 12px 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    display: inline-block;
}

.btn-secondary {
    background: transparent;
    color: var(--heading-color);
    border: 1px solid var(--heading-color);
    padding: 12px 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    display: inline-block;
}

/* Events List */
.event-card {
    display: flex;
    gap: 2rem;
    border: 1px solid var(--border-color);
    padding: 2rem;
    margin-bottom: 2rem;
    align-items: center;
    transition: background 0.2s;
}

.event-card:hover {
    background: #0f0f0f;
}

.event-date {
    text-align: center;
    min-width: 80px;
    border-right: 1px solid var(--border-color);
    padding-right: 2rem;
}

.event-day {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    line-height: 1;
    color: var(--heading-color);
}

.event-month {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.event-details h3 {
    margin-bottom: 0.5rem;
}

.event-info {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 1rem;
}

/* Contact Form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-form-group {
    margin-bottom: 1.5rem;
}

.contact-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-form-group input,
.contact-form-group textarea {
    width: 100%;
    background: #111;
    border: 1px solid #333;
    padding: 15px;
    color: #fff;
    font-family: var(--font-body);
}

.contact-form-group textarea {
    height: 150px;
    resize: vertical;
}

@media (max-width: 768px) {

    .single-book-container,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .event-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .event-date {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-right: 0;
        padding-bottom: 1rem;
        width: 100%;
        text-align: left;
        display: flex;
        gap: 1rem;
        align-items: baseline;
    }
}

/* ------------------------------------------------------------------------- *
 *  Home Page Specific Styles
 * ------------------------------------------------------------------------- */

/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 6rem;
    animation: fadeIn 1.2s ease-out;
}

.hero-image {
    flex: 0 0 350px;
    position: relative;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.hero-image img:hover {
    filter: grayscale(0%);
}

.hero-content {
    flex: 1;
}

.hero-subtitle {
    font-family: brandon-grot-w01-light, sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-color);
    margin-bottom: 1rem;
    display: block;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.welcome-message-tamil {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-family: brandon-grot-w01-light, sans-serif;
}

/* Section Common */
.home-section {
    margin-bottom: 6rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

.home-section:nth-child(2) {
    animation-delay: 0.3s;
}

.home-section:nth-child(3) {
    animation-delay: 0.6s;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
    border-bottom: 1px solid #222;
    padding-bottom: 1rem;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 0;
}

.view-all-link {
    font-family: brandon-grot-w01-light, sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.view-all-link:hover {
    color: var(--accent-color);
}

/* Featured Books Grid (Reuse .books-grid but simplified) */
.featured-books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Home */
@media screen and (max-width: 900px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .hero-image {
        flex: 0 0 auto;
        width: 250px;
        margin: 0 auto;
    }

    .hero-title {
        font-size: 2rem;
    }
}

html {
    scroll-behavior: smooth;
}

/* Updated Footer */
.site-footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4rem;
    padding-top: 4rem;
    border-top: 1px solid #222;
}

.footer-widget {
    flex: 1 1 300px;
}

.footer-width-full {
    width: 100%;
    margin-bottom: 2rem;
}

.footer-widget h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.site-info {
    width: 100%;
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #1a1a1a;
    font-size: 0.9rem;
    color: #555;
}

/* ------------------------------------------------------------------------- *
 *  About Page Specific Styles
 * ------------------------------------------------------------------------- */

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 3rem auto;
    padding-left: 2rem;
    border-left: 2px solid #333;
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.6rem;
    top: 5px;
    width: 12px;
    height: 12px;
    background: var(--accent-color);
    border-radius: 50%;
    border: 3px solid var(--background-color);
}

.timeline-year {
    display: inline-block;
    padding: 2px 8px;
    border: 1px solid #444;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    color: #aaa;
}

.timeline-content h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 3rem auto;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.03);
}

/* Awards List */
.awards-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.awards-list li {
    padding: 1rem 0;
    border-bottom: 1px solid #222;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.awards-list li:last-child {
    border-bottom: none;
}

.award-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.award-year {
    color: #666;
    font-size: 0.9rem;
}

.section-divider {
    margin: 4rem 0;
    border: 0;
    border-top: 1px solid #222;
}

.bio-card {
    background: #111;
    padding: 2rem;
    border-radius: 4px;
    margin-bottom: 2rem;
    border: 1px solid #222;
}

/* ------------------------------------------------------------------------- *
 *  Books Page Enhanced Styles
 * ------------------------------------------------------------------------- */

/* Toolbar (Search & Filter) */
.books-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #222;
}

.search-bar-container {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-bar-container input {
    width: 100%;
    padding: 10px 15px;
    background: #111;
    border: 1px solid #333;
    color: #fff;
    border-radius: 4px;
}

.filters-container {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-select {
    background: #111;
    color: #ccc;
    border: 1px solid #333;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
}

/* Enhanced Book Card */
.book-item {
    position: relative;
    /* For wishlist absolute positioning if needed, or keeping context */
    display: flex;
    flex-direction: column;
}

.book-synopsis-short {
    font-size: 0.9rem;
    color: #888;
    margin: 0.5rem 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-rating {
    color: var(--accent-color);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.book-actions-bar {
    margin-top: auto;
    /* Push to bottom */
    display: flex;
    gap: 10px;
    align-items: center;
    padding-top: 1rem;
}

.btn-small {
    font-size: 0.8rem;
    padding: 5px 10px;
    background: #222;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    border: 1px solid #333;
    transition: all 0.2s;
}

.btn-small:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #000;
}

.icon-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 1rem;
    padding: 5px;
    transition: color 0.2s;
}

.icon-btn:hover,
.icon-btn.active {
    color: #ff4d4d;
    /* Red for wishlist */
}

/* Coming Soon Section */
.coming-soon-section {
    margin-top: 5rem;
    padding: 3rem;
    background: #111;
    border: 1px solid #222;
    border-radius: 8px;
    text-align: center;
}

.coming-soon-badge {
    display: inline-block;
    background: var(--accent-color);
    color: #000;
    font-weight: bold;
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 1rem;
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #0a0a0a;
    border: 1px solid #333;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    padding: 2rem;
    overflow-y: auto;
    position: relative;
    border-radius: 8px;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
    background: none;
    border: none;
}

.modal-body {
    font-family: brandon-grot-w01-light, sans-serif;
    line-height: 1.8;
    color: #ffffff;
}

.active-modal {
    display: flex;
}

/* ------------------------------------------------------------------------- *
 *  Book Detail Page Specific Styles
 * ------------------------------------------------------------------------- */

/* Cover Zoom */
.book-cover-large {
    overflow: hidden;
    border-radius: 4px;
    cursor: zoom-in;
    position: relative;
    /* transition for zoom */
}

.book-cover-large .book-face,
.book-cover-large .book-spine {
    /* Ensure these elements scale with the container if they are used, 
        but if using an IMG tag usage is simpler. 
        Assuming the HTML structure will use the CSS book-cover div OR an img. 
        Let's support the CSS DIV structure zoom. */
    transition: transform 0.4s ease;
}

.book-cover-large:hover .book-face {
    transform: scale(1.05);
}

/* Purchase Options */
.purchase-options {
    background: #111;
    border: 1px solid #222;
    padding: 1.5rem;
    border-radius: 6px;
    margin-top: 2rem;
}

.purchase-title {
    font-size: 1rem;
    color: #888;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.store-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.store-btn {
    flex: 1;
    min-width: 120px;
    text-align: center;
    padding: 10px;
    background: #1a1a1a;
    border: 1px solid #333;
    color: #ccc;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s;
}

.store-btn:hover {
    background: #252525;
    color: #fff;
    border-color: #555;
}

/* Character List */
.character-list {
    margin: 2rem 0;
}

.character-card {
    border-left: 2px solid var(--accent-color);
    padding-left: 1rem;
    margin-bottom: 1.5rem;
}

.character-name {
    font-weight: bold;
    color: #fff;
    font-size: 1.1rem;
    display: block;
}

.character-role {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.5rem;
    display: block;
}

/* Reviews Section */
.reviews-container {
    margin-top: 4rem;
}

.review-item {
    background: #0f0f0f;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.review-stars {
    color: #fea500;
}

/* Related Books */
.related-books {
    margin-top: 5rem;
    border-top: 1px solid #222;
    padding-top: 3rem;
}

/* Book Tabs (if needed for Description/Author Note/Details) */
.book-tabs {
    display: flex;
    gap: 20px;
    border-bottom: 1px solid #222;
    margin-bottom: 2rem;
}

.tab-link {
    background: none;
    border: none;
    color: #666;
    padding-bottom: 10px;
    cursor: pointer;
    font-size: 1.1rem;
    border-bottom: 2px solid transparent;
}

.tab-link.active {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

/* ------------------------------------------------------------------------- *
 *  News Page Specific Styles
 * ------------------------------------------------------------------------- */

.news-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    align-items: flex-start;
}

.news-main {
    flex: 2;
    min-width: 300px;
}

.news-sidebar {
    flex: 1;
    min-width: 250px;
    position: sticky;
    top: 2rem;
}

/* Sidebar Widgets */
.sidebar-widget {
    background: #111;
    border: 1px solid #222;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 4px;
}

.widget-title {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
    color: #fff;
}

.widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-list li {
    margin-bottom: 0.8rem;
    border-bottom: 1px solid #1a1a1a;
    padding-bottom: 0.8rem;
}

.widget-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.widget-list a {
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
    display: flex;
    justify-content: space-between;
}

.widget-list a:hover {
    color: var(--accent-color);
}

.count-badge {
    background: #222;
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 0.8rem;
}

/* Sidebar Search */
.widget-search-form {
    display: flex;
}

.widget-search-form input {
    flex: 1;
    padding: 8px;
    background: #000;
    border: 1px solid #333;
    color: #fff;
    border-right: none;
    border-radius: 4px 0 0 4px;
}

.widget-search-form button {
    padding: 8px 12px;
    background: #222;
    border: 1px solid #333;
    color: #fff;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.widget-search-form button:hover {
    background: var(--accent-color);
    color: #000;
}

/* Article List (Standard Row Layout) */
.news-article-card {
    background: #111;
    /* fallback */
    margin-bottom: 3rem;
    border-bottom: 1px solid #222;
    padding-bottom: 2rem;
    display: flex;
    flex-direction: column;
}

.news-article-image {
    width: 100%;
    height: 300px;
    background: #222;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    overflow: hidden;
}

.news-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-article-image:hover img {
    transform: scale(1.05);
}

.news-meta {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.news-meta span {
    margin-right: 15px;
}

.news-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.news-title a {
    text-decoration: none;
    color: #fff;
    transition: color 0.2s;
}

.news-title a:hover {
    color: var(--accent-color);
}

.news-excerpt {
    color: #aaa;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Social Share in Article */
.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-icon {
    color: #555;
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.2s;
}

.share-icon:hover {
    color: #fff;
}

/* Comments Mockup */
.comments-area {
    margin-top: 1rem;
    background: #0d0d0d;
    padding: 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #777;
    border-left: 2px solid #333;
}

/* Responsive */
@media screen and (max-width: 800px) {
    .news-container {
        flex-direction: column;
    }

    .news-sidebar {
        width: 100%;
        position: static;
    }
}

/* ------------------------------------------------------------------------- *
 *  Events Page Specific Styles
 * ------------------------------------------------------------------------- */

/* Upcoming Calendar */
.upcoming-events-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 5rem;
}

.event-row {
    display: flex;
    background: #111;
    border: 1px solid #222;
    border-radius: 6px;
    padding: 1.5rem;
    align-items: center;
    gap: 2rem;
    transition: border-color 0.2s;
}

.event-row:hover {
    border-color: #444;
}

.event-date-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    border: 1px solid #333;
    flex-shrink: 0;
}

.event-month {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--accent-color);
    letter-spacing: 1px;
}

.event-day {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    margin-top: 5px;
}

.event-info {
    flex: 1;
}

.event-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.event-meta {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 0.5rem;
    display: flex;
    gap: 15px;
}

.event-meta i {
    color: var(--accent-color);
}

.event-cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 140px;
}

/* Past Events Grid */
.past-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 5rem;
}

.past-event-card {
    background: #111;
    border: 1px solid #222;
    border-radius: 4px;
    overflow: hidden;
}

.past-event-img {
    height: 180px;
    background: #222;
    overflow: hidden;
}

.past-event-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.past-event-card:hover .past-event-img img {
    transform: scale(1.05);
}

.past-event-body {
    padding: 1.5rem;
}

.past-event-date {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.5rem;
    display: block;
}

/* Media Links */
.media-coverage ul {
    list-style: none;
    padding: 0;
}

.media-coverage li {
    padding: 1rem 0;
    border-bottom: 1px solid #222;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.media-source {
    font-size: 0.9rem;
    color: #888;
    margin-left: 1rem;
}

@media screen and (max-width: 700px) {
    .event-row {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .event-date-badge {
        width: 100%;
        /* Horizontal on mobile perhaps? Or smaller square */
        height: auto;
        padding: 10px;
        flex-direction: row;
        justify-content: flex-start;
        gap: 10px;
    }

    .event-day {
        font-size: 1.5rem;
        margin-top: 0;
    }

    .event-cta {
        width: 100%;
        flex-direction: row;
    }

    .event-cta .btn-primary,
    .event-cta .btn-small {
        flex: 1;
        text-align: center;
    }
}

/* ------------------------------------------------------------------------- *
 *  Media / Press Page Specific Styles
 * ------------------------------------------------------------------------- */

.press-kit-hero {
    background: #111;
    border: 1px solid #222;
    padding: 3rem;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 4rem;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 5rem;
}

.download-card {
    text-align: center;
    border: 1px solid #222;
    padding: 1.5rem;
    border-radius: 4px;
    background: #0a0a0a;
}

.download-preview {
    height: 200px;
    background: #222;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    overflow: hidden;
}

.download-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Coverage Grid */
.press-releases-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.press-release-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #222;
    background: #111;
    /* fallback */
    background: linear-gradient(90deg, #111 0%, #0a0a0a 100%);
}

.press-date {
    font-size: 0.85rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    display: block;
}

.press-title {
    font-size: 1.2rem;
    margin: 0;
}

/* Quotes */
.review-excerpt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-excerpt-card {
    background: #111;
    padding: 2rem;
    border-radius: 4px;
    position: relative;
}

.review-excerpt-card::before {
    content: '“';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 5rem;
    color: #222;
    z-index: 0;
    font-family: brandon-grot-w01-light, sans-serif;
}

.review-text {
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 1.5rem;
}

/* ------------------------------------------------------------------------- *
 *  Contact Page Specific Styles
 * ------------------------------------------------------------------------- */

.contact-layout-split {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    align-items: flex-start;
}

.contact-left {
    flex: 1;
    min-width: 300px;
}

.contact-right {
    flex: 1;
    min-width: 300px;
}

/* Contact Details Cards */
.contact-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 3rem;
    margin-top: 2rem;
}

.contact-detail-card {
    background: #111;
    border: 1px solid #222;
    padding: 1.5rem;
    border-radius: 4px;
    transition: transform 0.2s;
}

.contact-detail-card:hover {
    transform: translateY(-2px);
    border-color: #333;
}

.contact-card-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.contact-role {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.5rem;
}

/* Enhanced Form */
.contact-form-enhanced label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ccc;
    font-size: 0.9rem;
}

.contact-form-enhanced input,
.contact-form-enhanced select,
.contact-form-enhanced textarea {
    width: 100%;
    padding: 12px;
    background: #0d0d0d;
    border: 1px solid #222;
    color: #fff;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    font-family: brandon-grot-w01-light, sans-serif;
    transition: border-color 0.2s;
}

.contact-form-enhanced input:focus,
.contact-form-enhanced select:focus,
.contact-form-enhanced textarea:focus {
    border-color: var(--accent-color);
    outline: none;
}

.contact-form-enhanced textarea {
    min-height: 150px;
    resize: vertical;
}

/* Map */
.contact-map {
    width: 100%;
    height: 300px;
    background: #111;
    margin-top: 3rem;
    border: 1px solid #222;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-placeholder-content {
    text-align: center;
    color: #666;
}

/* Response Note */
.response-note {
    background: rgba(var(--accent-rgb), 0.1);
    border-left: 3px solid var(--accent-color);
    padding: 1rem;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #aaa;
}

.social-grid-contact {
    display: flex;
    gap: 15px;
    margin-top: 1.5rem;
}

.social-btn-contact {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #222;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: background 0.3s;
}

.social-btn-contact:hover {
    background: var(--accent-color);
}

/* ------------------------------------------------------------------------- *
 *  Gallery Page Specific Styles
 * ------------------------------------------------------------------------- */

/* Gallery Filters */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid #333;
    color: #888;
    padding: 8px 16px;
    border-radius: 20px;
    /* pill shape */
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-color);
    color: #000;
    border-color: var(--accent-color);
}

/* Gallery Grid (CSS Grid/Masonry-ish) */
.gallery-grid {
    column-count: 3;
    column-gap: 20px;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 20px;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    background: #111;
}

.gallery-item img {
    width: 100%;
    display: block;
    transition: transform 0.4s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-caption {
    color: #fff;
    text-align: center;
    padding: 1rem;
    transform: translateY(20px);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* Responsive Columns */
@media (max-width: 900px) {
    .gallery-grid {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        column-count: 1;
    }
}

/* Lightbox Styles */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    margin-top: 1rem;
    color: #ccc;
    font-size: 1.1rem;
    font-family: 'Lora', serif;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    color: #888;
    font-size: 3rem;
    cursor: pointer;
    padding: 1rem;
    user-select: none;
    transition: color 0.3s;
}

.lightbox-nav:hover {
    color: #fff;
}

.lightbox-prev {
    left: 20px;
}


.lightbox-next {
    right: 20px;
}

/* ------------------------------------------------------------------------- *
 *  Global Responsive Adjustments (Tablet & Mobile)
 * ------------------------------------------------------------------------- */

/* Tablet (max-width: 1024px) */
@media screen and (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    /* Books grid 3 cols */
    .books-grid,
    .past-events-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    /* Single Book Layout - Stack earlier if needed or keep side-by-side but smaller gap */
    .single-book-container {
        gap: 2rem;
        grid-template-columns: 250px 1fr;
    }

    /* Contact split */
    .contact-layout-split {
        gap: 2rem;
    }
}

/* Mobile Landscape / Small Tablet (max-width: 768px) */
@media screen and (max-width: 768px) {

    /* Header & Nav */
    .site-header {
        padding: 1rem 0;
    }

    .site-header .container {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .site-branding {
        justify-content: flex-start;
        /* Align logo left */
        width: auto;
        /* Don't take up full width to allow hamburger to fit */
        margin-bottom: 0;
    }


    .site-title {
        font-size: 1.1rem;
    }

    .main-navigation {
        width: 100%;
    }

    .main-navigation ul {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px 20px;
    }

    .main-navigation a {
        font-size: 0.85rem;
        padding-bottom: 2px;
    }

    /* Hero */
    .hero-section {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        margin-bottom: 4rem;
    }

    .hero-image {
        flex: 0 0 auto;
        width: 80%;
        max-width: 300px;
        margin: 0 auto;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    /* Grids to 2 cols */
    .books-grid,
    .past-events-grid,
    .masonry-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Single Book Stack */
    .single-book-container {
        grid-template-columns: 1fr;
    }

    .single-book-cover {
        position: static;
        width: 60%;
        margin: 0 auto;
    }

    /* Contact Stack */
    .contact-layout-split {
        flex-direction: column;
    }

    .contact-left,
    .contact-right {
        width: 100%;
        min-width: auto;
    }

    /* Press List */
    .press-release-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .press-release-item .btn-link {
        align-self: flex-start;
    }

    /* Footer widgets stack */
    .site-footer .container {
        gap: 2rem;
    }
}

/* Mobile Portrait (max-width: 480px) */
@media screen and (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    /* Grids to 1 col */
    .books-grid,
    .past-events-grid,
    .masonry-grid,
    .download-grid,
    .contact-card-grid {
        grid-template-columns: 1fr;
    }

    .book-cover {
        width: 140px;
        height: 210px;
    }

    /* Event Rows */
    .event-row {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .event-date-badge {
        flex-direction: row;
        width: 100%;
        height: auto;
        padding: 10px;
        justify-content: flex-start;
        gap: 15px;
    }

    .event-day {
        margin-top: 0;
        font-size: 1.5rem;
    }

    .event-cta {
        width: 100%;
    }

    .event-cta .btn-primary,
    .event-cta .btn-secondary {
        width: 100%;
        text-align: center;
        display: block;
    }

    .contact-form-enhanced .form-row {
        flex-direction: column;
        gap: 0 !important;
    }
}