/* Live Auction Countdown Timer Styles */

.countdown {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    min-width: 80px;
    text-align: center;
    transition: all 0.3s ease;
}

/* Dark theme override for live auctions pages */
body.wp-dark-site-page .countdown {
    background-color: #2a2218;
    color: #fff2d6;
    border: 1px solid #b99644;
}

/* Normal countdown (more than 24 hours) */
.countdown {
    background-color: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

/* Ending soon (less than 24 hours) */
.countdown.ending-soon {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
    animation: pulse 2s infinite;
}
body.wp-dark-site-page .countdown.ending-soon {
    background-color: #5a451d;
    color: #fff2d6;
    border: 1px solid #d8ad46;
}

/* Urgent (less than 1 hour) */
.countdown.urgent {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    animation: urgent-pulse 1s infinite;
    font-weight: 900;
}
body.wp-dark-site-page .countdown.urgent {
    background-color: #6b2222;
    color: #ffe5e5;
    border: 1px solid #ff8f8f;
}

/* Ended auctions */
.countdown.ended {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
    opacity: 0.7;
}

/* Pulse animation for ending soon */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
    }
}

/* Urgent pulse animation for very soon */
@keyframes urgent-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

/* Hover effects */
.countdown:hover {
    transform: scale(1.05);
    cursor: pointer;
}

.countdown.urgent:hover {
    transform: scale(1.1);
}

/* Responsive design */
@media (max-width: 768px) {
    .countdown {
        font-size: 0.9em;
        padding: 3px 6px;
        min-width: 70px;
    }
}

@media (max-width: 480px) {
    .countdown {
        font-size: 0.8em;
        padding: 2px 4px;
        min-width: 60px;
    }
}

/* Table cell styling for countdown in auction tables */
.auction-table .countdown {
    margin: 0;
    font-size: 0.9em;
}

/* Time label styling */
.time-label {
    font-size: 0.9em;
    color: #6c757d;
    font-weight: 500;
    margin-right: 4px;
}
body.wp-dark-site-page .time-label {
    color: #eadbb7;
}

/* Price label styling */
.price-label {
    font-size: 0.9em;
    color: #6c757d;
    font-weight: 500;
    margin-right: 4px;
}

/* Price comparison styling */
.price-comparison {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 8px 12px;
    border-left: 3px solid #28a745;
}

.price-comparison small {
    line-height: 1.4;
}

.price-comparison .text-success {
    font-weight: 600;
}

.price-comparison .text-danger {
    font-weight: 600;
}

/* Status indicator alongside countdown */
.countdown-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-indicator.active {
    background-color: #28a745;
}

.status-indicator.ending-soon {
    background-color: #ffc107;
    animation: pulse 2s infinite;
}

.status-indicator.urgent {
    background-color: #dc3545;
    animation: urgent-pulse 1s infinite;
}

.status-indicator.ended {
    background-color: #6c757d;
}
