/* ==========================================
   ANIMATIONS & TRANSITIONS
   ========================================== */

:root {
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== FADE ANIMATIONS ========== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    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);
    }
}

/* ========== SCALE ANIMATIONS ========== */

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes scaleUp {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.05);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
    }
}

/* ========== SLIDE ANIMATIONS ========== */

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========== ROTATION ANIMATIONS ========== */

@keyframes spin {
    from {
        transform: rotate(0);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes spinReverse {
    from {
        transform: rotate(360deg);
    }
    to {
        transform: rotate(0);
    }
}

/* ========== BOUNCE ANIMATIONS ========== */

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

/* ========== SHIMMER ANIMATIONS ========== */

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes shimmerSlow {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* ========== FLOAT ANIMATIONS ========== */

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(15px);
    }
}

@keyframes floatSlow {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(20px);
    }
}

/* ========== GLOW ANIMATIONS ========== */

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 193, 7, 0.8);
    }
}

@keyframes glowBox {
    0%, 100% {
        box-shadow: 0 0 15px rgba(255, 193, 7, 0.4);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 193, 7, 0.7);
    }
}

/* ========== UTILITY CLASSES ========== */

/* Fade In Classes */
.animate-fade-in {
    animation: fadeIn var(--transition-base);
}

.animate-fade-in-up {
    animation: fadeInUp var(--transition-base);
}

.animate-fade-in-down {
    animation: fadeInDown var(--transition-base);
}

.animate-fade-in-left {
    animation: fadeInLeft var(--transition-base);
}

.animate-fade-in-right {
    animation: fadeInRight var(--transition-base);
}

/* Slide Classes */
.animate-slide-down {
    animation: slideDown var(--transition-base);
}

.animate-slide-up {
    animation: slideUp var(--transition-base);
}

.animate-slide-in-left {
    animation: slideInLeft var(--transition-base);
}

.animate-slide-in-right {
    animation: slideInRight var(--transition-base);
}

/* Scale Classes */
.animate-scale-in {
    animation: scaleIn var(--transition-base);
}

.animate-scale-up {
    animation: scaleUp var(--transition-base);
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-pulse-glow {
    animation: pulseGlow 2s infinite;
}

/* Bounce Classes */
.animate-bounce {
    animation: bounce 1s ease-in-out infinite;
}

.animate-bounce-in {
    animation: bounceIn var(--transition-slow);
}

/* Spinner Classes */
.animate-spin {
    animation: spin 1s linear infinite;
}

.animate-spin-slow {
    animation: spin 3s linear infinite;
}

.animate-spin-reverse {
    animation: spinReverse 1s linear infinite;
}

/* Float Classes */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-slow {
    animation: floatSlow 8s ease-in-out infinite;
}

/* Glow Classes */
.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

.animate-glow-box {
    animation: glowBox 2s ease-in-out infinite;
}

/* Shimmer Class */
.animate-shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* ========== DELAY UTILITIES ========== */

.delay-75 { animation-delay: 75ms; }
.delay-100 { animation-delay: 100ms; }
.delay-150 { animation-delay: 150ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-500 { animation-delay: 500ms; }
.delay-700 { animation-delay: 700ms; }
.delay-1000 { animation-delay: 1000ms; }

/* ========== DURATION UTILITIES ========== */

.duration-fast { animation-duration: var(--transition-fast); }
.duration-base { animation-duration: var(--transition-base); }
.duration-slow { animation-duration: var(--transition-slow); }
.duration-75 { animation-duration: 75ms; }
.duration-100 { animation-duration: 100ms; }
.duration-150 { animation-duration: 150ms; }
.duration-200 { animation-duration: 200ms; }
.duration-300 { animation-duration: 300ms; }
.duration-500 { animation-duration: 500ms; }
.duration-700 { animation-duration: 700ms; }
.duration-1000 { animation-duration: 1000ms; }

/* ========== HOVER EFFECTS ========== */

.hover-lift {
    transition: all var(--transition-base);
}

.hover-lift:hover {
    transform: translateY(-4px);
}

.hover-grow {
    transition: all var(--transition-base);
}

.hover-grow:hover {
    transform: scale(1.05);
}

.hover-glow {
    transition: all var(--transition-base);
}

.hover-glow:hover {
    filter: drop-shadow(0 0 8px rgba(255, 193, 7, 0.6));
}

.hover-brighten {
    transition: all var(--transition-base);
    filter: brightness(1);
}

.hover-brighten:hover {
    filter: brightness(1.1);
}

/* ========== SCROLL EFFECTS ========== */

.scroll-smooth {
    scroll-behavior: smooth;
}

/* ========== RESPONSIVE ANIMATIONS ========== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ========== LOADING STATE ========== */

.skeleton {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.1) 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

.skeleton-text {
    height: 16px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    margin: 8px 0;
}

.skeleton-heading {
    height: 24px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    margin: 12px 0;
}

/* ========== ACCESSIBILITY ========== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ========== PRINT STYLES ========== */

@media print {
    * {
        animation: none !important;
        transition: none !important;
    }
}
