/* =====================================================
   Registration Countdown Timer - Interactive Styling
   ===================================================== */

.registration-countdown-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

.registration-countdown-link:hover {
    text-decoration: none;
}

.registration-countdown {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(234, 88, 12, 0.15);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.registration-countdown::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(234, 88, 12, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.registration-countdown::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, transparent 100%);
    opacity: 0.15;
    border-radius: 0 15px 0 100%;
}

.registration-countdown-link:hover .registration-countdown {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(234, 88, 12, 0.25);
    border-color: var(--secondary-color);
}

.registration-countdown-link:hover .countdown-header i {
    transform: scale(1.15);
    color: var(--primary-color);
}

.registration-countdown-link:active .registration-countdown {
    transform: translateY(-2px);
    box-shadow: 0 10px 35px rgba(234, 88, 12, 0.2);
}

.countdown-header {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.countdown-header i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    display: block;
    animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.countdown-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.deadline-date {
    font-size: 1rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin: 0;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.countdown-unit {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border-radius: 12px;
    padding: 1rem 0.875rem;
    min-width: 75px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.countdown-unit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.countdown-unit:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 10px 30px rgba(234, 88, 12, 0.3);
    border-color: var(--secondary-color);
}

.countdown-unit:hover::before {
    opacity: 0.1;
}

.countdown-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    line-height: 1;
    margin-bottom: 0.4rem;
    position: relative;
    z-index: 1;
    font-variant-numeric: tabular-nums;
    transition: all 0.3s ease;
    text-shadow: 0 2px 10px rgba(234, 88, 12, 0.2);
}

.countdown-unit:hover .countdown-value {
    color: var(--secondary-color);
    transform: scale(1.1);
    text-shadow: 0 4px 20px rgba(234, 88, 12, 0.4);
}

.countdown-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.countdown-unit:hover .countdown-label {
    color: var(--secondary-color);
}

.countdown-separator {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--secondary-color);
    opacity: 0.6;
    animation: blink 1s ease-in-out infinite;
    line-height: 1;
    margin: 0 0.25rem;
}

@keyframes blink {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* Pulse animation for value changes */
.countdown-value.flash {
    animation: flash 0.5s ease;
}

@keyframes flash {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
        color: var(--primary-color);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .countdown-unit {
        min-width: 70px;
        padding: 0.875rem 0.75rem;
    }

    .countdown-value {
        font-size: 2.25rem;
    }

    .countdown-separator {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .registration-countdown {
        padding: 1.25rem 1rem;
        max-width: 100%;
    }

    .countdown-header {
        margin-bottom: 1.25rem;
    }

    .countdown-header i {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }

    .countdown-header h3 {
        font-size: 1.25rem;
    }

    .deadline-date {
        font-size: 0.9rem;
    }

    .countdown-timer {
        gap: 0.5rem;
    }

    .countdown-unit {
        min-width: 65px;
        padding: 0.875rem 0.625rem;
    }

    .countdown-value {
        font-size: 2rem;
    }

    .countdown-label {
        font-size: 0.7rem;
    }

    .countdown-separator {
        font-size: 1.25rem;
        margin: 0 0.2rem;
    }
}

@media (max-width: 480px) {
    .registration-countdown {
        padding: 1rem 0.75rem;
    }

    .countdown-header i {
        font-size: 1.5rem;
    }

    .countdown-header h3 {
        font-size: 1.1rem;
    }

    .deadline-date {
        font-size: 0.85rem;
    }

    .countdown-timer {
        gap: 0.4rem;
    }

    .countdown-unit {
        min-width: 55px;
        padding: 0.75rem 0.5rem;
    }

    .countdown-value {
        font-size: 1.75rem;
    }

    .countdown-label {
        font-size: 0.65rem;
    }

    .countdown-separator {
        font-size: 1.1rem;
        margin: 0 0.15rem;
    }
}

