/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 1rem;
}

.container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 500px;
    width: 100%;
    max-height: 100vh;
    overflow-y: auto;
}

.title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.title-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

header h1 {
    font-size: 2.5rem;
    margin: 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.title-line1 {
    font-size: 1em;
}

.title-line2 {
    font-size: 0.9em;
    margin-top: -0.1em;
}

header p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1.5rem;
}

/* Target time section - primary information */
.target-time {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.target-time h2 {
    font-size: 1.2rem;
    margin: 0 0 1rem 0;
    font-weight: 600;
    opacity: 0.9;
}

.target-time-display {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.timezone-info {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Countdown section - secondary information */
.countdown-section {
    margin-bottom: 1rem;
}

.countdown-section h3 {
    font-size: 1.1rem;
    color: #495057;
    margin: 0 0 1rem 0;
    font-weight: 600;
}

.timer-display {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1rem 0.75rem;
    min-width: 80px;
    border: 2px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.time-unit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.time-value {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
    margin-bottom: 0.25rem;
    font-variant-numeric: tabular-nums;
}

.time-label {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}


footer {
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
    margin-top: 1rem;
}

footer p {
    font-size: 0.8rem;
    color: #6c757d;
    margin: 0.2rem 0;
}

.disclaimer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
    font-size: 0.7rem;
    color: #6c757d;
    line-height: 1.4;
}

.disclaimer p {
    margin: 0.3rem 0;
    text-align: center;
}

.disclaimer strong {
    color: #495057;
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        padding: 0.5rem;
        align-items: flex-start;
        padding-top: 1rem;
    }
    
    .container {
        padding: 1.5rem;
        margin: 0;
        max-height: none;
    }
    
    .title-container {
        gap: 0.75rem;
        margin-bottom: 0.25rem;
    }
    
    .title-icon {
        width: 40px;
        height: 40px;
    }
    
    header h1 {
        font-size: 1.75rem;
    }
    
    header p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .target-time {
        padding: 1.25rem;
        margin-bottom: 1.25rem;
    }
    
    .target-time-display {
        font-size: 1.5rem;
    }
    
    .timer-display {
        gap: 0.75rem;
    }
    
    .time-unit {
        min-width: 70px;
        padding: 0.75rem 0.5rem;
    }
    
    .time-value {
        font-size: 1.75rem;
    }
    
    footer {
        margin-top: 0.75rem;
        padding-top: 0.75rem;
    }
    
    .disclaimer {
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0.25rem;
        padding-top: 0.5rem;
    }
    
    .container {
        padding: 1.25rem;
    }
    
    .title-container {
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 0;
    }
    
    .title-icon {
        width: 36px;
        height: 36px;
    }
    
    header h1 {
        font-size: 1.5rem;
        text-align: center;
    }
    
    header p {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }
    
    .target-time {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .target-time h2 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .target-time-display {
        font-size: 1.3rem;
    }
    
    .countdown-section h3 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .timer-display {
        gap: 0.5rem;
    }
    
    .time-unit {
        min-width: 65px;
        padding: 0.6rem 0.4rem;
    }
    
    .time-value {
        font-size: 1.5rem;
    }
    
    .time-label {
        font-size: 0.7rem;
    }
    
    .disclaimer {
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        font-size: 0.6rem;
    }
}