/*
Theme Name: QueerDispatch
Theme URI: https://queerdispatch.org/
Author: QueerDispatch Team
Author URI: https://queerdispatch.org/
Description: An independent LGBTQIA2S+ news & community theme with multiple switchable aesthetic styles: Anarchist, Goth, Witchy, Pastel Rainbow Goth, Cyberpunk Queer, Cottagecore Queer, and Riot Grrrl.
Version: 1.3.2
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: queerdispatch
Tags: news, magazine, blog, custom-colors, custom-menu, featured-images, post-formats, rtl-language-support, sticky-post, translation-ready
*/

/* ============================================================
   BASE RESET & FOUNDATIONS
   ============================================================ */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    transition: background-color 0.4s ease, color 0.4s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
    color: var(--color-accent-hover);
    text-decoration: underline;
}

/* ============================================================
   CSS CUSTOM PROPERTIES — NEUTRAL FALLBACKS
   These are intentionally generic. Each theme style overrides
   all of these via html[data-style="X"] { } which has higher
   specificity than :root and therefore always wins.
   ============================================================ */

:root {
    /* Neutral dark fallback — visible before any theme CSS loads */
    --color-bg: #111111;
    --color-bg-secondary: #1a1a1a;
    --color-bg-card: #161616;
    --color-text: #e0e0e0;
    --color-text-muted: #888888;
    --color-accent: #888888;
    --color-accent-hover: #aaaaaa;
    --color-accent-secondary: #666666;
    --color-border: #2a2a2a;
    --color-header-bg: #111111;
    --color-header-text: #e0e0e0;
    --color-nav-bg: #0d0d0d;
    --color-nav-text: #cccccc;
    --color-footer-bg: #0a0a0a;
    --color-footer-text: #888888;
    --color-tag-bg: #333333;
    --color-tag-text: #e0e0e0;
    --color-button-bg: #444444;
    --color-button-text: #ffffff;
    --color-button-hover: #555555;
    --color-hero-overlay: rgba(0,0,0,0.6);
    --font-heading: Georgia, 'Times New Roman', serif;
    --font-body: Georgia, 'Times New Roman', serif;
    --font-nav: Georgia, sans-serif;
    --font-size-hero: clamp(2rem, 5vw, 3.5rem);
    --font-size-h1: clamp(1.6rem, 3vw, 2.4rem);
    --font-size-h2: clamp(1.3rem, 2.5vw, 1.8rem);
    --font-size-h3: clamp(1.1rem, 2vw, 1.4rem);
    --border-radius: 4px;
    --card-shadow: 0 2px 8px rgba(0,0,0,0.4);
    --header-border: 1px solid #333333;
    --section-divider: 1px solid #333333;
    --texture-overlay: none;
}

/* ============================================================
   LAYOUT
   ============================================================ */

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-area {
    flex: 1;
    padding: 30px 0;
}

.main-content-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 900px) {
    .main-content-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
    background-color: var(--color-header-bg);
    border-bottom: var(--header-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo img {
    height: 50px;
    width: auto;
}

.site-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-header-text);
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1;
}

.site-title a {
    color: inherit;
    text-decoration: none;
}

.site-description {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-family: var(--font-body);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

.main-navigation {
    background-color: var(--color-nav-bg);
    border-bottom: 1px solid var(--color-border);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 14px 18px;
    font-family: var(--font-nav);
    font-size: 0.85rem;
    color: var(--color-nav-text);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a {
    background-color: var(--color-accent);
    color: #ffffff;
    text-decoration: none;
}

/* Dropdown */
.nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    min-width: 200px;
    z-index: 999;
    list-style: none;
}

.nav-menu li:hover > .sub-menu {
    display: block;
}

.nav-menu .sub-menu a {
    padding: 10px 18px;
    font-size: 0.8rem;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
    padding: 6px 12px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        align-items: flex-start;
    }
    .nav-menu.is-open {
        display: flex;
    }
    .nav-menu a {
        width: 100%;
    }
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero-section {
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 480px;
}

@media (max-width: 768px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }
}

.hero-image {
    position: relative;
    overflow: hidden;
}

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

.hero-content {
    background-color: var(--color-bg-secondary);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    border-left: var(--header-border);
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-block;
    padding: 3px 10px;
    background-color: var(--color-tag-bg);
    color: var(--color-tag-text);
    font-family: var(--font-nav);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--border-radius);
    text-decoration: none;
}

.tag:hover {
    opacity: 0.85;
    text-decoration: none;
    color: var(--color-tag-text);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: var(--font-size-hero);
    color: var(--color-header-text);
    line-height: 1.1;
    text-transform: uppercase;
}

.hero-title a {
    color: inherit;
    text-decoration: none;
}

.hero-title a:hover {
    color: var(--color-accent);
    text-decoration: none;
}

.hero-excerpt {
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.hero-meta {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-meta .author {
    color: var(--color-accent);
    font-weight: bold;
}

.btn {
    display: inline-block;
    padding: 10px 24px;
    background-color: var(--color-button-bg);
    color: var(--color-button-text);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.1s ease;
    align-self: flex-start;
}

.btn:hover {
    background-color: var(--color-button-hover);
    color: var(--color-button-text);
    text-decoration: none;
    transform: translateY(-1px);
}

/* ============================================================
   ARTICLE CARDS
   ============================================================ */

.section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: var(--section-divider);
}

.section-title {
    font-family: var(--font-heading);
    font-size: var(--font-size-h2);
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 1em;
    background-color: var(--color-accent);
    margin-right: 12px;
    vertical-align: middle;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.article-card {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 5px 5px 0px var(--color-accent);
}

.card-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .card-thumbnail img {
    transform: scale(1.05);
}

.card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.card-title {
    font-family: var(--font-heading);
    font-size: var(--font-size-h3);
    color: var(--color-text);
    line-height: 1.3;
    text-transform: uppercase;
}

.card-title a {
    color: inherit;
    text-decoration: none;
}

.card-title a:hover {
    color: var(--color-accent);
}

.card-excerpt {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    flex: 1;
}

.card-meta {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--color-border);
}

/* ============================================================
   LIST ARTICLES (News section)
   ============================================================ */

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.article-list-item {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 16px;
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.2s ease;
}

.article-list-item:hover {
    transform: translateX(4px);
}

.list-item-thumbnail {
    overflow: hidden;
}

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

.list-item-body {
    padding: 16px 16px 16px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.list-item-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-text);
    text-transform: uppercase;
    line-height: 1.3;
}

.list-item-title a {
    color: inherit;
    text-decoration: none;
}

.list-item-title a:hover {
    color: var(--color-accent);
}

.list-item-excerpt {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.read-more {
    display: inline-block;
    color: var(--color-accent);
    font-family: var(--font-nav);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    margin-top: auto;
}

.read-more:hover {
    text-decoration: underline;
}

@media (max-width: 500px) {
    .article-list-item {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   CONTENT SECTIONS
   ============================================================ */

.content-section {
    margin-bottom: 50px;
}

/* ============================================================
   SIDEBAR
   ============================================================ */

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.widget {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.widget-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--color-button-text);
    background-color: var(--color-accent);
    padding: 10px 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.widget-body {
    padding: 16px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-form p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.newsletter-form input[type="email"] {
    width: 100%;
    padding: 10px 14px;
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 0.875rem;
    border-radius: var(--border-radius);
    outline: none;
}

.newsletter-form input[type="email"]:focus {
    border-color: var(--color-accent);
}

.newsletter-form button {
    width: 100%;
    padding: 10px;
    background-color: var(--color-button-bg);
    color: var(--color-button-text);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.newsletter-form button:hover {
    background-color: var(--color-button-hover);
}

.recent-posts-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.recent-posts-list li {
    border-bottom: 1px solid var(--color-border);
}

.recent-posts-list li:last-child {
    border-bottom: none;
}

.recent-posts-list a {
    display: block;
    padding: 10px 0;
    font-size: 0.875rem;
    color: var(--color-text);
    text-decoration: none;
    line-height: 1.4;
}

.recent-posts-list a:hover {
    color: var(--color-accent);
}

.recent-posts-list .post-date {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 2px;
}

/* ============================================================
   SINGLE POST
   ============================================================ */

.single-post-header {
    margin-bottom: 32px;
}

.single-post-title {
    font-family: var(--font-heading);
    font-size: var(--font-size-h1);
    color: var(--color-text);
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 16px;
}

.single-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    padding-bottom: 16px;
    border-bottom: var(--section-divider);
}

.single-post-meta .author-name {
    color: var(--color-accent);
    font-weight: bold;
}

.single-post-featured-image {
    margin-bottom: 32px;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.single-post-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text);
}

.single-post-content h2,
.single-post-content h3,
.single-post-content h4 {
    font-family: var(--font-heading);
    color: var(--color-text);
    text-transform: uppercase;
    margin: 32px 0 16px;
}

.single-post-content p {
    margin-bottom: 20px;
}

.single-post-content blockquote {
    border-left: 4px solid var(--color-accent);
    padding: 16px 24px;
    margin: 24px 0;
    background-color: var(--color-bg-secondary);
    font-style: italic;
    color: var(--color-text-muted);
}

.single-post-content ul,
.single-post-content ol {
    padding-left: 24px;
    margin-bottom: 20px;
}

.single-post-content li {
    margin-bottom: 8px;
}

.single-post-content a {
    color: var(--color-accent);
    text-decoration: underline;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
    background-color: var(--color-footer-bg);
    border-top: var(--header-border);
    padding: 48px 0 24px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 32px;
    border-bottom: 1px solid var(--color-border);
}

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

.footer-brand .site-title {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.footer-brand p {
    font-size: 0.875rem;
    color: var(--color-footer-text);
    line-height: 1.6;
    max-width: 300px;
}

.footer-widget-title {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-border);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--color-footer-text);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-copyright {
    font-size: 0.8rem;
    color: var(--color-footer-text);
}

/* ============================================================
   STYLE SWITCHER UI
   ============================================================ */

.style-switcher {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.style-switcher-toggle {
    background-color: var(--color-accent);
    color: #fff;
    border: none;
    padding: 12px 10px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    border-radius: 6px 0 0 6px;
    box-shadow: -2px 0 8px rgba(0,0,0,0.4);
    transition: background-color 0.2s ease;
}

.style-switcher-toggle:hover {
    background-color: var(--color-button-hover);
}

.style-switcher-panel {
    display: none;
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-right: none;
    border-radius: 8px 0 0 8px;
    padding: 16px;
    min-width: 200px;
    box-shadow: -4px 0 16px rgba(0,0,0,0.5);
    max-height: 80vh;
    overflow-y: auto;
}

.style-switcher-panel.is-open {
    display: block;
}

.style-switcher-panel h3 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-border);
}

.style-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    margin-bottom: 4px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.15s ease;
    border: 2px solid transparent;
}

.style-option:hover {
    background-color: var(--color-bg-card);
}

.style-option.active {
    border-color: var(--color-accent);
    background-color: var(--color-bg-card);
}

.style-swatch {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.style-name {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--color-text);
    line-height: 1.2;
}

.style-desc {
    font-size: 0.7rem;
    color: var(--color-text-muted);
}

/* ============================================================
   PAGINATION
   ============================================================ */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 32px 0;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    font-family: var(--font-heading);
    font-size: 0.875rem;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
}

.page-numbers:hover,
.page-numbers.current {
    background-color: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
    text-decoration: none;
}

/* ============================================================
   SEARCH FORM
   ============================================================ */

.search-form {
    display: flex;
    gap: 0;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 10px 14px;
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-right: none;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 0.875rem;
    outline: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.search-form input[type="search"]:focus {
    border-color: var(--color-accent);
}

.search-form button {
    padding: 10px 16px;
    background-color: var(--color-button-bg);
    color: var(--color-button-text);
    border: 1px solid var(--color-button-bg);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    cursor: pointer;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    transition: background-color 0.2s ease;
}

.search-form button:hover {
    background-color: var(--color-button-hover);
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */

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

.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ============================================================
   BREAKING NEWS TICKER
   ============================================================ */

.breaking-news-bar {
    background-color: var(--color-accent);
    color: #fff;
    padding: 8px 0;
    overflow: hidden;
}

.breaking-news-inner {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 16px;
}

.breaking-label {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    white-space: nowrap;
    padding: 2px 10px;
    background-color: rgba(0,0,0,0.3);
    border-radius: 2px;
}

.breaking-ticker {
    overflow: hidden;
    flex: 1;
}

.breaking-ticker-inner {
    display: flex;
    gap: 40px;
    animation: ticker 30s linear infinite;
    white-space: nowrap;
}

.breaking-ticker-inner:hover {
    animation-play-state: paused;
}

.breaking-ticker a {
    color: #fff;
    font-size: 0.85rem;
    text-decoration: none;
    white-space: nowrap;
}

.breaking-ticker a:hover {
    text-decoration: underline;
    color: #fff;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================================
   COMMENTS
   ============================================================ */

.comments-area {
    margin-top: 48px;
    padding-top: 32px;
    border-top: var(--section-divider);
}

.comments-title {
    font-family: var(--font-heading);
    font-size: var(--font-size-h2);
    color: var(--color-text);
    text-transform: uppercase;
    margin-bottom: 24px;
}

.comment-list {
    list-style: none;
}

.comment {
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
}

.comment-author {
    font-weight: bold;
    color: var(--color-accent);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.comment-date {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-left: 8px;
}

.comment-content {
    margin-top: 10px;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============================================================
   PRINT STYLES
   ============================================================ */

@media print {
    .site-header,
    .main-navigation,
    .style-switcher,
    .sidebar,
    .site-footer {
        display: none;
    }
    body {
        background: white;
        color: black;
    }
}

/* ============================================================
   STYLE VARIANT VARIABLE BLOCKS
   All 7 styles are defined here inline so they always load
   with the main stylesheet — no separate file dependencies.
   Each block uses body[data-style="X"] which has higher
   specificity than :root and always wins.
   ============================================================ */

/* ── 1. ANARCHIST ─────────────────────────────────────────── */
body[data-style="anarchist"],
body.style-anarchist {
    --color-bg:               #0d0d0d;
    --color-bg-secondary:     #111111;
    --color-bg-card:          #111111;
    --color-text:             #e8e8e8;
    --color-text-muted:       #999999;
    --color-accent:           #cc0000;
    --color-accent-hover:     #ff0000;
    --color-accent-secondary: #ff4444;
    --color-border:           #cc0000;
    --color-header-bg:        #000000;
    --color-header-text:      #ffffff;
    --color-nav-bg:           #0a0a0a;
    --color-nav-text:         #e8e8e8;
    --color-footer-bg:        #000000;
    --color-footer-text:      #888888;
    --color-tag-bg:           #cc0000;
    --color-tag-text:         #ffffff;
    --color-button-bg:        #cc0000;
    --color-button-text:      #ffffff;
    --color-button-hover:     #ff0000;
    --color-hero-overlay:     rgba(0,0,0,0.7);
    --font-heading:           'Anton', 'Impact', sans-serif;
    --font-body:              'Courier Prime', 'Courier New', monospace;
    --font-nav:               'Anton', 'Impact', sans-serif;
    --border-radius:          0px;
    --card-shadow:            3px 3px 0 #cc0000;
    --header-border:          3px solid #cc0000;
    --section-divider:        2px solid #cc0000;
    background-color:         #0d0d0d;
    background-image:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(204,0,0,0.03) 10px,
            rgba(204,0,0,0.03) 11px
        );
}

/* ── 2. GOTH ──────────────────────────────────────────────── */
body[data-style="goth"],
body.style-goth {
    --color-bg:               #080810;
    --color-bg-secondary:     #0f0a1a;
    --color-bg-card:          #0d0a18;
    --color-text:             #d4c5e8;
    --color-text-muted:       #8a7a9a;
    --color-accent:           #8b1a4a;
    --color-accent-hover:     #b02060;
    --color-accent-secondary: #4a0e6b;
    --color-border:           #2a1a3a;
    --color-header-bg:        #050508;
    --color-header-text:      #e8d8f8;
    --color-nav-bg:           #080810;
    --color-nav-text:         #c8b8e0;
    --color-footer-bg:        #050508;
    --color-footer-text:      #6a5a7a;
    --color-tag-bg:           #1a0a2a;
    --color-tag-text:         #c8a8e8;
    --color-button-bg:        #4a0e6b;
    --color-button-text:      #e8d8f8;
    --color-button-hover:     #8b1a4a;
    --color-hero-overlay:     rgba(8,8,16,0.75);
    --font-heading:           'Cinzel', 'Times New Roman', serif;
    --font-body:              'Playfair Display', Georgia, serif;
    --font-nav:               'Cinzel', serif;
    --border-radius:          0px;
    --card-shadow:            0 4px 20px rgba(139,26,74,0.3);
    --header-border:          1px solid #2a1a3a;
    --section-divider:        1px solid #2a1a3a;
    background-color:         #080810;
    background-image:
        radial-gradient(ellipse at top, #0f0a1a 0%, #080810 60%);
    background-attachment:    fixed;
}

/* ── 3. WITCHY ────────────────────────────────────────────── */
body[data-style="witchy"],
body.style-witchy {
    --color-bg:               #0e0a1a;
    --color-bg-secondary:     #150f22;
    --color-bg-card:          #120d1e;
    --color-text:             #e8dcc8;
    --color-text-muted:       #9a8a6a;
    --color-accent:           #c8a020;
    --color-accent-hover:     #e8c040;
    --color-accent-secondary: #6b2fa0;
    --color-border:           #2d1f4a;
    --color-header-bg:        #0a0714;
    --color-header-text:      #f0e8d0;
    --color-nav-bg:           #0e0a1a;
    --color-nav-text:         #d8c8a8;
    --color-footer-bg:        #0a0714;
    --color-footer-text:      #7a6a4a;
    --color-tag-bg:           #1e1030;
    --color-tag-text:         #c8a020;
    --color-button-bg:        #6b2fa0;
    --color-button-text:      #f0e8d0;
    --color-button-hover:     #8b4fc0;
    --color-hero-overlay:     rgba(14,10,26,0.7);
    --font-heading:           'UnifrakturMaguntia', 'Palatino Linotype', serif;
    --font-body:              'Josefin Sans', Georgia, sans-serif;
    --font-nav:               'Josefin Sans', sans-serif;
    --border-radius:          2px;
    --card-shadow:            0 4px 20px rgba(107,47,160,0.25);
    --header-border:          1px solid #2d1f4a;
    --section-divider:        1px solid #2d1f4a;
    background-color:         #0e0a1a;
    background-image:
        radial-gradient(ellipse at 20% 20%, rgba(107,47,160,0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(45,107,58,0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 0%, rgba(200,160,32,0.05) 0%, transparent 40%);
    background-attachment:    fixed;
}

/* ── 4. PASTEL RAINBOW GOTH ───────────────────────────────── */
body[data-style="pastel-rainbow-goth"],
body.style-pastel-rainbow-goth {
    --color-bg:               #0d0a14;
    --color-bg-secondary:     #150f1e;
    --color-bg-card:          #120d1a;
    --color-text:             #f0e8ff;
    --color-text-muted:       #b8a8cc;
    --color-accent:           #ff9de2;
    --color-accent-hover:     #ffb3ec;
    --color-accent-secondary: #a8d8ff;
    --color-border:           #3a2a4a;
    --color-header-bg:        #0a0810;
    --color-header-text:      #f8f0ff;
    --color-nav-bg:           #0d0a14;
    --color-nav-text:         #e8d8ff;
    --color-footer-bg:        #0a0810;
    --color-footer-text:      #8a7a9a;
    --color-tag-bg:           #1e1430;
    --color-tag-text:         #ff9de2;
    --color-button-bg:        #7b4fa8;
    --color-button-text:      #f8f0ff;
    --color-button-hover:     #ff9de2;
    --color-hero-overlay:     rgba(13,10,20,0.65);
    --font-heading:           'Quicksand', 'Trebuchet MS', sans-serif;
    --font-body:              'Quicksand', 'Trebuchet MS', sans-serif;
    --font-nav:               'Quicksand', sans-serif;
    --border-radius:          12px;
    --card-shadow:            0 4px 20px rgba(255,157,226,0.2);
    --header-border:          1px solid rgba(255,157,226,0.2);
    --section-divider:        1px solid rgba(168,216,255,0.2);
    background-color:         #0d0a14;
    background-image:
        linear-gradient(135deg,
            rgba(255,157,226,0.06) 0%,
            rgba(168,216,255,0.06) 33%,
            rgba(168,255,200,0.06) 66%,
            rgba(255,220,100,0.06) 100%);
    background-attachment:    fixed;
}

/* ── 5. CYBERPUNK QUEER ───────────────────────────────────── */
body[data-style="cyberpunk"],
body.style-cyberpunk {
    --color-bg:               #050510;
    --color-bg-secondary:     #0a0a1e;
    --color-bg-card:          #080818;
    --color-text:             #e0f8ff;
    --color-text-muted:       #6a9aaa;
    --color-accent:           #00ffff;
    --color-accent-hover:     #40ffff;
    --color-accent-secondary: #ff00aa;
    --color-border:           #00ffff33;
    --color-header-bg:        #020208;
    --color-header-text:      #00ffff;
    --color-nav-bg:           #050510;
    --color-nav-text:         #b0e8f8;
    --color-footer-bg:        #020208;
    --color-footer-text:      #3a6a7a;
    --color-tag-bg:           #0a1a2a;
    --color-tag-text:         #00ffff;
    --color-button-bg:        #ff00aa;
    --color-button-text:      #ffffff;
    --color-button-hover:     #ff40cc;
    --color-hero-overlay:     rgba(5,5,16,0.7);
    --font-heading:           'Orbitron', 'Courier New', monospace;
    --font-body:              'Courier Prime', 'Courier New', monospace;
    --font-nav:               'Orbitron', monospace;
    --border-radius:          0px;
    --card-shadow:            0 0 15px rgba(0,255,255,0.15), 0 0 30px rgba(255,0,170,0.1);
    --header-border:          1px solid rgba(0,255,255,0.3);
    --section-divider:        1px solid rgba(0,255,255,0.2);
    background-color:         #050510;
    background-image:
        linear-gradient(rgba(0,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,255,255,0.03) 1px, transparent 1px);
    background-size:          40px 40px;
    background-attachment:    fixed;
}

/* ── 6. COTTAGECORE QUEER ─────────────────────────────────── */
body[data-style="cottagecore"],
body.style-cottagecore {
    --color-bg:               #f5f0e8;
    --color-bg-secondary:     #ede5d8;
    --color-bg-card:          #faf6f0;
    --color-text:             #3a2e1e;
    --color-text-muted:       #7a6a50;
    --color-accent:           #5a8a3a;
    --color-accent-hover:     #4a7a2a;
    --color-accent-secondary: #c87840;
    --color-border:           #d0c0a8;
    --color-header-bg:        #ede5d8;
    --color-header-text:      #3a2e1e;
    --color-nav-bg:           #e8ddd0;
    --color-nav-text:         #4a3a28;
    --color-footer-bg:        #d8cfc0;
    --color-footer-text:      #6a5a40;
    --color-tag-bg:           #d0e8c0;
    --color-tag-text:         #3a5a20;
    --color-button-bg:        #5a8a3a;
    --color-button-text:      #ffffff;
    --color-button-hover:     #4a7a2a;
    --color-hero-overlay:     rgba(58,46,30,0.5);
    --font-heading:           'Playfair Display', Georgia, serif;
    --font-body:              'Raleway', 'Gill Sans', sans-serif;
    --font-nav:               'Raleway', sans-serif;
    --border-radius:          8px;
    --card-shadow:            0 2px 12px rgba(58,46,30,0.1);
    --header-border:          1px solid #d0c0a8;
    --section-divider:        1px solid #d0c0a8;
    background-color:         #f5f0e8;
    background-image:
        radial-gradient(ellipse at 10% 90%, rgba(90,138,58,0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 10%, rgba(200,120,64,0.06) 0%, transparent 50%);
    background-attachment:    fixed;
}

/* ── 7. RIOT GRRRL ────────────────────────────────────────── */
body[data-style="riot-grrrl"],
body.style-riot-grrrl {
    --color-bg:               #0d0d0d;
    --color-bg-secondary:     #111111;
    --color-bg-card:          #111111;
    --color-text:             #f0f0f0;
    --color-text-muted:       #aaaaaa;
    --color-accent:           #ff0080;
    --color-accent-hover:     #ff40a0;
    --color-accent-secondary: #ffff00;
    --color-border:           #ff0080;
    --color-header-bg:        #000000;
    --color-header-text:      #ff0080;
    --color-nav-bg:           #0a0a0a;
    --color-nav-text:         #f0f0f0;
    --color-footer-bg:        #000000;
    --color-footer-text:      #888888;
    --color-tag-bg:           #ff0080;
    --color-tag-text:         #ffffff;
    --color-button-bg:        #ff0080;
    --color-button-text:      #ffffff;
    --color-button-hover:     #ff40a0;
    --color-hero-overlay:     rgba(0,0,0,0.7);
    --font-heading:           'Abril Fatface', 'Georgia', serif;
    --font-body:              'Special Elite', 'Courier New', monospace;
    --font-nav:               'Abril Fatface', serif;
    --border-radius:          0px;
    --card-shadow:            4px 4px 0 #ff0080;
    --header-border:          3px solid #ff0080;
    --section-divider:        2px solid #ff0080;
    background-color:         #0d0d0d;
    background-image:
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 8px,
            rgba(255,0,128,0.04) 8px,
            rgba(255,0,128,0.04) 9px
        );
}
