/* FDLM Winter Show - Custom CSS */

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #00b4ff;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0088cc;
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #00b4ff #0a0a0a;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.2;
    }
    50% {
        opacity: 0.3;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation Classes */
.animate-fade-in-down {
    animation: fadeInDown 1s ease-out;
}

.animate-fade-in-up {
    animation: fadeInUp 1s ease-out;
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

/* Sponsor Cards Animation */
.sponsor-card {
    animation: scaleIn 0.5s ease-out forwards;
    opacity: 0;
}

/* Ticket Cards Hover Effect */
.ticket-card {
    position: relative;
    overflow: hidden;
}

/* Désactiver les effets hover sur les appareils tactiles (sans souris) */
@media (hover: none) {
    .ticket-card {
        transform: none !important;
    }
    .ticket-card::before {
        display: none !important;
    }
}

.ticket-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(0, 180, 255, 0.1),
        transparent
    );
    transform: rotate(180deg);
    transition: all 0.5s ease;
    pointer-events: none;
}

.ticket-card:hover::before {
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Day Toggle Buttons - Now using .rock-btn classes from rock-buttons.css */

/* Navigation Links Active State */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #00b4ff;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Back to Top Button */
#back-to-top {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#back-to-top:hover {
    transform: translateY(-4px);
}

/* Custom Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #00b4ff 0%, #7b2cbf 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glowing Effect */
.glow {
    box-shadow: 0 0 20px rgba(0, 180, 255, 0.5);
}

.glow-hover:hover {
    box-shadow: 0 0 30px rgba(0, 180, 255, 0.7);
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 180, 255, 0.2);
}

/* Text Shadow for Headers */
h1, h2, h3 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Responsive Font Sizes */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }
}

/* Loading Animation */
.loading {
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #00b4ff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Custom Selection Color */
::selection {
    background: #00b4ff;
    color: white;
}

::-moz-selection {
    background: #00b4ff;
    color: white;
}

/* Mobile Menu Transition */
#mobile-menu {
    transition: all 0.3s ease;
}

/* Image Hover Effects */
img {
    transition: transform 0.3s ease, filter 0.3s ease;
}

img:hover {
    transform: scale(1.05);
}

/* Button Ripple Effect */
button {
    position: relative;
    overflow: hidden;
}

button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

button:active::after {
    width: 300px;
    height: 300px;
}

/* Focus Styles for Accessibility */
a:focus,
button:focus {
    outline: 2px solid #00b4ff;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    header,
    footer,
    #back-to-top {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --fdlm-blue: #00d4ff;
        --fdlm-dark: #000000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark Mode Support (if needed) */
@media (prefers-color-scheme: dark) {
    /* Already dark by default */
}

/* Landscape Mobile Adjustments */
@media (max-width: 896px) and (orientation: landscape) {
    section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

/* Container Max Width Override */
.container {
    max-width: 1280px;
}

/* YouTube Link */
.youtube-link .fa-youtube {
    color: #9ca3af !important;
    transition: color 0.3s ease;
}

.youtube-link:hover .fa-youtube {
    color: #dc2626 !important;
}

/* Utility Classes */
.text-outline {
    text-shadow:
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000;
}

.backdrop-blur-custom {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Grid Gap Responsive */
@media (max-width: 640px) {
    .grid {
        gap: 1rem;
    }
}

/* Custom Border Gradient */
.border-gradient {
    border-image: linear-gradient(135deg, #00b4ff, #7b2cbf) 1;
}

/* Video Background Support */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.7);
}

/* Parallax Effect */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

@media (max-width: 768px) {
    .parallax {
        background-attachment: scroll;
    }
}
