/*
 * TEDxMGMU 2026 - Plugins & Utilities
 * Third-party overrides and utility classes
 */

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ===== ANIMATION UTILITIES ===== */
.animate-fade-in { animation: fadeIn 0.8s ease forwards; }
.animate-fade-in-up { animation: fadeInUp 0.8s ease forwards; }
.animate-fade-in-down { animation: fadeInDown 0.8s ease forwards; }
.animate-fade-in-left { animation: fadeInLeft 0.8s ease forwards; }
.animate-fade-in-right { animation: fadeInRight 0.8s ease forwards; }
.animate-slide-in-up { animation: slideInUp 0.6s ease forwards; }
.animate-scale-in { animation: scaleIn 0.6s ease forwards; }
.animate-bounce { animation: bounce 2s infinite; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }

/* Animation delays */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }
.delay-600 { animation-delay: 600ms; }
.delay-700 { animation-delay: 700ms; }
.delay-800 { animation-delay: 800ms; }

/* ===== GLASSMORPHISM ===== */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ===== HOVER EFFECTS ===== */
.hover-lift {
    transition: transform 0.3s ease;
}

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

.hover-glow {
    transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 10px 30px rgba(230, 43, 30, 0.3);
}

.hover-scale {
    transition: transform 0.3s ease;
}

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

/* ===== SHADOWS ===== */
.shadow-sm { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); }
.shadow-md { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15); }
.shadow-lg { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); }
.shadow-xl { box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3); }
.shadow-2xl { box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4); }

.shadow-red { box-shadow: 0 10px 30px rgba(230, 43, 30, 0.3); }
.shadow-ember { box-shadow: 0 10px 30px rgba(232, 111, 95, 0.3); }

/* ===== OVERLAYS ===== */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.overlay-dark {
    background: rgba(0, 0, 0, 0.7);
}

.overlay-gradient {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%);
}

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #050505;
}

::-webkit-scrollbar-thumb {
    background: #e62b1e;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c4302b;
}

/* ===== SELECTION ===== */
::selection {
    background: #e62b1e;
    color: white;
}

::-moz-selection {
    background: #e62b1e;
    color: white;
}

/* ===== LOADER ===== */
.loader {
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid #e62b1e;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== RESPONSIVE UTILITIES ===== */
.hide-mobile { display: block; }
.show-mobile { display: none; }

@media (max-width: 960px) {
    .hide-mobile { display: none; }
    .show-mobile { display: block; }
}
