/**
 * Content Reveal Countdown - Frontend Styles
 * Beautiful countdown timer designs for scheduled content visibility
 * Version: 1.0.0
 */

/* Base Overlay Styles */
#contreco-countdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

#contreco-countdown-container {
    text-align: center;
    max-width: 600px;
    width: 90%;
    padding: 40px;
}

/* Timer Base Styles */
.contreco-timer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.contreco-time-unit {
    background: white;
    padding: 20px 15px;
    border-radius: 10px;
    min-width: 80px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contreco-time-number {
    display: block;
    font-size: 2.5em;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 5px;
}

.contreco-time-label {
    display: block;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
}

.contreco-message h3 {
    font-size: 1.8em;
    margin: 0 0 15px 0;
    color: var(--contreco-text-color);
}

.contreco-message p {
    font-size: 1.1em;
    margin: 0 0 30px 0;
    color: #666;
    line-height: 1.5;
}

/* Design 1 - Modern */
.contreco-design-1 #contreco-countdown-container {
    background: white;
    border-radius: 20px;
    box-shadow: var(--contreco-box-shadow);
    border: 1px solid #e0e0e0;
}

.contreco-design-1 .contreco-time-unit {
    background: linear-gradient(135deg, var(--contreco-primary-color), #00b4ff);
    color: white;
}

.contreco-design-1 .contreco-time-label {
    color: rgba(255, 255, 255, 0.8);
}

/* Design 2 - Classic */
.contreco-design-2 #contreco-countdown-overlay {
    background: rgba(0, 0, 0, 0.85);
}

.contreco-design-2 #contreco-countdown-container {
    background: #1a1a1a;
    border-radius: 10px;
    border: 2px solid #333;
    color: white;
}

.contreco-design-2 .contreco-time-unit {
    background: #2d2d2d;
    border: 1px solid #444;
    color: #ffd700;
}

.contreco-design-2 .contreco-time-label {
    color: #ccc;
}

.contreco-design-2 .contreco-message h3,
.contreco-design-2 .contreco-message p {
    color: white;
}

/* Design 3 - Minimal */
.contreco-design-3 #contreco-countdown-overlay {
    background: rgba(255, 255, 255, 0.98);
}

.contreco-design-3 #contreco-countdown-container {
    background: transparent;
    padding: 20px;
}

.contreco-design-3 .contreco-time-unit {
    background: transparent;
    border: 2px solid var(--contreco-primary-color);
    color: var(--contreco-text-color);
    box-shadow: none;
}

.contreco-design-3 .contreco-time-number {
    font-weight: 300;
}

.contreco-design-3 .contreco-message h3 {
    font-weight: 400;
    font-size: 1.5em;
}

/* Design 4 - Elegant */
.contreco-design-4 #contreco-countdown-overlay {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.contreco-design-4 #contreco-countdown-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.contreco-design-4 #contreco-countdown-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.contreco-design-4 .contreco-time-unit {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #667eea;
}

/* Responsive Design */
@media (max-width: 768px) {
    #contreco-countdown-container {
        padding: 30px 20px;
    }
    
    .contreco-timer {
        gap: 10px;
    }
    
    .contreco-time-unit {
        min-width: 70px;
        padding: 15px 10px;
    }
    
    .contreco-time-number {
        font-size: 2em;
    }
    
    .contreco-message h3 {
        font-size: 1.5em !important;
    }
}

@media (max-width: 480px) {
    .contreco-time-unit {
        min-width: 60px;
        padding: 12px 8px;
    }
    
    .contreco-time-number {
        font-size: 1.8em;
    }
    
    .contreco-time-label {
        font-size: 0.8em;
    }
    
    .contreco-message h3 {
        font-size: 1.3em !important;
    }
    
    .contreco-message p {
        font-size: 1em;
    }
}

/* Animation for timer completion */
.contreco-fade-out {
    animation: contrecoFadeOut 0.5s ease-in-out forwards;
}

@keyframes contrecoFadeOut {
    from {
        opacity: 1;
        visibility: visible;
    }
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* Content reveal animation */
.contreco-content {
    animation: contrecoFadeIn 0.5s ease-in-out;
}

@keyframes contrecoFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}