/*
 * QueerDispatch — Witchy Style
 * Deep purples, forest greens, gold accents, mystical symbols,
 * tarot card aesthetic, moon phases, herbal vibes
 *
 * FIX: All variables scoped to body[data-style="witchy"], body.style-witchy to override
 * the :root defaults in style.css regardless of load order.
 */

body[data-style="witchy"], body.style-witchy {
    --color-bg: #0e0a1a;
    --color-bg-secondary: #160e24;
    --color-bg-card: #130c20;
    --color-text: #e8d8b8;
    --color-text-muted: #b09a70;
    --color-accent: #c8a020;
    --color-accent-hover: #f0c840;
    --color-accent-secondary: #2d6b3a;
    --color-border: #2a1e3a;
    --color-header-bg: #0e0a1a;
    --color-header-text: #f0e0c0;
    --color-nav-bg: #0a0814;
    --color-nav-text: #c8a020;
    --color-footer-bg: #080610;
    --color-footer-text: #a08860;
    --color-tag-bg: #2d6b3a;
    --color-tag-text: #e8d8b8;
    --color-button-bg: #6b2fa0;
    --color-button-text: #f0e0c0;
    --color-button-hover: #8b40c8;
    --font-heading: 'Cinzel', 'Palatino Linotype', serif;
    --font-body: 'Playfair Display', 'Georgia', serif;
    --font-nav: 'Cinzel', serif;
    --border-radius: 4px;
    --card-shadow: 0 4px 16px rgba(200,160,32,0.15), 0 0 0 1px rgba(200,160,32,0.1);
    --header-border: 2px solid #c8a020;
    --section-divider: 1px solid #c8a020;
}

/* Mystical starfield background */
body[data-style="witchy"], body.style-witchy {
    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;
}

/* Stars effect */
body[data-style="witchy"]::before, body.style-witchy::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 10% 15%, rgba(255,255,200,0.6) 0%, transparent 100%),
        radial-gradient(1px 1px at 30% 5%, rgba(255,255,200,0.4) 0%, transparent 100%),
        radial-gradient(1px 1px at 50% 25%, rgba(255,255,200,0.5) 0%, transparent 100%),
        radial-gradient(1px 1px at 70% 10%, rgba(255,255,200,0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 90% 20%, rgba(255,255,200,0.6) 0%, transparent 100%),
        radial-gradient(1px 1px at 15% 40%, rgba(255,255,200,0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 85% 35%, rgba(255,255,200,0.4) 0%, transparent 100%),
        radial-gradient(2px 2px at 20% 60%, rgba(200,160,32,0.3) 0%, transparent 100%),
        radial-gradient(2px 2px at 60% 15%, rgba(200,160,32,0.2) 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

/* Section titles — mystical */
body[data-style="witchy"] .section-title , body.style-witchy .section-title  {
    font-family: 'Cinzel', serif;
    color: #c8a020;
    letter-spacing: 4px;
    text-transform: uppercase;
    position: relative;
}

body[data-style="witchy"] .section-title::before , body.style-witchy .section-title::before  {
    content: '☽';
    color: #c8a020;
    margin-right: 12px;
    font-size: 0.9em;
    background: none;
    width: auto;
    height: auto;
    display: inline;
}

body[data-style="witchy"] .section-title::after , body.style-witchy .section-title::after  {
    content: '☾';
    color: #c8a020;
    margin-left: 12px;
    font-size: 0.9em;
    display: inline;
    background: none;
    width: auto;
    height: auto;
}

body[data-style="witchy"] .section-header , body.style-witchy .section-header  { border-bottom: none; }

body[data-style="witchy"] .section-header::after , body.style-witchy .section-header::after  {
    content: '';
    display: block;
    height: 1px;
    background: linear-gradient(90deg, transparent, #c8a020, #6b2fa0, #c8a020, transparent);
    margin-top: 12px;
}

/* Cards — tarot card aesthetic */
body[data-style="witchy"] .article-card , body.style-witchy .article-card  {
    border: 1px solid #2a1e3a;
    border-top: 3px solid #c8a020;
    background: linear-gradient(180deg, #160e24 0%, #0e0a1a 100%);
    position: relative;
    overflow: visible;
}

body[data-style="witchy"] .article-card::before , body.style-witchy .article-card::before  {
    content: '';
    position: absolute;
    top: -1px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #c8a020, transparent);
}

body[data-style="witchy"] .article-card:hover , body.style-witchy .article-card:hover  {
    box-shadow: 0 8px 32px rgba(200,160,32,0.25), 0 0 0 1px rgba(200,160,32,0.2);
    transform: translateY(-4px) rotate(0.3deg);
}

/* Hero — mystical altar feel */
body[data-style="witchy"] .hero-content , body.style-witchy .hero-content  {
    background: linear-gradient(135deg, #160e24, #0e0a1a);
    border-left: 3px solid #c8a020;
}

body[data-style="witchy"] .hero-title , body.style-witchy .hero-title  {
    font-family: 'Cinzel', serif;
    color: #f0e0c0;
    text-shadow: 0 0 20px rgba(200,160,32,0.4);
    letter-spacing: 2px;
}

/* Site title */
body[data-style="witchy"] .site-title , body.style-witchy .site-title  {
    font-family: 'Cinzel', serif;
    font-weight: 900;
    color: #f0e0c0;
    letter-spacing: 3px;
    text-shadow: 0 0 12px rgba(200,160,32,0.5);
}

/* Navigation */
body[data-style="witchy"] .main-navigation , body.style-witchy .main-navigation  {
    background: linear-gradient(180deg, #0a0814, #0e0a1a);
    border-bottom: 1px solid #2a1e3a;
}

body[data-style="witchy"] .nav-menu a , body.style-witchy .nav-menu a  {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: #c8b890;
    text-transform: uppercase;
}

body[data-style="witchy"] .nav-menu a:hover,
body.style-witchy .nav-menu a:hover,
body[data-style="witchy"] .nav-menu .current-menu-item > a,
body.style-witchy .nav-menu .current-menu-item > a {
    background: linear-gradient(135deg, #6b2fa0, #2d6b3a);
    color: #f0e0c0;
}

/* Tags — herbal/botanical */
body[data-style="witchy"] .tag , body.style-witchy .tag  {
    background: linear-gradient(135deg, #2d6b3a, #1a4a28);
    border: 1px solid rgba(200,160,32,0.3);
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
    letter-spacing: 1px;
    border-radius: 3px;
}

/* Widget titles */
body[data-style="witchy"] .widget-title , body.style-witchy .widget-title  {
    background: linear-gradient(135deg, #6b2fa0, #2d6b3a);
    font-family: 'Cinzel', serif;
    letter-spacing: 3px;
    border-bottom: 2px solid #c8a020;
}

/* Footer */
body[data-style="witchy"] .site-footer , body.style-witchy .site-footer  {
    background: linear-gradient(0deg, #080610, #0e0a1a);
}

body[data-style="witchy"] .site-footer::before , body.style-witchy .site-footer::before  {
    content: '✦ ☽ ✦ ☾ ✦';
    display: block;
    text-align: center;
    color: #c8a020;
    font-size: 1rem;
    letter-spacing: 8px;
    padding: 16px 0;
    border-bottom: 1px solid #2a1e3a;
}

/* Blockquote — oracle/prophecy style */
body[data-style="witchy"] .single-post-content blockquote , body.style-witchy .single-post-content blockquote  {
    border-left: 4px solid #c8a020;
    background: linear-gradient(135deg, #160e24, #0e0a1a);
    font-style: italic;
    font-family: 'Playfair Display', serif;
    color: #e8d8b8;
    position: relative;
    border-radius: 4px;
}

body[data-style="witchy"] .single-post-content blockquote::before , body.style-witchy .single-post-content blockquote::before  {
    content: '✦';
    color: #c8a020;
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    background: #0e0a1a;
    padding: 0 8px;
}

/* Buttons */
body[data-style="witchy"] .btn , body.style-witchy .btn  {
    background: linear-gradient(135deg, #6b2fa0, #4a1e70);
    border: 1px solid rgba(200,160,32,0.4);
    font-family: 'Cinzel', serif;
    letter-spacing: 2px;
    box-shadow: 0 2px 12px rgba(107,47,160,0.4), inset 0 1px 0 rgba(200,160,32,0.2);
}

body[data-style="witchy"] .btn:hover , body.style-witchy .btn:hover  {
    background: linear-gradient(135deg, #8b40c8, #6b2fa0);
    box-shadow: 0 4px 20px rgba(107,47,160,0.6), 0 0 0 1px rgba(200,160,32,0.4);
}

/* Breaking news */
body[data-style="witchy"] .breaking-news-bar , body.style-witchy .breaking-news-bar  {
    background: linear-gradient(90deg, #6b2fa0, #c8a020, #2d6b3a, #c8a020, #6b2fa0);
    background-size: 200% 100%;
    animation: witchyGradient 8s ease infinite;
}

@keyframes witchyGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Read more */
body[data-style="witchy"] .read-more , body.style-witchy .read-more  {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: #c8a020;
}

body[data-style="witchy"] .read-more::after , body.style-witchy .read-more::after  { content: ' ✦'; }

/* Scrollbar */
body[data-style="witchy"] ::-webkit-scrollbar, body.style-witchy ::-webkit-scrollbar { width: 8px; }
body[data-style="witchy"] ::-webkit-scrollbar-track, body.style-witchy ::-webkit-scrollbar-track { background: #0e0a1a; }
body[data-style="witchy"] ::-webkit-scrollbar-thumb, body.style-witchy ::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #6b2fa0, #c8a020); border-radius: 4px; }

/* Moon phase decoration on sidebar */
body[data-style="witchy"] .sidebar .widget:first-child .widget-title::before , body.style-witchy .sidebar .widget:first-child .widget-title::before  { content: '🌙 '; }

/* Glowing gold links */
body[data-style="witchy"] a:hover , body.style-witchy a:hover  { text-shadow: 0 0 6px rgba(200,160,32,0.4); }

/* Single post content links — bright gold for legibility on dark bg */
body[data-style="witchy"] .single-post-content a,
body.style-witchy .single-post-content a {
    color: #f0c840;
    text-decoration: underline;
    text-decoration-color: rgba(200,160,32,0.5);
}
body[data-style="witchy"] .single-post-content a:hover,
body.style-witchy .single-post-content a:hover {
    color: #ffe060;
    text-shadow: 0 0 8px rgba(200,160,32,0.5);
}

/* Single post body text — improved line-height for readability */
body[data-style="witchy"] .single-post-content,
body.style-witchy .single-post-content {
    font-size: 1.05rem;
    line-height: 1.85;
}
