:root {
    --padding: 2rem;
    --radius: 1.5rem;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --accent: #ffd700;
    --primary-purple: #6B4BA2;
    --deep-navy: #0D0A1A;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(15, 12, 41, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.navbar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
}

.logo img {
    width: 44px;
    height: 44px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    text-decoration: none;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }
}

/* Theme: Cosmic */
.theme-cosmic {
    --bg-gradient: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    --accent: #ffd700;
    --glass-bg: rgba(255, 255, 255, 0.08);
}

/* Theme: Minimal */
.theme-minimal {
    --bg-gradient: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    --text-primary: #2c3e50;
    --text-secondary: #5a6c7d;
    --accent: #3498db;
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(0, 0, 0, 0.1);
}

/* Theme: Nature */
.theme-nature {
    --bg-gradient: linear-gradient(135deg, #134e5e, #71b280);
    --accent: #f1c40f;
    --glass-bg: rgba(255, 255, 255, 0.12);
}

/* Theme: Vintage */
.theme-vintage {
    --bg-gradient: linear-gradient(135deg, #d4a373, #bc6c25, #606c38);
    --text-primary: #fefae0;
    --text-secondary: rgba(254, 250, 224, 0.75);
    --accent: #dda15e;
    --glass-bg: rgba(40, 30, 20, 0.35);
    --glass-border: rgba(221, 161, 94, 0.3);
}

/* Theme: Tech */
.theme-tech {
    --bg-gradient: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
    --text-primary: #00ff88;
    --text-secondary: rgba(0, 255, 136, 0.6);
    --accent: #00ff88;
    --glass-bg: rgba(0, 255, 136, 0.05);
    --glass-border: rgba(0, 255, 136, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    padding-top: 100px;
    transition: background 0.5s ease;
}

.poster-container {
    width: 95%;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

header {
    text-align: center;
    margin-bottom: 0.5rem;
}

header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    letter-spacing: -1px;
}

.zodiac-info-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.zodiac-header {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--accent);
}

.zodiac-insight-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
    max-width: 400px;
}

.icon-lg {
    font-size: 2.5rem;
}

/* Moon Phase Styles */
.moon-phase {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.moon-icon {
    font-size: 1.5rem;
}

.moon-vibe {
    font-size: 0.8rem;
    font-style: italic;
    display: block;
    margin-top: 0.2rem;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.vibe-card {
    text-align: center;
}

.vibe-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.main-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 1.5rem;
}

.left-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.item-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.list-item {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.list-item.loading {
    color: var(--text-secondary);
    font-style: italic;
}

.item-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    display: block;
}

.item-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.timeline-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.timeline-row {
    display: grid;
    grid-template-columns: 80px 30px 1fr;
    align-items: center;
    font-size: 0.85rem;
}

.time-range {
    color: var(--text-secondary);
}

.time-icon {
    text-align: center;
}

.time-label {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.energy-PRIME {
    color: var(--accent);
    font-weight: bold;
}

.energy-CAUTION {
    color: #ff4b2b;
}

/* Affirmation & Wellness Support */
.support-section {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.affirmation-card {
    text-align: center;
    border-top: 4px solid var(--accent);
}

.affirmation-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-style: italic;
    line-height: 1.4;
    color: var(--text-primary);
}

.wellness-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
}

.wellness-icon {
    font-size: 1.5rem;
}

.wellness-tip {
    font-size: 0.95rem;
    font-weight: 500;
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding: 0 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-controls {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.lang-selector {
    display: flex;
    gap: 0.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding-right: 1rem;
}

.lang-selector button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.2s;
}

.lang-selector button:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.theme-selector button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.6;
    transition: transform 0.2s, opacity 0.2s;
}

.theme-selector button:hover {
    transform: scale(1.2);
    opacity: 1;
}


/* Error Banner */
.error-banner {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 75, 43, 0.9);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    text-align: center;
    z-index: 1000;
}

.error-banner code {
    background: rgba(0, 0, 0, 0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
}

.error-banner.hidden {
    display: none;
}

@media (max-width: 768px) {

    .main-grid,
    .support-section {
        grid-template-columns: 1fr;
    }

    .right-col {
        order: -1;
    }

    header h1 {
        font-size: 2.2rem;
    }
}

@media print {

    .no-print,
    .error-banner {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .glass {
        border: 1px solid #ddd !important;
        background: none !important;
        backdrop-filter: none !important;
    }
}