/*
Theme Name: Astro Almanac (Royal Solar Edition - Pure CSS)
Version: 13.0
Author: Astro Magic
*/

/* =========================================
   1. FONTS & VARIABLES
   ========================================= */

* {
    box-sizing: border-box;
}

:root {
    --gold: #d4af37;
    --gold-glow: #ffd700;
    --deep-space: #050510;
    --scroll-bg: #f5e6c8;
    --ink: #2b1f1f;
    --wood: #5c4033;
    --fire-red: #8b0000;
    --fire-orange: #ff4500;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Lora', serif;
    background: radial-gradient(circle at center, #1a1a2e, #000);
    color: #eee;
    min-height: 100vh;
    overflow-x: hidden;
}

/* =========================================
   2. STARS BACKGROUND
   ========================================= */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(1px 1px at 20% 30%, white, transparent),
        radial-gradient(1px 1px at 50% 80%, white, transparent);
    background-size: 200px 200px;
    z-index: -1;
}

/* =========================================
   3. HEADER & MENU
   ========================================= */
.site-header {
    text-align: center;
    padding: 15px 0;
    background: rgba(0, 0, 0, 0.9);
    border-bottom: 2px solid var(--gold);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.site-header h1 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    margin: 0 0 10px 0;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.main-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.main-navigation a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 8px 12px;
    border: 1px solid transparent;
    transition: 0.3s;
    border-radius: 4px;
}

.main-navigation a:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(212, 175, 55, 0.1);
}

/* =========================================
   4. TOP ZODIAC STRIP
   ========================================= */
.zodiac-strip-wrapper {
    background: rgba(10, 10, 20, 0.8);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    padding: 15px 0;
    overflow: hidden;
    /* Hide scrollbar */
    position: relative;
}

.zodiac-strip {
    display: flex;
    width: max-content;
    /* Allow it to be as wide as needed */
    gap: 40px;
    animation: scroll 40s linear infinite;
}

.zodiac-strip:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* Move half the width (since we doubled content) */
}

.zodiac-icon-card {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #aaa;
    transition: 0.3s;
    min-width: 80px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid transparent;
}

.zodiac-icon-card:hover {
    color: var(--gold-glow);
    transform: translateY(-5px);
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.z-symbol {
    font-size: 2rem;
    margin-bottom: 5px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.z-name {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   5. HERO SPLIT SECTION
   ========================================= */
.hero-split {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.hero-text {
    flex: 1;
    min-width: 300px;
}

.hero-text h2 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 25px;
    line-height: 1.6;
}

.featured-prophecy {
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--gold);
    padding: 20px;
    border-radius: 0 8px 8px 0;
}

/* =========================================
   6. SOLAR FIRE CALCULATOR
   ========================================= */
.sun-wrapper {
    position: relative;
    width: 350px;
    height: 350px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sun-fire {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #8b0000, #ff4500, #ffd700, #ff4500, #8b0000);
    filter: blur(20px);
    opacity: 0.9;
    animation: spinFire 5s linear infinite;
    z-index: 1;
}

@keyframes spinFire {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.sun-interface {
    position: relative;
    z-index: 10;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, #200505 0%, #4a0000 100%);
    border-radius: 50%;
    border: 2px solid var(--fire-orange);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.sun-title {
    font-family: 'Cinzel', serif;
    color: var(--gold-glow);
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 15px;
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--fire-orange);
}

.sun-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.sun-input {
    background: rgba(0, 0, 0, 0.6) !important;
    border: 1px solid var(--fire-orange) !important;
    color: var(--gold-glow) !important;
    width: 50px;
    padding: 8px 0;
    text-align: center;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    border-radius: 5px;
    outline: none;
}

.sun-input::-webkit-inner-spin-button,
.sun-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.sun-input:focus {
    border-color: var(--gold-glow) !important;
    box-shadow: 0 0 10px var(--fire-orange);
}

.divider {
    font-size: 1.5rem;
    color: var(--fire-orange);
    font-weight: bold;
}

.reveal-btn {
    background: linear-gradient(45deg, #ff4500, #ffd700);
    border: none;
    color: #4a0000;
    padding: 10px 25px;
    border-radius: 25px;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 0 15px var(--fire-orange);
}

.sun-result {
    position: absolute;
    bottom: -60px;
    width: 100%;
    text-align: center;
    color: var(--gold-glow);
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    text-shadow: 0 0 10px var(--fire-orange);
}

/* =========================================
   7. THE ROYAL SCROLL (Pure CSS)
   ========================================= */
.royal-scroll {
    position: relative;
    max-width: 900px;
    margin: 60px auto;

    /* Paper Texture Gradient */
    background-color: var(--scroll-bg);
    background-image: linear-gradient(90deg,
            rgba(0, 0, 0, 0.08) 0%,
            rgba(0, 0, 0, 0) 5%,
            rgba(0, 0, 0, 0) 95%,
            rgba(0, 0, 0, 0.08) 100%);

    /* Box Shadow */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);

    /* Typography */
    color: var(--ink);
    border-radius: 2px;
    padding: 100px 120px;
    /* Comfortable reading space */
}

/* 3D Wood Rollers */
.royal-scroll::before,
.royal-scroll::after {
    content: "";
    position: absolute;
    left: -20px;
    right: -20px;
    height: 35px;
    border-radius: 10px;
    background: linear-gradient(to bottom, #3e2723 0%, #8d6e63 50%, #3e2723 100%);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8), 0 5px 15px rgba(0, 0, 0, 0.6);
    z-index: 2;
    border: 1px solid #2e1e1a;
}

.royal-scroll::before {
    top: -15px;
}

.royal-scroll::after {
    bottom: -15px;
}

/* Readable Body Font (Not Handwriting) */
.scroll-content {
    font-family: 'Lora', serif;
    /* Easy to read book font */
    font-size: 1.25rem;
    line-height: 1.8;
    color: #2b1f1f;
}

.scroll-title {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    text-align: center;
    color: #2c1a16;
    border-bottom: 2px solid #5c4033;
    padding-bottom: 20px;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Wax Seal */
.wax-seal {
    position: absolute;
    bottom: 50px;
    right: 50px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at 30% 30%, #d32f2f, #8b0000);
    border-radius: 50%;
    box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: 'Cinzel', serif;
    font-weight: bold;
    color: #580000;
    font-size: 0.65rem;
    line-height: 1.1;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    transform: rotate(-10deg);
}

/* =========================================
   8. EXPLORE GRIDS & ARTICLES
   ========================================= */
.topic-section {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px;
}

.topic-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    margin-bottom: 30px;
    padding-bottom: 10px;
}

.topic-header h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--gold);
    margin: 0;
}

.topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.topic-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.2));
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 30px 20px;
    text-align: center;
    border-radius: 12px;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.topic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.15), transparent 70%);
    opacity: 0;
    transition: 0.5s;
}

.topic-card::after {
    /* Card border pattern effect */
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 10px;
    pointer-events: none;
}

.topic-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: var(--gold);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 15px rgba(212, 175, 55, 0.2);
}

.topic-card:hover::before {
    opacity: 1;
}

.topic-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.3));
    transition: 0.3s;
}

.topic-card:hover .topic-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.6));
}

.topic-title {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 20px;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Article Cards */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.star-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.star-card h3 a {
    color: var(--gold);
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
}

.star-card p {
    font-size: 0.95rem;
    color: #ccc;
}

/* =========================================
   9. PRO FOOTER
   ========================================= */
.site-footer {
    background-color: #050510;
    background-image: radial-gradient(circle at 50% 0%, #1a1a2e 0%, #050510 70%);
    border-top: 4px double var(--gold);
    color: #a0a0a0;
    margin-top: 80px;
    padding: 70px 20px 30px;
    font-size: 0.95rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    text-align: left;
}

.footer-col h4 {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 1.3rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.footer-col h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 2px;
    background: var(--fire-orange);
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    font-family: 'Lora', serif;
}

.footer-col ul li a:hover {
    color: var(--gold-glow);
    padding-left: 5px;
    text-shadow: 0 0 8px var(--gold);
}

.footer-col ul li a::before {
    content: "›";
    color: var(--fire-orange);
    margin-right: 8px;
    opacity: 0.7;
}

.copyright {
    max-width: 1200px;
    margin: 60px auto 0;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.85rem;
    color: #666;
    font-family: 'Cinzel', serif;
}

/* =========================================
   10. MODAL & COMPATIBILITY HELPERS
   ========================================= */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
}

.modal-content {
    background: #0a0a12;
    border: 2px solid var(--gold);
    width: 90%;
    max-width: 500px;
    padding: 40px;
    text-align: center;
    position: relative;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.3);
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2rem;
    color: #888;
    cursor: pointer;
}

.comp-wrapper {
    max-width: 600px;
    margin: 60px auto;
    padding: 40px;
    background: rgba(10, 10, 20, 0.85);
    border: 1px solid var(--gold);
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.comp-result-box {
    margin-top: 30px;
    padding: 20px;
    border: 1px solid rgba(255, 211, 105, 0.3);
    background: rgba(0, 0, 0, 0.5);
    display: none;
}

/* =========================================
   11. MOBILE OPTIMIZATION
   ========================================= */
/* Refined Compact Design & Input Fixes */
.topic-grid {
    gap: 20px;
}

.topic-card {
    width: 150px;
    /* Compact width */
    height: 220px;
    /* Compact height */
    padding: 20px 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.topic-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.7), 0 0 10px rgba(212, 175, 55, 0.2);
}

.topic-title {
    font-size: 0.9rem;
    /* Smaller font */
    margin-top: 10px;
}

/* New Category Images - Adjusted for compact card */
.topic-icon-img {
    max-width: 60px;
    /* Smaller image */
    margin-bottom: 10px;
}

/* Remove Spinners from Number Inputs */
.sun-input::-webkit-inner-spin-button,
.sun-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.sun-input {
    -moz-appearance: textfield;
    /* Firefox */
}

.sun-input {
    -moz-appearance: textfield;
    /* Firefox */
    appearance: textfield;
    /* Standard */
}

/* =========================================
   MOBILE RESPONSIVENESS
   ========================================= */
.menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    margin-bottom: 15px;
}

@media (max-width: 768px) {

    /* Mobile Menu */
    .menu-toggle {
        display: block;
        margin: 0 auto 20px;
    }

    .main-navigation {
        display: none;
        width: 100%;
        background: rgba(10, 10, 20, 0.95);
        padding: 20px;
        border-radius: 10px;
        border: 1px solid var(--gold);
        text-align: center;
    }

    .main-navigation.active {
        display: block;
        animation: slideDown 0.3s ease-out;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 15px;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Cards - 2 Columns on Mobile */
    .topic-grid {
        gap: 10px;
    }

    .topic-card {
        width: 45%;
        /* Fit 2 per row */
        min-width: 140px;
        height: auto;
        min-height: 200px;
        padding: 15px 10px;
    }

    .topic-title {
        font-size: 0.8rem;
    }

    .topic-icon-img {
        max-width: 50px;
    }
}

/* Mobile Redesign - Horizontal Cards (Override) */
@media (max-width: 768px) {
    .topic-grid {
        gap: 15px;
        flex-direction: column;
        /* Stack vertically */
    }

    .topic-card {
        width: 100%;
        min-width: 0;
        height: auto;
        min-height: 90px;
        padding: 15px 20px;
        flex-direction: row;
        /* Horizontal layout */
        justify-content: space-between;
        /* Text left, Icon right */
        align-items: center;
        text-align: left;
    }

    .topic-title {
        font-size: 1rem;
        margin-top: 0;
        margin-right: 15px;
        flex: 1;
    }

    .topic-icon-img {
        max-width: 50px;
        margin-bottom: 0;
        margin-left: 0;
        margin-right: 0;
    }
}

/* =========================================
   12. ADVERTISEMENTS
   ========================================= */
.ad-container {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ad-placeholder {
    width: 100%;
    height: 150px;
    /* Standard banner height */
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed var(--gold);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--gold);
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .ad-placeholder {
        height: 100px;
        font-size: 1rem;
    }
}

.ad-vertical {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 160px;
    height: 600px;
    z-index: 900;
}

.ad-vertical-left {
    left: 10px;
}

.ad-vertical-right {
    right: 10px;
}

@media (max-width: 1600px) {
    .ad-vertical {
        display: none;
    }
}

/* =========================================
   13. BLOG LAYOUT (Sidebar & Single)
   ========================================= */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

.blog-main {
    min-width: 0;
    /* Prevent grid blowout */
}

.sidebar {
    position: sticky;
    top: 100px;
}

.widget-box {
    background: rgba(10, 10, 20, 0.8);
    border: 1px solid var(--gold);
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.widget-title {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.1rem;
    text-transform: uppercase;
    text-align: center;
}

.post-meta {
    text-align: center;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    color: #5c4033;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Share Buttons */
.share-box {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    padding: 5px 15px;
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: bold;
    transition: 0.3s;
}

.share-btn:hover {
    opacity: 0.8;
}

.fb {
    background: #3b5998;
}

.tw {
    background: #1da1f2;
}

.wa {
    background: #25d366;
}

/* Related Posts */
.related-posts {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.related-title {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    text-align: center;
    margin-bottom: 30px;
}

/* Mobile Blog Layout */
@media (max-width: 900px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        margin-top: 40px;
    }

    /* =========================================
   14. MOBILE AD FIXES
   ========================================= */
    @media (max-width: 768px) {
        .ad-placeholder {
            height: 100px;
            font-size: 0.9rem;
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
        }

        .ad-container {
            padding: 0 10px;
            margin: 20px auto;
            overflow: hidden;
        }
    }

    /* =========================================
   15. LIGHT MODE VARIABLES
   ========================================= */
    :root {
        --gold: #d4af37;
        --gold-glow: #ffd700;
        --deep-space: #050510;
        --scroll-bg: #f5e6c8;
        --ink: #2b1f1f;
        --wood: #5c4033;
        --fire-red: #8b0000;
        --fire-orange: #ff4500;

        /* Default Theme Variables */
        --bg-dark: #050510;
        --text-light: #eee;
        --card-bg: rgba(5, 5, 10, 0.9);
        --border-color: #d4af37;
    }

    [data-theme="light"] {
        --bg-dark: #f4f1ea;
        --text-light: #2b1f1f;
        --card-bg: rgba(255, 255, 255, 0.8);
        --border-color: #d4af37;
    }

    [data-theme="light"] body {
        background: var(--bg-dark);
        color: var(--text-light);
    }

    [data-theme="light"] .site-header {
        background: rgba(255, 255, 255, 0.95);
        border-bottom: 1px solid var(--gold);
    }

    [data-theme="light"] .site-header h1 a {
        color: #2b1f1f !important;
    }

    [data-theme="light"] .main-navigation a {
        color: #5c4033;
    }

    [data-theme="light"] .hero-text h2,
    [data-theme="light"] .hero-text p {
        color: #2b1f1f;
        text-shadow: none;
    }

    [data-theme="light"] .star-card,
    [data-theme="light"] .topic-card,
    [data-theme="light"] .widget-box,
    [data-theme="light"] .star-form {
        background: #fff;
        border: 1px solid #d4af37;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        color: #2b1f1f;
    }

    [data-theme="light"] .star-card h3 a {
        color: #8b0000;
    }

    [data-theme="light"] .star-card p {
        color: #4a3b32;
    }

    [data-theme="light"] .ad-placeholder {
        background: rgba(0, 0, 0, 0.05);
        border: 1px dashed #8b0000;
        color: #8b0000;
    }

    [data-theme="light"] input,
    [data-theme="light"] select,
    [data-theme="light"] textarea {
        background: #fff !important;
        color: #000 !important;
        border: 1px solid #ccc;
    }

    /* =========================================
   12. CELESTIAL CALCULATOR STYLES
   ========================================= */
    .celestial-wrapper {
        max-width: 900px;
        margin: 60px auto;
        padding: 20px;
    }

    /* The Form Card */
    .star-form {
        background: rgba(5, 5, 10, 0.9);
        border: 2px solid #d4af37;
        padding: 40px;
        border-radius: 8px;
        position: relative;
        box-shadow: 0 0 30px rgba(212, 175, 55, 0.1);
    }

    .star-form input,
    .star-form select {
        width: 100%;
        padding: 12px;
        margin-bottom: 5px;
        /* Reduced for error msg space */
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid #555;
        color: #fff;
        font-family: 'Lora', serif;
        border-radius: 4px;
        transition: 0.3s;
    }

    .star-form input:focus,
    .star-form select:focus {
        border-color: #d4af37;
        background: rgba(255, 255, 255, 0.1);
        outline: none;
    }

    .star-form label {
        color: #d4af37;
        font-family: 'Cinzel', serif;
        font-size: 0.9rem;
        display: block;
        margin-bottom: 8px;
        margin-top: 15px;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .error-msg {
        color: #ff4500;
        font-size: 0.8rem;
        height: 15px;
        margin-bottom: 5px;
        display: block;
    }

    /* City Autocomplete */
    .input-group {
        position: relative;
    }

    .city-suggestions {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #1a1a2e;
        border: 1px solid #d4af37;
        border-top: none;
        list-style: none;
        padding: 0;
        margin: 0;
        z-index: 100;
        max-height: 200px;
        overflow-y: auto;
        display: none;
    }

    .city-suggestions li {
        padding: 10px;
        cursor: pointer;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .city-suggestions li:hover {
        background: rgba(212, 175, 55, 0.2);
    }

    /* The Result Scroll */
    .destiny-scroll {
        display: none;
        margin-top: 50px;
        background-color: #f5e6c8;
        /* Parchment color */
        background-image: url('images/parchment-texture.png');
        padding: 60px 50px;
        color: #2b1f1f;
        position: relative;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
        border-radius: 2px;
    }

    /* 3D Rollers */
    .destiny-scroll::before,
    .destiny-scroll::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        height: 20px;
        background: linear-gradient(to bottom, #3e2723, #5d4037, #3e2723);
        border-radius: 5px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    }

    .destiny-scroll::before {
        top: -10px;
    }

    .destiny-scroll::after {
        bottom: -10px;
    }

    .profile-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 30px;
        margin-top: 30px;
        margin-bottom: 30px;
    }

    .profile-item {
        border: 1px solid rgba(92, 64, 51, 0.3);
        padding: 15px;
        text-align: center;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 4px;
    }

    .profile-label {
        font-family: 'Cinzel', serif;
        font-size: 0.8rem;
        color: #5c4033;
        text-transform: uppercase;
        margin-bottom: 5px;
        display: block;
    }

    .profile-value {
        font-family: 'Lora', serif;
        font-size: 1.2rem;
        font-weight: bold;
        color: #2b1f1f;
    }

    .wax-stamp {
        position: absolute;
        bottom: 30px;
        right: 30px;
        width: 80px;
        height: 80px;
        background: radial-gradient(circle at 30% 30%, #d32f2f, #8b0000);
        border-radius: 50%;
        box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.4);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #580000;
        font-family: 'Cinzel', serif;
        font-weight: bold;
        font-size: 0.7rem;
        border: 2px dashed rgba(255, 255, 255, 0.2);
        transform: rotate(-10deg);
        text-align: center;
    }

    /* =========================================
   13. INDEX PAGE STYLES
   ========================================= */
    .prophecy-label {
        color: #ff4500;
        text-transform: uppercase;
        font-weight: bold;
    }

    .prophecy-title {
        margin: 10px 0;
        font-family: 'Cinzel', serif;
    }

    .prophecy-title a {
        color: #fff;
        text-decoration: none;
    }

    .prophecy-link {
        color: #d4af37;
        font-weight: bold;
    }

    .divination-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }

    .center-card {
        text-align: center;
    }

    .card-title {
        font-family: 'Cinzel', serif;
        color: var(--gold);
    }

    .mt-10 {
        display: inline-block;
        margin-top: 10px;
        text-decoration: none;
    }

    .section-title {
        text-align: center;
        font-family: 'Cinzel', serif;
        color: var(--gold);
        margin-bottom: 40px;
    }

    .date-label {
        color: rgba(255, 255, 255, 0.5);
        display: block;
        margin-bottom: 10px;
    }

    .read-link {
        color: #d4af37;
        font-weight: bold;
    }


    /* =========================================
   16. MOBILE FIXES & RESPONSIVENESS
   ========================================= */
    .form-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    @media (max-width: 768px) {

        /* Stack Form Rows */
        .form-row {
            grid-template-columns: 1fr;
            gap: 15px;
        }

        /* Fix Hero Section */
        .hero-split {
            flex-direction: column;
            text-align: center;
        }

        .hero-text {
            margin-bottom: 40px;
        }

        /* Fix Calculator Container */
        .celestial-wrapper {
            margin: 20px auto;
            padding: 15px;
        }

        .star-form {
            padding: 20px;
        }

        /* Fix Ad Overflow */
        .ad-container {
            padding: 0 10px;
            overflow: hidden;
        }

        .ad-placeholder {
            width: 100% !important;
            max-width: 100% !important;
            box-sizing: border-box;
        }
    }


    /* =========================================
   17. CONSOLIDATED MOBILE STYLES
   ========================================= */
    @media (max-width: 768px) {

        /* Mobile Menu */
        .menu-toggle {
            display: block;
            margin: 0 auto 20px;
        }

        .main-navigation {
            display: none;
            width: 100%;
            background: rgba(10, 10, 20, 0.95);
            padding: 20px;
            border-radius: 10px;
            border: 1px solid var(--gold);
            text-align: center;
        }

        .main-navigation.active {
            display: block;
            animation: slideDown 0.3s ease-out;
        }

        .main-navigation ul {
            flex-direction: column;
            gap: 15px;
        }

        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Cards - Stack Vertically for better readability */
        .topic-grid {
            gap: 15px;
            flex-direction: column;
        }

        .topic-card {
            width: 100%;
            height: auto;
            min-height: 90px;
            padding: 15px 20px;
            flex-direction: row;
            justify-content: space-between;
            align-items: center;
            text-align: left;
        }

        .topic-title {
            font-size: 1rem;
            margin-top: 0;
            margin-right: 15px;
            flex: 1;
        }

        .topic-icon-img {
            max-width: 50px;
            margin-bottom: 0;
        }
    }

    /* =========================================================================
   ZODIAC MODAL - UNLOCKED CONTENT STYLING
   ========================================================================= */
    .zodiac-details {
        color: #fff;
        line-height: 1.8;
    }

    .zodiac-details p {
        margin: 10px 0;
    }

    .zodiac-details strong {
        color: var(--gold);
        font-weight: 600;
    }

    .zodiac-full-description {
        margin-top: 15px;
        font-style: italic;
        color: #e0e0e0;
        border-left: 3px solid var(--gold);
        padding-left: 15px;
    }

    #fullZodiacContent {
        animation: fadeInUp 0.5s ease-out;
    }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}
