/* YTMP3.Christmas - Modern Christmas Theme */
:root {
    --christmas-red: #dc2626;
    --christmas-green: #059669;
    --christmas-gold: #d97706;
    --christmas-dark: #1f2937;
    --christmas-light: #f8fafc;
    --christmas-snow: #ffffff;
    --christmas-frost: #e2e8f0;
    --christmas-shadow: rgba(0, 0, 0, 0.1);
    --christmas-glow: rgba(220, 38, 38, 0.2);
}

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

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--christmas-dark);
    background: linear-gradient(135deg, var(--christmas-light) 0%, #f1f5f9 50%, #e2e8f0 100%);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    z-index: 1;
}

/* Christmas Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(220, 38, 38, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(5, 150, 105, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(217, 119, 6, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Navbar Styling */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid rgba(220, 38, 38, 0.1);
    padding: 1rem 0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1000;
}

.navbar-brand img {
    max-height: 60px;
    transition: transform 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    color: var(--christmas-dark) !important;
    font-weight: 500;
    padding: 0.75rem 1.25rem !important;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--christmas-red), var(--christmas-green));
    transition: left 0.3s ease;
    z-index: -1;
}

.navbar-nav .nav-link:hover::before {
    left: 0;
}

.navbar-nav .nav-link:hover {
    color: white !important;
    transform: translateY(-2px);
}

.navbar-nav .nav-link.active {
    background: linear-gradient(135deg, var(--christmas-red), var(--christmas-green));
    color: white !important;
    box-shadow: 0 4px 15px var(--christmas-glow);
}

/* Simple Language Dropdown */
.simple-language-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 8px 0;
    min-width: 150px;
    display: none;
    z-index: 9999;
}

.simple-language-menu.show {
    display: block;
}

.language-link {
    display: block;
    padding: 8px 16px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s ease;
}

.language-link:hover {
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
}

/* Ensure dropdown container has relative positioning */
.nav-item {
    position: relative;
}

/* Ensure dropdown container has proper positioning */
.navbar-nav .dropdown {
    position: relative !important;
    z-index: 1001 !important;
}

/* Christmas Gradient Backgrounds */
.bg-purple {
    background: linear-gradient(135deg, var(--christmas-red) 0%, var(--christmas-green) 50%, var(--christmas-gold) 100%) !important;
    position: relative;
    overflow: visible;
}

.bg-purple::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Button Styling */
.btn-primary {
    background: linear-gradient(135deg, var(--christmas-red) 0%, var(--christmas-green) 100%);
    border: none;
    border-radius: 16px;
    padding: 14px 28px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px var(--christmas-glow);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--christmas-green), var(--christmas-red));
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-primary:hover::before {
    left: 0;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px var(--christmas-glow);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-light {
    background: var(--christmas-snow);
    border: none;
    border-radius: 16px;
    padding: 14px 28px;
    font-weight: 600;
    color: var(--christmas-dark);
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.btn-light:hover {
    background: var(--christmas-frost);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

/* Card Styling */
.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(220, 38, 38, 0.1);
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px var(--christmas-shadow);
    overflow: hidden;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--christmas-red), var(--christmas-green), var(--christmas-gold));
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px var(--christmas-shadow);
    border-color: rgba(220, 38, 38, 0.3);
}

/* Feature Cards */
.feature-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(220, 38, 38, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px var(--christmas-shadow);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--christmas-red), var(--christmas-green), var(--christmas-gold));
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px var(--christmas-shadow);
    border-color: rgba(220, 38, 38, 0.4);
}

/* Form Styling */
.form-control {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--christmas-frost);
    border-radius: 16px;
    color: var(--christmas-dark);
    padding: 16px 20px;
    font-size: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-control::placeholder {
    color: #94a3b8;
}

.form-control:focus {
    background: var(--christmas-snow);
    border-color: var(--christmas-red);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
    outline: none;
    transform: translateY(-2px);
}

.form-select {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--christmas-frost);
    border-radius: 16px;
    color: var(--christmas-dark);
    padding: 16px 20px;
    font-size: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-select:focus {
    background: var(--christmas-snow);
    border-color: var(--christmas-red);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
    outline: none;
    transform: translateY(-2px);
}

/* Accordion Styling */
.accordion-button {
    background: rgba(255, 255, 255, 0.9);
    color: var(--christmas-dark);
    border: 2px solid var(--christmas-frost);
    border-radius: 16px;
    font-weight: 600;
    padding: 20px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, var(--christmas-red), var(--christmas-green));
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 25px var(--christmas-glow);
}

.accordion-button:focus {
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
    border-color: var(--christmas-red);
}

.accordion-body {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid var(--christmas-frost);
    border-top: none;
    border-radius: 0 0 16px 16px;
    padding: 20px;
    backdrop-filter: blur(10px);
}

/* Color Classes */
.text-primary {
    color: var(--christmas-red) !important;
}

.bg-primary {
    background: linear-gradient(135deg, var(--christmas-red), var(--christmas-green)) !important;
}

/* Footer Styling */
footer {
    background: var(--christmas-dark);
    color: var(--christmas-snow);
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--christmas-red), var(--christmas-green), var(--christmas-gold));
}

footer a {
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--christmas-snow);
    text-decoration: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--christmas-dark);
    margin-bottom: 1rem;
}

.display-4 {
    font-weight: 800;
    background: linear-gradient(135deg, var(--christmas-red), var(--christmas-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: #4b5563;
}

/* Christmas Decorations */
.christmas-decoration {
    position: relative;
}

.christmas-decoration::after {
    content: '🎄';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 24px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Snow Effect */
.snowflake {
    position: fixed;
    top: -10px;
    z-index: 1000;
    user-select: none;
    cursor: default;
    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: -10px;
    }
    100% {
        top: 100vh;
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2.5rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
    
    .navbar-brand img {
        max-height: 50px;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    /* Ensure dropdown is visible on mobile */
    .navbar-nav .dropdown-menu {
        position: static !important;
        float: none;
        width: auto;
        margin-top: 0;
        background-color: transparent;
        border: 0;
        box-shadow: none;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--christmas-frost);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--christmas-red), var(--christmas-green));
    border-radius: 6px;
    border: 2px solid var(--christmas-frost);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--christmas-green), var(--christmas-red));
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--christmas-snow);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Glass Morphism Effect */
.glass-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
}

/* Text Gradients */
.text-gradient {
    background: linear-gradient(135deg, var(--christmas-red), var(--christmas-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Success/Error States */
.text-success {
    color: var(--christmas-green) !important;
}

.text-danger {
    color: var(--christmas-red) !important;
}

/* Dropdown Styling */
.dropdown-menu {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 2px solid var(--christmas-frost);
    border-radius: 16px;
    box-shadow: 0 8px 32px var(--christmas-shadow);
    padding: 0.5rem;
    z-index: 9999 !important;
    position: absolute !important;
    min-width: 200px;
    margin-top: 8px;
    max-height: 300px;
    overflow-y: auto;
}

.dropdown-item {
    border-radius: 12px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, var(--christmas-red), var(--christmas-green));
    color: white;
    transform: translateX(5px);
}

/* Input Group Styling */
.input-group {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px var(--christmas-shadow);
}

.input-group .form-control {
    border-radius: 16px 0 0 16px;
    border-right: none;
}

.input-group .btn {
    border-radius: 0 16px 16px 0;
    border-left: none;
}

/* Alert Styling */
.alert {
    border-radius: 16px;
    border: none;
    padding: 1rem 1.5rem;
    backdrop-filter: blur(10px);
}

.alert-success {
    background: rgba(5, 150, 105, 0.1);
    color: var(--christmas-green);
    border-left: 4px solid var(--christmas-green);
}

.alert-danger {
    background: rgba(220, 38, 38, 0.1);
    color: var(--christmas-red);
    border-left: 4px solid var(--christmas-red);
}

/* Progress Bar */
.progress {
    background: var(--christmas-frost);
    border-radius: 12px;
    height: 8px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(135deg, var(--christmas-red), var(--christmas-green));
    border-radius: 12px;
    transition: width 0.3s ease;
}