/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #e2e8f0;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.container {
    max-width: 600px;
    width: 100%;
    text-align: center;
}

header {
    margin-bottom: 2.5rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

.subtitle {
    color: #cbd5e1;
    font-size: 1.125rem;
    max-width: 80%;
    margin: 0 auto;
    opacity: 0.9;
}

.countdown-container {
    margin: 2.5rem 0;
}

.countdown-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #94a3b8;
    margin-bottom: 1rem;
    font-weight: 500;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.countdown-value {
    font-size: 3rem;
    font-weight: 700;
    color: #f1f5f9;
    line-height: 1;
    text-shadow: 0 0 30px rgba(139, 92, 246, 0.6);
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 0.5rem;
}

.countdown-unit {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
    margin-top: 0.5rem;
    font-weight: 500;
}

.form-container {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    padding: 0.75rem;
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.2), 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(139, 92, 246, 0.2);
    max-width: 500px;
    margin: 0 auto;
}

.email-form {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.1rem;
}

input[type="email"] {
    flex: 1;
    padding: 1.0125rem 1.35rem;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    font-size: 1.35rem;
    background: rgba(30, 27, 75, 0.5);
    color: #f1f5f9;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="email"]:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.3), 0 0 20px rgba(139, 92, 246, 0.2);
}

input[type="email"]::placeholder {
    color: #94a3b8;
}

button {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

button:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.6);
}

button:active {
    transform: translateY(1px);
}

.privacy-note {
    font-size: 0.875rem;
    color: #94a3b8;
    margin-top: 1rem;
    opacity: 0.8;
}

.success-message {
    display: none;
    background: rgba(34, 197, 94, 0.1);
    color: #86efac;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(34, 197, 94, 0.3);
    margin-top: 1.5rem;
    animation: fadeIn 0.3s ease-in-out;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.2);
}

.fliers-section {
    margin-top: 1rem;
    padding-top: 0.5rem;
}

.fliers-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

.fliers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.flier-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
}

.flier-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.3);
    border-color: rgba(139, 92, 246, 0.4);
}

.flier-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.flier-card:hover .flier-image {
    transform: scale(1.05);
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease-in-out;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    animation: zoomIn 0.3s ease-in-out;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #f1f5f9;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 1001;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #8b5cf6;
}

.lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #cbd5e1;
    padding: 10px 0;
    height: 50px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.logo-container {
    margin-top: 2rem;
    text-align: center;
}

.edc-logo {
    max-width: 200px;
    width: 100%;
    height: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.edc-logo:hover {
    opacity: 1;
}

.footer {
    margin-top: 2rem;
    padding-top: 2rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.875rem;
    opacity: 0.8;
}

.footer p {
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        max-width: 100%;
    }
    
    .countdown {
        gap: 1rem;
    }
    
    .countdown-item {
        min-width: 60px;
    }
    
    .countdown-value {
        font-size: 2rem;
    }
    
    .countdown-unit {
        font-size: 0.65rem;
    }
    
    .email-form {
        flex-direction: column;
    }
    
    button {
        width: 100%;
    }
    
    .fliers-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .fliers-title {
        font-size: 1.25rem;
    }
    
    .lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
    
    .lightbox-content {
        max-width: 95%;
        max-height: 80vh;
    }
}
