/*
Theme Name: Everween
Theme URI: https://everween.com
Author: Dana
Author URI: https://everween.com
Description: A spooky lifestyle blog theme that brings Halloween magic into every season. Features holiday mashup content, DIY tutorials, and year-round Halloween aesthetic.
Version: 3.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: everween
Tags: blog, lifestyle, halloween, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready, accessibility-ready

Everween WordPress Theme, (C) 2025
Everween is distributed under the terms of the GNU GPL.
*/

/* ==========================================================================
   Base Styles
   ========================================================================== */

/* Override WordPress block styles */
.wp-site-blocks,
.wp-block-post-content {
    padding: 0 !important;
    margin: 0 !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --deep-purple: #2d1b3d;
    --burnt-orange: #d97706;
    --charcoal: #1f1f1f;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: white;
    color: var(--charcoal);
    line-height: 1.6;
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

/* Skip to main content link */
.skip-to-main {
    position: absolute;
    left: -9999px;
    z-index: 999;
    padding: 1rem;
    background-color: var(--burnt-orange);
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.skip-to-main:focus {
    left: 50%;
    transform: translateX(-50%);
    top: 1rem;
}

/* Enhanced focus styles */
a:focus,
button:focus {
    outline: 3px solid var(--burnt-orange);
    outline-offset: 2px;
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav-wrapper {
    margin: 2rem 0;
}

.top-nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--deep-purple);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--burnt-orange);
}

/* Search in Navigation */
.nav-search {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 1.5rem;
}

.search-toggle {
    background: none;
    border: 2px solid var(--deep-purple);
    color: var(--deep-purple);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    justify-content: center;
}

.search-toggle:hover,
.search-toggle:focus {
    background: var(--burnt-orange);
    border-color: var(--burnt-orange);
    color: white;
}

.search-toggle[aria-expanded="true"] {
    background: var(--burnt-orange);
    border-color: var(--burnt-orange);
    color: white;
}

.nav-search-dropdown {
    position: absolute;
    top: calc(100% + 1rem);
    right: 0;
    background: white;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 1.5rem;
    min-width: 350px;
    z-index: 1000;
    display: none;
}

.nav-search-dropdown.active {
    display: block;
}

.nav-search-form {
    display: flex;
    gap: 0.5rem;
}

.nav-search-input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem;
}

.nav-search-input:focus {
    border-color: var(--burnt-orange);
    outline: none;
}

.nav-search-button {
    background: var(--burnt-orange);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    font-family: inherit;
}

.nav-search-button:hover,
.nav-search-button:focus {
    background: #b86500;
}

/* Search overlay backdrop */
.search-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 999;
    display: none;
}

.search-backdrop.active {
    display: block;
}

/* Logo */
.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    font-size: 4.84rem;
    line-height: 1;
}

.logo {
    font-family: 'Optima', 'Segoe UI', 'Candara', 'Arial', sans-serif;
    font-size: 4.24rem;
    font-weight: 900;
    color: var(--burnt-orange);
    text-decoration: none;
    line-height: 1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    text-shadow: 3px 3px 0 var(--deep-purple);
}

/* ==========================================================================
   Hero Banner
   ========================================================================== */

.hero-banner {
    position: relative;
    width: 100%;
    height: 350px;
    background: #b91c1c;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-emoji {
    position: absolute;
    font-size: 8rem;
    z-index: 1;
    right: 20%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(100, 0, 0, 0.6) 0%, transparent 70%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-title-wrapper {
    max-width: 1400px;
    width: 100%;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 250px 1fr 250px;
    gap: 3rem;
}

.hero-title {
    grid-column: 2;
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.1;
    color: rgba(255, 50, 50, 0.7);
    z-index: 2;
    max-width: 50%;
}

/* ==========================================================================
   Content Layout
   ========================================================================== */

.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.content-grid {
    display: grid;
    grid-template-columns: 250px 1fr 250px;
    gap: 3rem;
}

/* ==========================================================================
   Trending Sidebar
   ========================================================================== */

.trending-column {
}

.trending-column h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--deep-purple);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--burnt-orange);
}

.trending-item {
    margin-bottom: 2rem;
    cursor: pointer;
    transition: transform 0.3s;
    display: block;
    text-decoration: none;
    color: inherit;
}

.trending-item:hover,
.trending-item:focus {
    transform: translateX(4px);
}

.trending-number {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 900;
    color: var(--burnt-orange);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.trending-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 0.25rem;
}

.trending-meta {
    font-size: 0.85rem;
    color: #999;
}

.trending-image {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.trending-content {
}

/* ==========================================================================
   Article Content
   ========================================================================== */

.article-content {
}

.article-byline {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1rem;
}

.article-category {
    display: inline-block;
    background: var(--burnt-orange);
    color: white;
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--deep-purple);
    margin: 2rem 0 1rem;
}

.article-body h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--charcoal);
    margin: 1.5rem 0 1rem;
}

.article-body ul,
.article-body ol {
    margin: 1.5rem 0 1.5rem 2rem;
}

.article-body li {
    margin-bottom: 0.75rem;
}

.continue-btn {
    display: inline-block;
    background: var(--deep-purple);
    color: white;
    padding: 1rem 3rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    margin-top: 1rem;
}

.continue-btn:hover {
    background: var(--burnt-orange);
}

/* ==========================================================================
   Sidebar
   ========================================================================== */

.side-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.ad-box {
    background: rgba(45, 27, 61, 0.03);
    border: 2px solid rgba(45, 27, 61, 0.1);
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(45, 27, 61, 0.3);
    font-size: 0.85rem;
    font-weight: 600;
}

.side-card {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
}

.side-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.side-card-image {
    width: 100%;
    height: 150px;
    background: var(--deep-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.side-card-content {
    padding: 1rem;
}

.side-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.side-card-meta {
    font-size: 0.85rem;
    color: #999;
}

/* ==========================================================================
   Masonry Grid
   ========================================================================== */

.masonry-section {
    margin-top: 4rem;
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    grid-auto-flow: dense;
}

.masonry-card {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.masonry-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.card-wide {
    grid-column: span 2;
}

.card-tall {
    grid-row: span 2;
}

.card-large {
    grid-column: span 2;
    grid-row: span 2;
}

.card-image {
    position: relative;
    width: 100%;
    height: 300px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.card-tall .card-image {
    height: 100%;
    min-height: 400px;
}

.card-large .card-image {
    height: 100%;
    min-height: 500px;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    color: white;
}

.card-category {
    display: inline-block;
    background: var(--burnt-orange);
    color: white;
    padding: 0.3rem 0.8rem;
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.card-meta {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
    background: var(--charcoal);
    color: white;
    padding: 3rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: var(--burnt-orange);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--burnt-orange);
}

.footer-social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    background: var(--burnt-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1.2rem;
}

.footer-social-link:hover {
    background: var(--deep-purple);
}

.copyright {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #444;
    color: #999;
}

/* ==========================================================================
   Color Backgrounds
   ========================================================================== */

.bg-purple { background: #3d2756; }
.bg-orange { background: #c2610c; }
.bg-red { background: #b91c1c; }
.bg-pink { background: #db2777; }
.bg-green { background: #65a30d; }
.bg-teal { background: #0d9488; }

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1200px) {
    .nav-links {
        gap: 1.5rem;
    }
}

@media (max-width: 1024px) {
    .top-nav {
        flex-direction: column;
        gap: 1.5rem;
    }

    .nav-links {
        order: 2;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-search {
        order: 3;
        align-self: center;
        margin-left: 0;
    }

    .logo-section {
        order: 1;
    }

    .nav-search-dropdown {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        min-width: 90vw;
        max-width: 400px;
    }

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

    .trending-column {
        order: 2;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .trending-column h2 {
        grid-column: 1 / -1;
    }

    .trending-item {
        margin-bottom: 0;
        background: white;
        box-shadow: 0 2px 4px rgba(0,0,0,0.08);
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .trending-item:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    }

    .trending-number {
        display: none;
    }

    .trending-image {
        width: 100%;
        height: 120px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 2.5rem;
    }

    .trending-content {
        padding: 1rem;
    }

    .trending-title {
        font-size: 0.9rem;
        line-height: 1.3;
    }

    .article-content {
        order: 1;
    }

    .side-column {
        order: 3;
    }

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

    .card-wide,
    .card-large {
        grid-column: span 1;
    }

    .hero-banner {
        height: 350px;
    }

    .hero-title-wrapper {
        grid-template-columns: 1fr;
        align-items: center;
        padding: 0;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
    }

    .hero-title {
        width: 80%;
        max-width: 80%;
        margin: 2.5rem auto 0;
        text-align: center;
        font-size: 2.2rem;
        grid-column: 1;
    }

    .hero-emoji {
        top: calc(350px * 2 / 3);
        left: 50%;
        right: auto;
        transform: translate(-50%, -50%);
        font-size: 5rem;
    }

    .hero-overlay {
        background: linear-gradient(to bottom, rgba(100, 0, 0, 0.7) 0%, transparent 50%);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .logo {
        font-size: 3rem;
    }

    .logo-icon {
        font-size: 3.5rem;
    }

    .hero-emoji {
        font-size: 4.5rem;
    }
}

/* ==========================================================================
   Single Post Template (Article Page)
   ========================================================================== */

.article-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.article-content {
    background: white;
    padding: 2.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.article-category {
    display: inline-block;
    background: var(--burnt-orange);
    color: white;
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-date,
.article-author {
    font-size: 0.9rem;
    color: #666;
}

.article-featured-image {
    margin-bottom: 2rem;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body h2,
.article-body h3,
.article-body h4 {
    font-family: 'Playfair Display', serif;
    color: var(--deep-purple);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-body h2 {
    font-size: 2rem;
}

.article-body h3 {
    font-size: 1.6rem;
}

.article-body ul,
.article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-body img {
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
}

.article-body blockquote {
    border-left: 4px solid var(--burnt-orange);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #555;
}

.article-tags {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #eee;
}

.article-tags a {
    display: inline-block;
    background: #f0f0f0;
    color: var(--deep-purple);
    padding: 0.4rem 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s;
}

.article-tags a:hover {
    background: var(--burnt-orange);
    color: white;
}

.post-navigation {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #eee;
}

.post-navigation .nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.nav-previous,
.nav-next {
    padding: 1.5rem;
    background: #f8f7fa;
    transition: all 0.3s;
}

.nav-previous:hover,
.nav-next:hover {
    background: #f0eef5;
}

.nav-previous a,
.nav-next a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.nav-subtitle {
    display: block;
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-title {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--deep-purple);
    font-weight: 600;
}

.nav-next {
    text-align: right;
}

.article-sidebar {
    position: sticky;
    top: 2rem;
    align-self: start;
}

.article-sidebar .widget {
    background: white;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.article-sidebar .widget h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--deep-purple);
    margin-bottom: 1rem;
}

.article-sidebar .widget ul {
    list-style: none;
}

.article-sidebar .widget li {
    margin-bottom: 0.75rem;
}

.article-sidebar .widget a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.article-sidebar .widget a:hover {
    color: var(--burnt-orange);
}

/* Related Articles */
.related-section {
    margin-top: 4rem;
}

.related-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--deep-purple);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--burnt-orange);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
}

.related-card {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.related-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.related-card-image {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.related-card-content {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.related-card-category {
    display: inline-block;
    background: var(--burnt-orange);
    color: white;
    padding: 0.25rem 0.6rem;
    font-size: 0.65rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    align-self: flex-start;
}

.related-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.related-card-meta {
    font-size: 0.8rem;
    color: #999;
    margin-top: auto;
}

/* ==========================================================================
   Page Template (Static Pages)
   ========================================================================== */

.page-header {
    background: var(--deep-purple);
    padding: 3rem 0;
    margin-bottom: 3rem;
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: white;
    text-align: center;
}

.page-content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.page-content {
    background: white;
    padding: 2.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.page-featured-image {
    margin-bottom: 2rem;
}

.page-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.page-body {
    font-size: 1.05rem;
    line-height: 1.8;
}

.page-body p {
    margin-bottom: 1.5rem;
}

.page-body h2,
.page-body h3 {
    font-family: 'Playfair Display', serif;
    color: var(--deep-purple);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.page-sidebar {
    position: sticky;
    top: 2rem;
    align-self: start;
}

.page-sidebar .widget {
    background: white;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

/* ==========================================================================
   Archive Template
   ========================================================================== */

.archive-header {
    background: var(--deep-purple);
    padding: 3rem 0;
    margin-bottom: 3rem;
}

.archive-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: white;
    text-align: center;
}

.archive-description {
    text-align: center;
    color: white;
    margin-top: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.archive-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.archive-card {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.archive-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.archive-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.archive-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.archive-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.archive-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.archive-placeholder-emoji {
    font-size: 3rem;
}

.archive-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.archive-card-category {
    display: inline-block;
    background: var(--burnt-orange);
    color: white;
    padding: 0.3rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    align-self: flex-start;
}

.archive-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.archive-card-excerpt {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.archive-card-meta {
    font-size: 0.85rem;
    color: #999;
    margin-top: auto;
}

.meta-separator {
    margin: 0 0.5rem;
}

.archive-sidebar {
    position: sticky;
    top: 2rem;
    align-self: start;
}

.archive-sidebar .widget {
    background: white;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.archive-sidebar .widget h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--deep-purple);
    margin-bottom: 1rem;
}

.archive-sidebar .widget ul {
    list-style: none;
}

.archive-sidebar .widget li {
    margin-bottom: 0.75rem;
}

.archive-sidebar .widget a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.archive-sidebar .widget a:hover {
    color: var(--burnt-orange);
}

/* Pagination */
.pagination {
    margin-top: 3rem;
    grid-column: 1 / -1;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #ddd;
    text-decoration: none;
    color: var(--deep-purple);
    transition: all 0.3s;
}

.pagination a:hover {
    background: var(--burnt-orange);
    color: white;
    border-color: var(--burnt-orange);
}

.pagination .current {
    background: var(--deep-purple);
    color: white;
    border-color: var(--deep-purple);
}

/* ==========================================================================
   Search Template
   ========================================================================== */

.search-header {
    background: var(--deep-purple);
    padding: 3rem 0;
    margin-bottom: 3rem;
}

.search-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: white;
    text-align: center;
}

.search-query {
    color: var(--burnt-orange);
}

.search-count {
    text-align: center;
    color: white;
    margin-top: 1rem;
    font-size: 1.1rem;
}

.search-form-wrapper {
    max-width: 600px;
    margin: 2rem auto 0;
}

.search-results-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.search-result-card {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
    overflow: hidden;
    transition: all 0.3s;
}

.search-result-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.search-result-link {
    text-decoration: none;
    color: inherit;
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 1.5rem;
}

.search-result-image {
    width: 150px;
    height: 150px;
    overflow: hidden;
}

.search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-placeholder-emoji {
    font-size: 3rem;
}

.search-result-content {
    padding: 1.5rem 1.5rem 1.5rem 0;
}

.search-result-meta-top {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.search-result-category {
    display: inline-block;
    background: var(--burnt-orange);
    color: white;
    padding: 0.25rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.search-result-date {
    font-size: 0.85rem;
    color: #999;
}

.search-result-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    color: var(--deep-purple);
}

.search-result-excerpt {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.search-result-excerpt mark {
    background: #fff3cd;
    padding: 0.1rem 0.2rem;
    font-weight: 600;
}

.search-result-meta {
    font-size: 0.85rem;
    color: #999;
}

.search-sidebar {
    position: sticky;
    top: 2rem;
    align-self: start;
}

.search-sidebar .widget {
    background: white;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.search-sidebar .widget h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--deep-purple);
    margin-bottom: 1rem;
}

.search-sidebar .widget ul {
    list-style: none;
}

.search-sidebar .widget li {
    margin-bottom: 0.75rem;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.no-results-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.no-results h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--deep-purple);
    margin-bottom: 1rem;
}

.no-results p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.no-results-suggestions,
.no-results-categories {
    max-width: 600px;
    margin: 2rem auto;
    text-align: left;
}

.no-results-suggestions h3,
.no-results-categories h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--deep-purple);
    margin-bottom: 1rem;
}

.no-results-suggestions ul {
    list-style: disc;
    padding-left: 2rem;
}

.no-results-suggestions li {
    margin-bottom: 0.5rem;
    color: #666;
}

.category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.category-chip {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--deep-purple);
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.category-chip:hover {
    background: var(--burnt-orange);
}

.category-count {
    opacity: 0.7;
    font-size: 0.85rem;
}

/* ==========================================================================
   404 Error Page
   ========================================================================== */

.error-404-page {
    padding: 4rem 0;
}

.error-404-content {
    max-width: 1000px;
    margin: 0 auto;
}

.error-404-header {
    text-align: center;
    margin-bottom: 3rem;
}

.error-404-emoji {
    font-size: 6rem;
    margin-bottom: 1rem;
}

.error-404-title {
    font-family: 'Playfair Display', serif;
    font-size: 8rem;
    color: var(--deep-purple);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.error-404-subtitle {
    font-size: 1.8rem;
    color: var(--burnt-orange);
    font-weight: 600;
}

.error-404-message {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.error-404-message p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1rem;
}

.error-404-search {
    max-width: 600px;
    margin: 0 auto 4rem;
}

.error-404-search h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--deep-purple);
    text-align: center;
    margin-bottom: 1.5rem;
}

.error-404-links {
    margin-bottom: 4rem;
}

.error-404-links h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--deep-purple);
    text-align: center;
    margin-bottom: 2rem;
}

.error-404-link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.error-link-card {
    background: white;
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.error-link-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    background: var(--deep-purple);
    color: white;
}

.error-link-icon {
    display: block;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.error-link-text {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
}

.error-404-recent {
    margin-bottom: 4rem;
}

.error-404-recent h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--deep-purple);
    text-align: center;
    margin-bottom: 2rem;
}

.error-404-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.error-404-post-card {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s;
}

.error-404-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.error-404-post-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.error-404-post-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-404-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.error-404-post-emoji {
    font-size: 3rem;
}

.error-404-post-content {
    padding: 1.5rem;
}

.error-404-post-category {
    display: inline-block;
    background: var(--burnt-orange);
    color: white;
    padding: 0.25rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.error-404-post-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.error-404-post-date {
    font-size: 0.85rem;
    color: #999;
}

.error-404-footer {
    text-align: center;
}

.error-404-footer-text {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.error-404-home-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--burnt-orange);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.error-404-home-button:hover {
    background: var(--deep-purple);
}

/* ==========================================================================
   Responsive - Template Pages
   ========================================================================== */

@media (max-width: 1024px) {
    .article-grid,
    .page-content-wrapper,
    .archive-grid,
    .search-results-grid {
        grid-template-columns: 1fr;
    }

    .article-sidebar,
    .page-sidebar,
    .archive-sidebar,
    .search-sidebar {
        position: static;
    }

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

    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .error-404-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .post-navigation .nav-links {
        grid-template-columns: 1fr;
    }

    .nav-next {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .search-result-link {
        grid-template-columns: 1fr;
    }

    .search-result-image {
        width: 100%;
        height: 200px;
    }

    .search-result-content {
        padding: 1.5rem;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .error-404-link-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .error-404-posts-grid {
        grid-template-columns: 1fr;
    }

    .error-404-title {
        font-size: 5rem;
    }

    .error-404-subtitle {
        font-size: 1.3rem;
    }

    .page-title,
    .archive-title {
        font-size: 2rem;
    }
}

/* ==========================================================================
   Search Form Styling
   ========================================================================== */

.search-form {
    display: flex;
    gap: 0;
    max-width: 100%;
}

.search-form label {
    flex: 1;
    margin: 0;
}

.search-field {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-right: none;
    font-family: 'Inter', sans-serif;
}

.search-field:focus {
    outline: none;
    border-color: var(--burnt-orange);
}

.search-submit {
    padding: 0.75rem 1.5rem;
    background: var(--burnt-orange);
    color: white;
    border: 2px solid var(--burnt-orange);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
}

.search-submit:hover {
    background: var(--deep-purple);
    border-color: var(--deep-purple);
}

.search-submit:focus {
    outline: 3px solid var(--burnt-orange);
    outline-offset: 2px;
}

/* Search form in header dropdown */
.nav-search-dropdown .search-form {
    width: 100%;
}

.nav-search-dropdown .search-field {
    border: 2px solid #ddd;
    border-right: 2px solid #ddd;
}

.nav-search-dropdown .search-submit {
    width: 100%;
    margin-top: 0.5rem;
    border: 2px solid var(--burnt-orange);
}

/* ==========================================================================
   Gallery Post Type Template
   ========================================================================== */

.gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.gallery-main {
    background: white;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.featured-image-container {
    position: relative;
    width: 100%;
    min-height: 500px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.featured-image {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
}

.featured-image-placeholder {
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-placeholder-emoji {
    font-size: 8rem;
}

.gallery-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 1rem 0;
    border-top: 2px solid #eee;
    border-bottom: 2px solid #eee;
    margin-bottom: 1.5rem;
}

.gallery-nav-btn {
    background: var(--burnt-orange);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.gallery-nav-btn:hover {
    background: var(--deep-purple);
}

.gallery-nav-btn:focus {
    outline: 3px solid var(--burnt-orange);
    outline-offset: 2px;
}

.gallery-counter {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--deep-purple);
}

.gallery-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.gallery-category {
    display: inline-block;
    color: white;
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gallery-description {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.gallery-description p {
    margin-bottom: 1rem;
}

.gallery-tags {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #eee;
}

.gallery-tags a {
    display: inline-block;
    background: #f0f0f0;
    color: var(--deep-purple);
    padding: 0.4rem 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s;
}

.gallery-tags a:hover {
    background: var(--burnt-orange);
    color: white;
}

.thumbnail-sidebar {
    position: sticky;
    top: 2rem;
    align-self: start;
}

.thumbnail-sidebar h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--deep-purple);
    margin-bottom: 1rem;
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.thumbnail-item {
    background: none;
    border: 3px solid transparent;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s;
}

.thumbnail-item:hover {
    border-color: var(--burnt-orange);
}

.thumbnail-item.active {
    border-color: var(--deep-purple);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
   Video Post Type Template
   ========================================================================== */

.video-banner {
    background: #000;
    margin-bottom: 2rem;
}

.video-container-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

.video-responsive-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-responsive-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.video-placeholder-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.video-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.video-main-content {
    background: white;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.video-main-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--deep-purple);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.video-meta-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #eee;
    flex-wrap: wrap;
}

.video-category {
    display: inline-block;
    color: white;
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.video-stat,
.video-date,
.video-duration {
    font-size: 0.9rem;
    color: #666;
}

.video-description {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.video-description p {
    margin-bottom: 1rem;
}

.video-description h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--deep-purple);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.video-description ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.video-description li {
    margin-bottom: 0.5rem;
}

.video-tags {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #eee;
}

.video-tags a {
    display: inline-block;
    background: #f0f0f0;
    color: var(--deep-purple);
    padding: 0.4rem 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s;
}

.video-tags a:hover {
    background: var(--burnt-orange);
    color: white;
}

.video-sidebar {
    position: sticky;
    top: 2rem;
    align-self: start;
}

.related-videos-sidebar {
    background: white;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.related-videos-sidebar h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--deep-purple);
    margin-bottom: 1.5rem;
}

.sidebar-video-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.sidebar-video-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-video-link {
    display: flex;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

.sidebar-video-link:hover {
    opacity: 0.8;
}

.sidebar-video-thumb {
    position: relative;
    flex-shrink: 0;
    width: 120px;
    height: 68px;
    overflow: hidden;
    background: #f0f0f0;
}

.sidebar-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-duration {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 2px 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.sidebar-video-info h3 {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    color: var(--deep-purple);
}

.sidebar-video-meta {
    font-size: 0.8rem;
    color: #999;
}

/* ==========================================================================
   Comments Template
   ========================================================================== */

.comments-area {
    background: white;
    padding: 2.5rem;
    margin-top: 3rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.comments-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--deep-purple);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--burnt-orange);
}

.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.comment-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.comment-body {
    position: relative;
}

.comment-meta {
    margin-bottom: 1rem;
}

.comment-author {
    display: flex;
    gap: 1rem;
}

.avatar {
    border-radius: 50%;
    flex-shrink: 0;
}

.comment-author-info {
    flex: 1;
}

.comment-author-info .fn {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--deep-purple);
    font-style: normal;
}

.comment-author-info .fn a {
    color: var(--deep-purple);
    text-decoration: none;
}

.comment-author-info .fn a:hover {
    color: var(--burnt-orange);
}

.comment-metadata {
    font-size: 0.85rem;
    color: #999;
    margin-top: 0.25rem;
}

.comment-metadata a {
    color: #999;
    text-decoration: none;
}

.comment-metadata a:hover {
    color: var(--burnt-orange);
}

.comment-awaiting-moderation {
    display: block;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #fff3cd;
    color: #856404;
    font-size: 0.85rem;
}

.comment-content {
    margin-left: 76px; /* Avatar width + gap */
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

.comment-content p {
    margin-bottom: 1rem;
}

.comment-actions {
    margin-left: 76px;
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
}

.comment-reply-link,
.comment-actions .edit-link a {
    color: var(--burnt-orange);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.comment-reply-link:hover,
.comment-actions .edit-link a:hover {
    color: var(--deep-purple);
}

.children {
    list-style: none;
    margin-left: 76px;
    margin-top: 2rem;
}

.comment-navigation {
    margin: 2rem 0;
    display: flex;
    justify-content: space-between;
}

.comment-navigation a {
    color: var(--burnt-orange);
    text-decoration: none;
    font-weight: 600;
}

.comment-navigation a:hover {
    color: var(--deep-purple);
}

.no-comments {
    text-align: center;
    padding: 2rem;
    color: #999;
    font-style: italic;
}

/* Comment Form */
.comment-respond {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #eee;
}

.comment-reply-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--deep-purple);
    margin-bottom: 1.5rem;
}

.comment-reply-title small {
    font-size: 0.8rem;
    margin-left: 1rem;
}

.comment-reply-title small a {
    color: var(--burnt-orange);
    text-decoration: none;
}

.comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--deep-purple);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--burnt-orange);
}

.comment-form textarea {
    resize: vertical;
    min-height: 150px;
}

.comment-form .submit,
.everween-submit-button {
    background: var(--burnt-orange);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
}

.comment-form .submit:hover,
.everween-submit-button:hover {
    background: var(--deep-purple);
}

.comment-form .submit:focus,
.everween-submit-button:focus {
    outline: 3px solid var(--burnt-orange);
    outline-offset: 2px;
}

.form-submit {
    margin-top: 1rem;
}

/* ==========================================================================
   Responsive - Chunk 3 Templates
   ========================================================================== */

@media (max-width: 1024px) {
    .gallery-grid,
    .video-content-grid {
        grid-template-columns: 1fr;
    }

    .thumbnail-sidebar,
    .video-sidebar {
        position: static;
    }

    .thumbnail-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .video-responsive-wrapper {
        padding-bottom: 56.25%;
    }
}

@media (max-width: 768px) {
    .thumbnail-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery-controls {
        flex-direction: column;
        gap: 1rem;
    }

    .featured-image-container {
        min-height: 300px;
    }

    .featured-placeholder-emoji {
        font-size: 5rem;
    }

    .video-main-content h1 {
        font-size: 1.8rem;
    }

    .sidebar-video-thumb {
        width: 100px;
        height: 56px;
    }

    .comment-content,
    .comment-actions {
        margin-left: 0;
        margin-top: 1rem;
    }

    .children {
        margin-left: 1rem;
    }
}

@media (max-width: 480px) {
    .thumbnail-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-main {
        padding: 1rem;
    }

    .video-main-content {
        padding: 1rem;
    }

    .comments-area {
        padding: 1.5rem;
    }
}

