/**
 * YPB CEO Offer Links - Frontend Styles
 */

/* Personalized Name */
.ypb-personalized-name {
    font-weight: 600;
}

/* Countdown Timer */
.ypb-countdown-timer {
    text-align: center;
    padding: 20px;
}

.ypb-countdown-timer .countdown-inner {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.ypb-countdown-timer .countdown-item {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 10px;
    padding: 15px 20px;
    min-width: 80px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.ypb-countdown-timer .countdown-value {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.ypb-countdown-timer .countdown-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 5px;
}

/* Urgency animation when under 24 hours */
.ypb-countdown-timer.urgent .countdown-item {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
    animation: pulse 2s infinite;
}

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

/* Expired state */
.ypb-countdown-timer.expired {
    color: #c0392b;
    font-weight: 600;
    font-size: 18px;
}

.ypb-countdown-timer.expired .countdown-inner {
    display: none;
}

/* Premier Price */
.ypb-premier-price {
    font-weight: 700;
}

.ypb-premier-price[data-special="true"] {
    color: #27ae60;
}

/* Alternative Light Theme */
.ypb-countdown-timer.light .countdown-item {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ypb-countdown-timer.light .countdown-value {
    color: #1a1a2e;
}

.ypb-countdown-timer.light .countdown-label {
    color: #6c757d;
}

/* Responsive */
@media screen and (max-width: 480px) {
    .ypb-countdown-timer .countdown-item {
        min-width: 65px;
        padding: 12px 15px;
    }
    
    .ypb-countdown-timer .countdown-value {
        font-size: 28px;
    }
    
    .ypb-countdown-timer .countdown-label {
        font-size: 10px;
    }
}

/* Inline variant (for within text) */
.ypb-countdown-timer.inline {
    display: inline-block;
    padding: 5px 10px;
    background: #f8f9fa;
    border-radius: 5px;
}

.ypb-countdown-timer.inline .countdown-inner {
    gap: 5px;
}

.ypb-countdown-timer.inline .countdown-item {
    background: none;
    box-shadow: none;
    padding: 0;
    min-width: auto;
}

.ypb-countdown-timer.inline .countdown-value {
    font-size: 16px;
    color: #1a1a2e;
}

.ypb-countdown-timer.inline .countdown-value::after {
    content: ':';
    margin-left: 3px;
}

.ypb-countdown-timer.inline .countdown-item:last-child .countdown-value::after {
    content: '';
}

.ypb-countdown-timer.inline .countdown-label {
    display: none;
}
