/**
 * Countdown Banner Frontend Styles
 */

/* Import Google Fonts */
/* Google Fonts - using system fonts as fallback */
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;600;700&display=swap');

#countdown-banner {
    position: relative;
    width: 100%;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    z-index: 1;
    display: none; /* Hide initially until JavaScript determines if it should show */
}

.countdown-banner-dismiss {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
    z-index: 1001;
    line-height: 1;
    padding: 5px;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

.countdown-banner-dismiss:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.countdown-banner-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 80px;
}

.countdown-column {
    flex: 1;
    text-align: center;
    padding: 0 10px;
}

/* Text Columns */
.countdown-text {
    display: flex;
    align-items: center;
    justify-content: center;
}

.countdown-text-content {
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
}

/* Countdown Timer Column */
.countdown-timer {
    flex: 1.5;
}

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

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
}

.countdown-number {
    font-size: 1.8em;
    font-weight: 700;
    line-height: 1;
    display: block;
    min-width: 40px;
    text-align: center;
}

.countdown-label {
    font-size: 0.7em;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
    opacity: 0.9;
}

.countdown-separator {
    font-size: 1.5em;
    font-weight: 700;
    margin: 0 4px;
    opacity: 0.7;
}

/* Button Column */
.countdown-button {
    display: flex;
    align-items: center;
    justify-content: center;
}

.countdown-button-container {
    text-align: center;
}

.countdown-button-description {
    font-size: 0.8em;
    margin: 0 0 8px 0;
    opacity: 0.9;
    line-height: 1.3;
}

.countdown-button-link {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-width: 120px;
    text-align: center;
}

.countdown-button-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .countdown-banner-container {
        flex-direction: column;
        padding: 15px 20px;
        min-height: auto;
        gap: 15px;
    }
    
    .countdown-column {
        width: 100%;
        padding: 0;
    }
    
    .countdown-display {
        gap: 6px;
    }
    
    .countdown-number {
        font-size: 1.5em;
        min-width: 35px;
    }
    
    .countdown-label {
        font-size: 0.6em;
    }
    
    .countdown-separator {
        font-size: 1.2em;
        margin: 0 2px;
    }
    
    .countdown-text-content {
        font-size: 0.9em;
    }
    
    .countdown-button-link {
        padding: 10px 20px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .countdown-banner-container {
        padding: 12px 15px;
        gap: 12px;
    }
    
    .countdown-display {
        gap: 4px;
    }
    
    .countdown-number {
        font-size: 1.3em;
        min-width: 30px;
    }
    
    .countdown-label {
        font-size: 0.55em;
    }
    
    .countdown-separator {
        font-size: 1em;
        margin: 0 1px;
    }
    
    .countdown-text-content {
        font-size: 0.85em;
    }
    
    .countdown-button-description {
        font-size: 0.75em;
        margin-bottom: 6px;
    }
    
    .countdown-button-link {
        padding: 8px 16px;
        font-size: 0.8em;
        min-width: 100px;
    }
}

/* Animation for countdown numbers */
.countdown-number {
    transition: all 0.3s ease;
}

.countdown-number.updating {
    transform: scale(1.1);
    color: #ff6b6b;
}

/* No body padding needed since banner is positioned before header */

/* Device-specific display */
@media (max-width: 768px) {
    .countdown-banner:not(.show-mobile) {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .countdown-banner:not(.show-desktop) {
        display: none !important;
    }
}

/* Fixed positioning styles */
.countdown-banner[style*="position: fixed"] {
    left: 0;
    right: 0;
    width: 100%;
}

/* Body padding for fixed banners */
body.countdown-banner-fixed-top {
    padding-top: 120px; /* Adjust based on banner height */
}

body.countdown-banner-fixed-bottom {
    padding-bottom: 120px; /* Adjust based on banner height */
}
