/* Christmas Theme - Easy to revert by removing the import in base.html */

/* Snowfall Animation Container */
.snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10px;
    color: #fff;
    font-size: 1em;
    font-family: Arial, sans-serif;
    text-shadow: 0 0 5px #000;
    user-select: none;
    z-index: 9999;
    animation-name: snowflakes-fall, snowflakes-shake;
    animation-duration: 10s, 3s;
    animation-timing-function: linear, ease-in-out;
    animation-iteration-count: infinite, infinite;
    animation-play-state: running, running;
}

@keyframes snowflakes-fall {
    0% { top: -10%; }
    100% { top: 100%; }
}

@keyframes snowflakes-shake {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(80px); }
}

/* Randomize snowflakes */
.snowflake:nth-of-type(0) { left: 1%; animation-delay: 0s, 0s; }
.snowflake:nth-of-type(1) { left: 10%; animation-delay: 1s, 1s; }
.snowflake:nth-of-type(2) { left: 20%; animation-delay: 6s, .5s; }
.snowflake:nth-of-type(3) { left: 30%; animation-delay: 4s, 2s; }
.snowflake:nth-of-type(4) { left: 40%; animation-delay: 2s, 2s; }
.snowflake:nth-of-type(5) { left: 50%; animation-delay: 8s, 3s; }
.snowflake:nth-of-type(6) { left: 60%; animation-delay: 6s, 2s; }
.snowflake:nth-of-type(7) { left: 70%; animation-delay: 2.5s, 1s; }
.snowflake:nth-of-type(8) { left: 80%; animation-delay: 1s, 0s; }
.snowflake:nth-of-type(9) { left: 90%; animation-delay: 3s, 1.5s; }
.snowflake:nth-of-type(10) { left: 25%; animation-delay: 2s, 0s; }
.snowflake:nth-of-type(11) { left: 65%; animation-delay: 4s, 2.5s; }

/* Theming Overrides */

/* Navbar Holiday Style */
nav.bg-gray-800 {
    background: linear-gradient(to right, #165B33, #0b2e1b) !important;
    border-bottom: 2px solid #D42426 !important;
    box-shadow: 0 4px 12px rgba(212, 36, 38, 0.2);
}

/* Mobile Menu Holiday Style */
.md\:hidden.bg-gray-800 {
    background: #0b2e1b !important;
    border-top: 1px solid #D42426 !important;
}

/* Active Nav Link Holiday Style */
nav a.text-blue-400.bg-gray-900\/50,
nav a.text-blue-500 {
    color: #F1D570 !important; /* Gold text */
    background-color: rgba(212, 36, 38, 0.2) !important; /* Redish background */
    border: 1px solid rgba(241, 213, 112, 0.3);
}

/* Icons in Nav */
nav i.text-blue-500 {
    color: #D42426 !important; /* Red icons */
}

/* Logo Area */
nav .w-10.h-10.bg-blue-600 {
    background-color: #D42426 !important; /* Red logo bg */
    box-shadow: 0 0 10px rgba(241, 213, 112, 0.5) !important; /* Gold glow */
}

nav .text-blue-500 {
    color: #F1D570 !important; /* Gold "App" text */
}

/* Toast Notifications */
#toast-container > div {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* General Body Background - Subtle Winter Night */
body.bg-gray-900 {
    background-color: #0B0F19;
    background-image: 
        radial-gradient(circle at 50% 0%, #1a2c3a 0%, transparent 70%),
        radial-gradient(circle at 80% 10%, rgba(212, 36, 38, 0.05) 0%, transparent 20%);
}

/* Buttons festive touch */
button.bg-blue-600, a.bg-blue-600 {
    background-color: #D42426 !important; /* Holiday Red */
}
button.bg-blue-600:hover, a.bg-blue-600:hover {
    background-color: #b91c1e !important;
}

/* Accent for Level Up / Gold elements */
.text-yellow-400, .text-yellow-500 {
    color: #F1D570 !important;
    text-shadow: 0 0 10px rgba(241, 213, 112, 0.3);
}

/* Footer festive touch */
footer.bg-gray-900 {
    background: linear-gradient(to top, #0b2e1b, #0B0F19) !important;
    border-top: 1px solid #165B33 !important;
}

/* Mobile Nav Icons */
.md\:hidden a i {
    color: #F1D570 !important;
}

/* Add a festive border to avatars */
img.rounded-full {
    border-color: #D42426 !important;
}

/* Custom Scrollbar festive colors */
::-webkit-scrollbar-thumb {
    background: #165B33 !important;
    border: 2px solid #0B0F19;
}
::-webkit-scrollbar-thumb:hover {
    background: #D42426 !important;
}

/* HERO SECTION OVERRIDES */
section.bg-gray-900 path.text-blue-500 {
    color: #165B33 !important; /* Green Pattern instead of blue */
    opacity: 0.3;
}

/* Main Title "Talantul in Negot" Blue Span */
h1 span.text-blue-500 {
    color: #F1D570 !important; /* Gold Text */
    text-shadow: 0 0 15px rgba(241, 213, 112, 0.5);
}

/* Feature Headings (Study & Quiz, Memorization, etc) */
h3.group-hover\:text-blue-400, 
h3.group-hover\:text-purple-400, 
h3.group-hover\:text-green-400, 
h3.group-hover\:text-yellow-400,
h3.group-hover\:text-red-400,
h3.group-hover\:text-indigo-400 {
    transition: color 0.3s ease;
}

.group:hover h3 {
    color: #F1D570 !important; /* Gold on hover for all cards */
}

/* Feature Icons (The square backgrounds) */
.bg-blue-600\/20, .bg-purple-600\/20, .bg-green-600\/20, 
.bg-yellow-600\/20, .bg-red-600\/20, .bg-indigo-600\/20 {
    background-color: rgba(22, 91, 51, 0.3) !important; /* Pine Green tint */
    border: 1px solid rgba(22, 91, 51, 0.5);
}

/* Feature Icon Colors (The actual icon inside) */
.text-blue-400, .text-purple-400, .text-green-400, 
.text-red-400, .text-indigo-400 {
    color: #D42426 !important; /* Red icons */
}

/* Link colors in cards ("Start Quiz", "Start Memorizing" etc) */
a.text-blue-400, a.text-purple-400, a.text-green-400, 
a.text-red-400, a.text-indigo-400 {
    color: #F1D570 !important; /* Gold links */
}
a.text-blue-400:hover, a.text-purple-400:hover, a.text-green-400:hover, 
a.text-red-400:hover, a.text-indigo-400:hover {
    color: #fff !important;
}

/* Border colors for cards on hover */
.group:hover {
    border-color: #D42426 !important; /* Red border on hover */
    box-shadow: 0 10px 30px -10px rgba(212, 36, 38, 0.3) !important;
}

/* Mission Statement Quote */
.fa-quote-left, .fa-quote-right {
    color: #165B33 !important; /* Green quotes */
    opacity: 0.6;
}
p.text-blue-400.font-semibold {
    color: #F1D570 !important; /* Gold citation */
}

/* "How It Works" Steps */
.w-24.h-24.bg-gray-900.border-4.border-blue-600 {
    border-color: #D42426 !important; /* Red border rings */
    color: #F1D570 !important; /* Gold numbers */
    box-shadow: 0 0 15px rgba(212, 36, 38, 0.4);
}

/* "Currently Studying" Section */
a.bg-gray-800.border-gray-700 {
    background: linear-gradient(135deg, #1a2c3a 0%, #0B0F19 100%);
}
a.bg-gray-800:hover {
    border-color: #F1D570 !important; /* Gold border hover */
}
.text-blue-400 {
    color: #D42426 !important; /* Red icons/text */
}
.bg-blue-900\/50 {
    background-color: rgba(212, 36, 38, 0.2) !important;
    border-color: rgba(212, 36, 38, 0.4) !important;
    color: #ffcccc !important;
}

/* Final CTA Section */
section.bg-blue-900 {
    background: linear-gradient(to bottom, #165B33, #0b2e1b) !important; /* Green gradient */
    border-top-color: #F1D570 !important; /* Gold border top */
}
a.bg-blue-700 {
    background-color: #0B0F19 !important;
    border-color: #F1D570 !important;
    color: #F1D570 !important;
}
a.bg-blue-700:hover {
    background-color: #1a2c3a !important;
    color: #fff !important;
}
