/* 
====================================
ASTRORACOLO - COSMIC MINIMALISM
====================================
Design system elegante e raffinato
Palette: deep navy + gold accents + glassmorphism
*/

/* ====================================
   CSS VARIABLES - DESIGN TOKENS
==================================== */

:root {
    /* === COLORI PRINCIPALI === */
    --bg-deep: #0a0e1a;
    --bg-primary: #0d1225;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-glass: rgba(255, 255, 255, 0.06);
    --bg-glass-hover: rgba(255, 255, 255, 0.1);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-hover: rgba(255, 255, 255, 0.15);
    
    /* === TESTO === */
    --text-primary: #e8e6f0;
    --text-secondary: #9a95b0;
    --text-muted: #6b6589;
    
    /* === ACCENTI === */
    --accent-gold: #c9a84c;
    --accent-gold-light: #e0c572;
    --accent-violet: #8b6fc0;
    --accent-violet-light: #a78bdb;
    
    /* === ZODIAC COLORS - SOTTOLI === */
    --zodiac-ariete: #e8735a;
    --zodiac-toro: #5ab89a;
    --zodiac-gemelli: #d4b84a;
    --zodiac-cancro: #6ba5d8;
    --zodiac-leone: #e8943a;
    --zodiac-vergine: #9a7fbf;
    --zodiac-bilancia: #d87b9a;
    --zodiac-scorpione: #8b5fbf;
    --zodiac-sagittario: #6db86b;
    --zodiac-capricorno: #8b7355;
    --zodiac-acquario: #5a9fd4;
    --zodiac-pesci: #5ab8a8;
    
    /* === TIPOGRAFIA === */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* === SPAZIATURE === */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* === RADIUS === */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    
    /* === TRANSIZIONI === */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.4s ease;
}

/* ====================================
   RESET E BASE
==================================== */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ====================================
   STARFIELD BACKGROUND
==================================== */

.starfield {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.starfield .stars-layer {
    position: absolute;
    width: 100%; height: 100%;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle var(--duration) ease-in-out infinite;
    opacity: 0;
}

@keyframes twinkle {
    0%, 100% { opacity: var(--min-opacity); }
    50% { opacity: var(--max-opacity); }
}

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

.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 1rem 2rem;
    transition: all var(--transition-base);
}

.site-header.scrolled {
    background: rgba(10, 14, 26, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    padding: 0.75rem 2rem;
}

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

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: color var(--transition-fast);
}

.nav-logo:hover {
    color: var(--accent-gold);
}

.logo-symbol {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-violet));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.3px;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
    background: var(--bg-glass);
}

.nav-icon {
    font-size: 0.9rem;
    width: 20px;
    text-align: center;
}

.nav-cta {
    background: var(--accent-gold) !important;
    color: var(--bg-deep) !important;
    font-weight: 500 !important;
    padding: 0.5rem 1.25rem !important;
}

.nav-cta:hover {
    background: var(--accent-gold-light) !important;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

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

.hero-section {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: 
        radial-gradient(ellipse 600px 400px at 30% 20%, rgba(139, 111, 192, 0.08) 0%, transparent 100%),
        radial-gradient(ellipse 500px 500px at 70% 60%, rgba(201, 168, 76, 0.05) 0%, transparent 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    max-width: 800px;
}

.hero-date {
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 2rem;
    font-weight: 500;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero-title em {
    font-style: italic;
    color: var(--accent-gold-light);
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 2.5rem;
    font-weight: 300;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ====================================
   BUTTONS
==================================== */

.btn {
    padding: 0.875rem 2rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
}

.btn-primary {
    background: var(--accent-gold);
    color: var(--bg-deep);
}

.btn-primary:hover {
    background: var(--accent-gold-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(201, 168, 76, 0.2);
}

.btn-ghost {
    background: var(--bg-glass);
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    background: var(--bg-glass-hover);
    border-color: var(--border-glass-hover);
    transform: translateY(-2px);
}

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

.section {
    position: relative;
    z-index: 1;
    padding: var(--space-4xl) 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-label {
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    font-weight: 500;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
    font-weight: 300;
}

/* ====================================
   ZODIAC CARDS (HOROSCOPE)
==================================== */

.zodiac-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.zodiac-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: all var(--transition-slow);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.zodiac-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--card-accent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.zodiac-card:hover {
    background: var(--bg-glass);
    border-color: var(--border-glass-hover);
    transform: translateY(-4px);
}

.zodiac-card:hover::before {
    opacity: 1;
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.card-sign-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-symbol {
    width: 48px; height: 48px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.card-sign-name {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-primary);
}

.card-sign-dates {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.card-element {
    font-size: 1.5rem;
    opacity: 0.6;
}

.card-preview {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--border-glass);
}

.card-lucky {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--accent-gold);
}

.mood-indicator {
    width: 32px; height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.mood-fill {
    height: 100%;
    border-radius: 2px;
    background: var(--card-accent);
}

/* ====================================
   PLANETARY WIDGET
==================================== */

.planetary-section {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
}

.planets-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1rem;
}

.planet-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1.25rem 0.75rem;
    text-align: center;
    transition: all var(--transition-base);
}

.planet-card:hover {
    background: var(--bg-glass-hover);
    transform: translateY(-2px);
}

.planet-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.planet-name {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.planet-sign {
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--accent-gold-light);
    font-weight: 500;
}

/* ====================================
   FEATURES
==================================== */

.features-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2.5rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    transition: all var(--transition-slow);
}

.feature-card:hover {
    background: var(--bg-glass);
    transform: translateY(-4px);
}

.feature-icon {
    width: 56px; height: 56px;
    border-radius: var(--radius-md);
    background: rgba(201, 168, 76, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.feature-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 300;
}

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

.site-footer {
    position: relative;
    z-index: 1;
    padding: var(--space-3xl) 2rem var(--space-xl);
    border-top: 1px solid var(--border-glass);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-brand .footer-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

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

.footer-col h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    letter-spacing: 0.5px;
}

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

.footer-col li {
    margin-bottom: 0.6rem;
}

.footer-col a {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    max-width: 1200px;
    margin: var(--space-2xl) auto 0;
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
}

.footer-social a {
    width: 36px; height: 36px;
    border-radius: var(--radius-sm);
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--bg-glass-hover);
    color: var(--accent-gold);
}

/* ====================================
   ANIMATIONS
==================================== */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ====================================
   RESPONSIVE
==================================== */

@media (max-width: 900px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}

@media (max-width: 640px) {
    .hero-section {
        padding: 7rem 1.5rem 3rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .section {
        padding: var(--space-3xl) 1.5rem;
    }
    
    .zodiac-grid {
        grid-template-columns: 1fr;
    }
    
    .planets-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.text-center { text-align: center; }
.text-gold { color: var(--accent-gold); }
.text-muted { color: var(--text-muted); }
