﻿/* ====== Professional Offer Timer Styles ====== */
.offer-timer-container {
    margin-top: 25px;
    padding: 12px 14px; /* Smaller padding */
    margin-top: 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .offer-timer-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #667eea, #764ba2);
        border-radius: 16px 16px 0 0;
    }

.timer-label {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.timer-display {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.timer-unit {
    background: white;
    padding: 10px 6px; /* Smaller padding */
    min-width: 55px; /* Smaller width */
    border-radius: 10px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    min-width: 70px;
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

    .timer-unit::after {
        content: ':';
        position: absolute;
        font-size: 0.9rem;
        right: -6px;
        top: 50%;
        transform: translateY(-50%);
        color: #6c757d;
        font-weight: 600;
        font-size: 1.2rem;
    }

    .timer-unit:last-child::after {
        display: none;
    }

.timer-value {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    background: linear-gradient(135deg, #2D3748, #4A5568);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.timer-label-small {
    font-size: 0.65rem;
    color: #6c757d;
    font-weight: 500;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Timer Color States - Professional */
.timer-status-plenty .timer-unit {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border: 1px solid #e9ecef;
}

.timer-status-plenty .timer-value {
    background: linear-gradient(135deg, #38A169, #48BB78);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.timer-status-good .timer-unit {
    background: linear-gradient(135deg, #ffffff, #fef5e7);
    border: 1px solid #faf0ca;
}

.timer-status-good .timer-value {
    background: linear-gradient(135deg, #D69E2E, #ECC94B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.timer-status-warning .timer-unit {
    background: linear-gradient(135deg, #ffffff, #fef0e7);
    border: 1px solid #fad8c2;
}

.timer-status-warning .timer-value {
    background: linear-gradient(135deg, #ED8936, #F6AD55);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.timer-status-urgent .timer-unit {
    background: linear-gradient(135deg, #ffffff, #fed7d7);
    border: 1px solid #feb2b2;
    animation: gentle-pulse 2s infinite;
}

.timer-status-urgent .timer-value {
    background: linear-gradient(135deg, #E53E3E, #FC8181);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.timer-status-critical .timer-unit {
    background: linear-gradient(135deg, #fff5f5, #fed7d7);
    border: 1px solid #feb2b2;
    animation: critical-pulse 1s infinite;
}

.timer-status-critical .timer-value {
    background: linear-gradient(135deg, #C53030, #F56565);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Urgency Messages */
.timer-urgency-text {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 8px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.timer-urgency-low {
    background: linear-gradient(135deg, #C6F6D5, #9AE6B4);
    color: #22543D;
}

.timer-urgency-medium {
    background: linear-gradient(135deg, #FAF089, #F6E05E);
    color: #744210;
}

.timer-urgency-high {
    background: linear-gradient(135deg, #FEB2B2, #FC8181);
    color: #742A2A;
}

.timer-urgency-critical {
    background: linear-gradient(135deg, #FED7D7, #FEB2B2);
    color: #C53030;
    animation: text-pulse 1s infinite;
}

/* Animations */
@keyframes gentle-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes critical-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 25px rgba(197, 48, 48, 0.2);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    }
}

@keyframes text-pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        opacity: 1;
    }
}

/* Hover Effects */
.timer-unit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Expired State */
.timer-expired {
    opacity: 0.7;
}

    .timer-expired .timer-unit {
        background: #f8f9fa;
        border: 1px solid #dee2e6;
    }

    .timer-expired .timer-value {
        background: #6c757d;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

/* Responsive Design */
@media (max-width: 768px) {
    .offer-timer-container {
        padding: 15px;
        margin-top: 20px;
    }

    .timer-display {
        gap: 8px;
    }

    .timer-unit {
        min-width: 60px;
        padding: 12px 6px;
    }

    .timer-value {
        font-size: 1.5rem;
    }

    .timer-unit::after {
        right: -6px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .timer-display {
        gap: 6px;
    }

    .timer-unit {
        min-width: 55px;
        padding: 10px 4px;
    }

    .timer-value {
        font-size: 1.3rem;
    }

    .timer-label-small {
        font-size: 0.7rem;
    }

    .timer-label {
        font-size: 0.8rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .offer-timer-container {
        background: linear-gradient(135deg, #2D3748 0%, #4A5568 100%);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .timer-unit {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .timer-label {
        color: #a0aec0;
    }

    .timer-label-small {
        color: #a0aec0;
    }
}
