/* ============================================
   ANIMATIONS & TRANSITIONS
   ============================================ */

/* Fade animations */
@keyframes fadeInUp {
    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 slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* eShop label animation */
@keyframes zoomInOut {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

.zoom-in-zoom-out {
    animation: zoomInOut 1.5s ease-in-out infinite;
    display: inline-block;
}

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

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #e0e0e0;
    border-top: 3px solid #ed1c24;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Ripple effect for buttons */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.btn-ripple:active::after {
    width: 200px;
    height: 200px;
}

/* Smooth scroll indicator animation */
@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* Slider slide transitions */
.slide-entering {
    animation: fadeInRight 0.6s ease forwards;
}

/* Quick access section entry */
.quick-access.visible .section-title {
    animation: fadeInUp 0.5s ease forwards;
}

.quick-access.visible .quick-tabs {
    animation: fadeInUp 0.6s ease 0.1s forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

.quick-access.visible .tab-content.active {
    animation: fadeInUp 0.7s ease 0.2s forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* Header sticky transition */
.header-nav.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Mega menu item hover effects */
.mega-menu-col ul li a {
    position: relative;
}

.mega-menu-col ul li a::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: #ed1c24;
    transition: width 0.2s ease;
}

.mega-menu-col ul li a:hover::before {
    width: 6px;
}

/* Footer link hover animation */
.footer-col ul li a {
    position: relative;
}

.footer-col ul li a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: #ed1c24;
    transition: width 0.3s ease;
}

.footer-col ul li a:hover::after {
    width: 100%;
}

/* Social media icon hover */
.social-links a {
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: #ed1c24;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
    z-index: 0;
}

.social-links a:hover::before {
    width: 100%;
    height: 100%;
}

.social-links a svg {
    position: relative;
    z-index: 1;
}

/* Tab indicator slide */
.quick-tab {
    position: relative;
    overflow: hidden;
}

/* Btn hover shine effect */
.btn-confirm,
.btn-eligibility,
.slide-btn {
    position: relative;
    overflow: hidden;
}

.btn-confirm::before,
.btn-eligibility::before,
.slide-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-confirm:hover::before,
.btn-eligibility:hover::before,
.slide-btn:hover::before {
    left: 100%;
}

/* Quick access image floating animation */
.quick-access-image img {
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

/* Dot active transition */
.slider-dot {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Page load animation */
.page-loaded .header-top {
    animation: slideDown 0.4s ease;
}

.page-loaded .header-nav {
    animation: slideDown 0.5s ease 0.1s both;
}

.page-loaded .hero-slider {
    animation: fadeIn 0.6s ease 0.2s both;
}
