/**
 * تصميم العداد التنازلي - نادي أدِيب
 * مستوحى من تصميم membership.html
 */

:root {
    --main-blue: #274060;
    --accent-blue: #3d8fd6;
    --light-blue: #6ba8e2;
}

/* عداد التصويت - Hero Card */
.voting-countdown-wrap {
    display: none;
    width: 100%;
    margin: 0 0 1.5rem;
    padding: 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent-blue, #3d8fd6), var(--main-blue, #274060));
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 16px 40px rgba(2, 6, 23, 0.18), 0 0 0 1px rgba(61, 143, 214, 0.10);
    animation: fadeInUp 0.5s ease-out;
}

.voting-countdown-wrap.active {
    display: block;
}

.voting-countdown-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #fff;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.voting-countdown-head i {
    opacity: 0.9;
    font-size: 1.1rem;
}

.voting-countdown-timer {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.voting-countdown-box {
    min-width: 86px;
    display: grid;
    gap: 6px;
    justify-items: center;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    padding: 10px 12px;
    border-radius: 12px;
    color: #fff;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset;
    transition: transform 0.3s ease;
}

.voting-countdown-box:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.18);
}

.voting-countdown-box span {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-weight: 700;
    font-size: clamp(1.1rem, 3.5vw, 1.6rem);
    letter-spacing: 0.5px;
    line-height: 1;
}

.voting-countdown-box small {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-weight: 400;
    opacity: 0.9;
    font-size: 0.875rem;
}

/* عداد الترشح - Hero Card */
.nomination-countdown-wrap {
    display: none;
    width: 100%;
    margin: 0 0 1.5rem;
    padding: 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 16px 40px rgba(16, 185, 129, 0.25), 0 0 0 1px rgba(16, 185, 129, 0.10);
    animation: fadeInUp 0.5s ease-out;
}

.nomination-countdown-wrap.active {
    display: block;
}

.nomination-countdown-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #fff;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.nomination-countdown-head i {
    opacity: 0.9;
    font-size: 1.1rem;
}

.nomination-countdown-timer {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.nomination-countdown-box {
    min-width: 86px;
    display: grid;
    gap: 6px;
    justify-items: center;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    padding: 10px 12px;
    border-radius: 12px;
    color: #fff;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset;
    transition: transform 0.3s ease;
}

.nomination-countdown-box:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.18);
}

.nomination-countdown-box span {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-weight: 700;
    font-size: clamp(1.1rem, 3.5vw, 1.6rem);
    letter-spacing: 0.5px;
    line-height: 1;
}

.nomination-countdown-box small {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-weight: 400;
    opacity: 0.9;
    font-size: 0.875rem;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .voting-countdown-box,
    .nomination-countdown-box {
        min-width: 70px;
        padding: 8px 10px;
    }
    
    .voting-countdown-head,
    .nomination-countdown-head {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .voting-countdown-box,
    .nomination-countdown-box {
        min-width: 65px;
        padding: 6px 8px;
        gap: 4px;
    }
    
    .voting-countdown-timer,
    .nomination-countdown-timer {
        gap: 8px;
    }
}
