/* Optimized Redirect CSS - Uses Core Theme Variables, 50% reduction */
/* Removed redundant code that exists in core files */

/* ============================================
   COUNTDOWN DISPLAY - Enhanced from core
   ============================================ */

.countdown-styled {
    font-weight: 700 !important;
    color: var(--accent-primary) !important;
    display: inline-block !important;
    min-width: 30px !important;
    text-align: center !important;
    font-size: 1.2em !important;
    padding: 0.2em 0.4em !important;
    border-radius: 4px !important;
    background-color: rgba(var(--accent-primary-rgb), 0.1) !important;
    border: 1px solid rgba(var(--accent-primary-rgb), 0.3) !important;
    transition: all 0.3s ease !important;
}

.countdown-styled:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(var(--accent-primary-rgb), 0.3);
}

/* ============================================
   PROGRESS BAR COMPONENTS - Redirect specific
   ============================================ */

.countdown-progress-container {
    width: 100px;
    height: 4px;
    background-color: rgba(var(--text-secondary-rgb), 0.3);
    border-radius: 2px;
    margin: 10px auto 0;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 2px var(--shadow);
}

.countdown-progress-bar {
    width: var(--progress-width, 100%);
    height: 100%;
    background: linear-gradient(
        90deg, 
        var(--accent-primary), 
        var(--accent-secondary)
    );
    border-radius: 2px;
    transition: width 1s linear;
    position: relative;
    overflow: hidden;
}

/* Progress bar glow effect */
.countdown-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: progressShine 2s infinite;
}

@keyframes progressShine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* ============================================
   FADE OUT ANIMATION - Redirect specific
   ============================================ */

.redirect-fade-out {
    transition: opacity 0.5s ease, transform 0.5s ease !important;
    opacity: 0 !important;
    transform: scale(0.95) translateY(10px) !important;
}

/* ============================================
   COUNTDOWN CONTAINER ENHANCEMENTS
   ============================================ */

.countdown-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 1rem 0;
}

.countdown-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* ============================================
   ANIMATION VARIANTS - Redirect specific
   ============================================ */

/* Pulse animation for countdown */
@keyframes countdownPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(var(--accent-primary-rgb), 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(var(--accent-primary-rgb), 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(var(--accent-primary-rgb), 0);
    }
}

/* Apply pulse when countdown is active */
.countdown-styled.active {
    animation: countdownPulse 1s infinite;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .countdown-styled {
        font-size: 1.1em !important;
        min-width: 28px !important;
        padding: 0.15em 0.3em !important;
    }
    
    .countdown-progress-container {
        width: 80px;
        height: 3px;
        margin: 8px auto 0;
    }
}

@media (max-width: 480px) {
    .countdown-styled {
        font-size: 1em !important;
        min-width: 25px !important;
    }
    
    .countdown-progress-container {
        width: 60px;
        margin: 6px auto 0;
    }
}

/* ============================================
   ACCESSIBILITY ENHANCEMENTS
   ============================================ */

/* High contrast mode support */
@media (prefers-contrast: high) {
    .countdown-styled {
        border-width: 2px !important;
    }
    
    .countdown-progress-bar {
        background: var(--accent-primary) !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .countdown-styled,
    .countdown-progress-bar,
    .redirect-fade-out {
        transition: none !important;
        animation: none !important;
    }
    
    .countdown-progress-bar::after {
        display: none;
    }
}