/* ========================================
   WINTER THEME - HOME CARS AUTO
   ========================================

   Activare/Dezactivare: config.php -> WINTER_MODE = 'yes' / 'no'

   Ce include:
   - Culori de iarna (albastru glacial)
   - Fulgi de zapada animati (CSS pur, performant)
   - Optimizat pentru mobile (mai putini fulgi)
   - Respecta prefers-reduced-motion

   Autor: Home Cars Auto
   Versiune: 1.1
   Data: Decembrie 2024
   ======================================== */

/* ========================================
   CULORI DE IARNA - OVERRIDE
   Inlocuieste culorile brand cu nuante glaciale
   ======================================== */

:root {
    /* Culori Brand de Iarna - Albastru Glacial */
    --brand-blue: #0ea5e9;    /* Sky-500 - albastru de gheata */
    --brand-dark: #0284c7;    /* Sky-600 - albastru inchis glacial */
    --brand-light: #38bdf8;   /* Sky-400 - albastru deschis de iarna */
}

/* ========================================
   TAILWIND OVERRIDE - Culori de iarna
   Schimba blue -> sky (glacial)
   ======================================== */

/* Background colors */
.bg-blue-50 { background-color: #f0f9ff !important; }
.bg-blue-100 { background-color: #e0f2fe !important; }
.bg-blue-500 { background-color: #0ea5e9 !important; }
.bg-blue-600 { background-color: #0284c7 !important; }
.bg-blue-700 { background-color: #0369a1 !important; }
.bg-blue-800 { background-color: #075985 !important; }

/* Text colors */
.text-blue-500 { color: #0ea5e9 !important; }
.text-blue-600 { color: #0284c7 !important; }
.text-blue-700 { color: #0369a1 !important; }
.text-blue-800 { color: #075985 !important; }

/* Border colors */
.border-blue-200 { border-color: #bae6fd !important; }
.border-blue-300 { border-color: #7dd3fc !important; }
.border-blue-500 { border-color: #0ea5e9 !important; }
.border-blue-600 { border-color: #0284c7 !important; }

/* Hover states */
.hover\:bg-blue-50:hover { background-color: #f0f9ff !important; }
.hover\:bg-blue-600:hover { background-color: #0284c7 !important; }
.hover\:bg-blue-700:hover { background-color: #0369a1 !important; }
.hover\:text-blue-600:hover { color: #0284c7 !important; }
.hover\:text-blue-700:hover { color: #0369a1 !important; }
.hover\:text-blue-800:hover { color: #075985 !important; }
.hover\:border-blue-200:hover { border-color: #bae6fd !important; }
.hover\:border-blue-300:hover { border-color: #7dd3fc !important; }

/* Focus states */
.focus\:ring-blue-500:focus { --tw-ring-color: #0ea5e9 !important; }
.focus\:border-blue-500:focus { border-color: #0ea5e9 !important; }

/* Gradient - from blue */
.from-blue-50 { --tw-gradient-from: #f0f9ff !important; }
.from-blue-600 { --tw-gradient-from: #0284c7 !important; }
.to-blue-600 { --tw-gradient-to: #0284c7 !important; }
.via-blue-500 { --tw-gradient-via: #0ea5e9 !important; }

/* ========================================
   RED -> ROSE (rosu mai rece, de iarna)
   ======================================== */

.bg-red-100 { background-color: #ffe4e6 !important; }
.bg-red-500 { background-color: #f43f5e !important; }
.bg-red-600 { background-color: #e11d48 !important; }
.bg-red-700 { background-color: #be123c !important; }
.bg-red-800 { background-color: #9f1239 !important; }

.text-red-500 { color: #f43f5e !important; }
.text-red-600 { color: #e11d48 !important; }

.from-red-500 { --tw-gradient-from: #f43f5e !important; }
.from-red-600 { --tw-gradient-from: #e11d48 !important; }
.via-red-700 { --tw-gradient-via: #be123c !important; }
.to-red-600 { --tw-gradient-to: #e11d48 !important; }
.to-red-800 { --tw-gradient-to: #9f1239 !important; }

.hover\:bg-red-100:hover { background-color: #ffe4e6 !important; }
.hover\:text-red-600:hover { color: #e11d48 !important; }

/* ========================================
   PINK -> FUCHSIA (roz glacial/magenta)
   ======================================== */

.bg-pink-500 { background-color: #d946ef !important; }
.bg-pink-600 { background-color: #c026d3 !important; }

.text-pink-500 { color: #d946ef !important; }
.text-pink-600 { color: #c026d3 !important; }

.hover\:bg-pink-600:hover { background-color: #c026d3 !important; }
.hover\:text-pink-600:hover { color: #c026d3 !important; }

/* ========================================
   FIX: Hover text-white trebuie sa ramana alb
   ======================================== */

.hover\:text-white:hover { color: #ffffff !important; }

/* ========================================
   INSTALATIE LUMINOASA SUB HERO
   Linie cu luminite colorate - responsive
   ======================================== */

.hero-lights-container {
    background: #ffffff;
    padding: 6px 0;
    overflow: hidden;
}

.hero-lights {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 10px;
}

.header-light {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
    animation: light-twinkle 1.5s ease-in-out infinite;
}

/* Culori de Craciun */
.header-light:nth-child(5n+1) {
    background: #ef4444;
    box-shadow: 0 0 4px #ef4444, 0 0 8px #ef4444;
    animation-delay: 0s;
}
.header-light:nth-child(5n+2) {
    background: #22c55e;
    box-shadow: 0 0 4px #22c55e, 0 0 8px #22c55e;
    animation-delay: 0.3s;
}
.header-light:nth-child(5n+3) {
    background: #eab308;
    box-shadow: 0 0 4px #eab308, 0 0 8px #eab308;
    animation-delay: 0.6s;
}
.header-light:nth-child(5n+4) {
    background: #3b82f6;
    box-shadow: 0 0 4px #3b82f6, 0 0 8px #3b82f6;
    animation-delay: 0.9s;
}
.header-light:nth-child(5n+5) {
    background: #ec4899;
    box-shadow: 0 0 4px #ec4899, 0 0 8px #ec4899;
    animation-delay: 1.2s;
}

@keyframes light-twinkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(0.7);
    }
}

/* Tablet - ascunde unele luminite */
@media (max-width: 1024px) {
    .header-light:nth-child(2n) {
        display: none;
    }
    .header-light {
        width: 4px;
        height: 4px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .header-light {
        width: 4px;
        height: 4px;
    }
    .hero-lights {
        padding: 0 15px;
    }
}

/* Mobile mic */
@media (max-width: 480px) {
    .header-light:nth-child(3n) {
        display: none;
    }
    .hero-lights {
        padding: 0 10px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .header-light {
        animation: none;
        opacity: 0.8;
    }
}

/* ========================================
   FULGI DE ZAPADA - CONTAINER
   ======================================== */

.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

/* ========================================
   FULGI DE ZAPADA - STIL INDIVIDUAL
   ======================================== */

.snowflake {
    position: absolute;
    top: -20px;
    color: #7dd3fc;
    font-size: 1rem;
    text-shadow: 0 0 3px rgba(125, 211, 252, 0.4);
    animation: snowfall linear infinite;
    opacity: 0.7;
    user-select: none;
}

/* ========================================
   FULGI DE ZAPADA - VARIATII
   Delay-uri mari pentru cadere continua
   ======================================== */

.snowflake:nth-child(1)  { left: 3%;  animation-duration: 14s; animation-delay: -2s;  font-size: 0.9rem; }
.snowflake:nth-child(2)  { left: 10%; animation-duration: 16s; animation-delay: -8s;  font-size: 1.1rem; }
.snowflake:nth-child(3)  { left: 17%; animation-duration: 13s; animation-delay: -4s;  font-size: 1rem; }
.snowflake:nth-child(4)  { left: 24%; animation-duration: 18s; animation-delay: -12s; font-size: 1.2rem; }
.snowflake:nth-child(5)  { left: 31%; animation-duration: 15s; animation-delay: -6s;  font-size: 0.85rem; }
.snowflake:nth-child(6)  { left: 38%; animation-duration: 12s; animation-delay: -1s;  font-size: 1.15rem; }
.snowflake:nth-child(7)  { left: 45%; animation-duration: 17s; animation-delay: -10s; font-size: 1rem; }
.snowflake:nth-child(8)  { left: 52%; animation-duration: 14s; animation-delay: -5s;  font-size: 1.1rem; }
.snowflake:nth-child(9)  { left: 59%; animation-duration: 16s; animation-delay: -14s; font-size: 0.9rem; }
.snowflake:nth-child(10) { left: 66%; animation-duration: 13s; animation-delay: -3s;  font-size: 1.2rem; }
.snowflake:nth-child(11) { left: 73%; animation-duration: 18s; animation-delay: -9s;  font-size: 0.95rem; }
.snowflake:nth-child(12) { left: 80%; animation-duration: 15s; animation-delay: -7s;  font-size: 1.05rem; }
.snowflake:nth-child(13) { left: 87%; animation-duration: 12s; animation-delay: -11s; font-size: 1.15rem; }
.snowflake:nth-child(14) { left: 94%; animation-duration: 17s; animation-delay: -2s;  font-size: 0.9rem; }
.snowflake:nth-child(15) { left: 7%;  animation-duration: 14s; animation-delay: -13s; font-size: 1rem; }
.snowflake:nth-child(16) { left: 21%; animation-duration: 16s; animation-delay: -4s;  font-size: 1.1rem; }
.snowflake:nth-child(17) { left: 35%; animation-duration: 13s; animation-delay: -8s;  font-size: 0.85rem; }
.snowflake:nth-child(18) { left: 49%; animation-duration: 18s; animation-delay: -1s;  font-size: 1.2rem; }
.snowflake:nth-child(19) { left: 63%; animation-duration: 15s; animation-delay: -6s;  font-size: 0.95rem; }
.snowflake:nth-child(20) { left: 77%; animation-duration: 12s; animation-delay: -10s; font-size: 1.05rem; }
.snowflake:nth-child(21) { left: 91%; animation-duration: 17s; animation-delay: -3s;  font-size: 1rem; }
.snowflake:nth-child(22) { left: 14%; animation-duration: 14s; animation-delay: -15s; font-size: 0.9rem; }
.snowflake:nth-child(23) { left: 42%; animation-duration: 16s; animation-delay: -7s;  font-size: 1.1rem; }
.snowflake:nth-child(24) { left: 56%; animation-duration: 13s; animation-delay: -12s; font-size: 1rem; }
.snowflake:nth-child(25) { left: 84%; animation-duration: 18s; animation-delay: -5s;  font-size: 1.15rem; }

/* ========================================
   ANIMATIA DE CADERE A FULGILOR
   ======================================== */

@keyframes snowfall {
    0% {
        transform: translateY(-20px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* ========================================
   FULG DECORATIV PE LOGO
   ======================================== */

.logo-snowflake {
    display: inline-block;
    animation: float-snowflake 3s ease-in-out infinite;
    color: #60a5fa;
    font-size: 0.75rem;
    margin-left: 2px;
    vertical-align: super;
}

@keyframes float-snowflake {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-3px) rotate(15deg);
        opacity: 1;
    }
}

/* ========================================
   ACCESIBILITATE - REDUCED MOTION
   Dezactiveaza animatiile pentru utilizatorii
   care prefera miscare redusa
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    .snowflakes {
        display: none;
    }
    .logo-snowflake {
        animation: none;
    }
}

/* ========================================
   OPTIMIZARE MOBILE
   Mai putini fulgi pentru performanta mai buna
   ======================================== */

/* Tablet - 20 fulgi */
@media (max-width: 768px) {
    .snowflake:nth-child(n+21) {
        display: none;
    }
    .snowflake {
        font-size: 0.9rem;
    }
}

/* Mobil - 15 fulgi */
@media (max-width: 480px) {
    .snowflake:nth-child(n+16) {
        display: none;
    }
    .snowflake {
        font-size: 0.85rem;
    }
}

/* ========================================
   LUMINITE DECORATIVE PE MARGINI
   Subtile, nu acopera continutul
   ======================================== */

.side-lights {
    position: fixed;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 80px;
    z-index: 50;
    pointer-events: none;
    padding: 20px 0;
}

.side-lights-left {
    left: 8px;
}

.side-lights-right {
    right: 8px;
}

/* Luminitele individuale - mici si subtile */
.side-light {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: twinkle 2s ease-in-out infinite;
    opacity: 0.7;
}

/* Culorile luminitelor */
.side-light:nth-child(5n+1) { background: #ff6b6b; box-shadow: 0 0 8px #ff6b6b, 0 0 12px #ff6b6b; animation-delay: 0s; }
.side-light:nth-child(5n+2) { background: #ffd93d; box-shadow: 0 0 8px #ffd93d, 0 0 12px #ffd93d; animation-delay: 0.4s; }
.side-light:nth-child(5n+3) { background: #6bcb77; box-shadow: 0 0 8px #6bcb77, 0 0 12px #6bcb77; animation-delay: 0.8s; }
.side-light:nth-child(5n+4) { background: #4d96ff; box-shadow: 0 0 8px #4d96ff, 0 0 12px #4d96ff; animation-delay: 1.2s; }
.side-light:nth-child(5n+5) { background: #ff6bd6; box-shadow: 0 0 8px #ff6bd6, 0 0 12px #ff6bd6; animation-delay: 1.6s; }

/* Animatia de clipire subtila */
@keyframes twinkle {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(0.8);
    }
}

/* Tablet - ascunde luminitele din dreapta */
@media (max-width: 1200px) {
    .side-lights {
        gap: 60px;
    }
    .side-light {
        width: 5px;
        height: 5px;
    }
}

/* Mobile - ascunde complet (nu distrage) */
@media (max-width: 768px) {
    .side-lights {
        display: none;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .side-light {
        animation: none;
        opacity: 0.6;
    }
}
