/* Countdown GPT-5 Styles */
#countdown-window {
    width: 600px;
    height: 520px;
    left: calc(50% - 300px);
    top: calc(50% - 260px);
}

.countdown-container {
    display: flex;
    flex-direction: column;
    padding: 20px;
    height: calc(100% - 25px); /* adjust for window frame */
    background: linear-gradient(to bottom, #f0f0f0 0%, #e0e0e0 100%);
    overflow-y: auto;
}

.countdown-header { text-align: center; margin-bottom: 20px; }
.countdown-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
    animation: slowRotate 10s linear infinite;
}
.countdown-header h2 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 24px;
    color: #003366;
    margin: 10px 0;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}
.countdown-tagline { font-style: italic; color: #666; font-size: 14px; }

.countdown-display {
    background: #000;
    border: 3px inset #c0c0c0;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    box-shadow: inset 0 0 10px rgba(0,255,0,0.2);
}

.countdown-time { display: flex; justify-content: center; align-items: center; gap: 10px; }
.time-unit { display: flex; flex-direction: column; align-items: center; }
.time-value {
    font-family: 'Courier New', monospace;
    font-size: 48px;
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
    font-weight: bold;
    line-height: 1;
}
.time-label { font-size: 12px; color: #00cc00; margin-top: 5px; letter-spacing: 2px; }
.time-separator { font-size: 36px; color: #00ff00; animation: blink 1s infinite; }

.countdown-target { margin-top: 15px; color: #00cc00; font-size: 14px; }

.countdown-features { display: flex; gap: 20px; margin: 20px 0; flex: 1; }
.feature-box { flex: 1; background: white; border: 1px solid #c0c0c0; padding: 15px; box-shadow: inset -1px -1px #fff, inset 1px 1px #0a0a0a; }
.feature-box h3 { font-size: 14px; margin-bottom: 10px; color: #003366; }
.feature-box ul { list-style: none; padding: 0; font-size: 12px; }
.feature-box li { padding: 2px 0; color: #333; }

.progress-bar { width: 100%; height: 20px; background: #e0e0e0; border: 1px inset #c0c0c0; margin: 10px 0; position: relative; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(to right, #0066cc, #0099ff); width: 0%; transition: width 1s ease; position: relative; }
.progress-fill::after {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(45deg, transparent 25%, rgba(255,255,255,0.3) 25%, rgba(255,255,255,0.3) 50%, transparent 50%, transparent 75%, rgba(255,255,255,0.3) 75%);
    background-size: 20px 20px;
    animation: progress-stripes 1s linear infinite;
}
.progress-text { text-align: center; font-size: 12px; color: #666; }

.countdown-footer { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }

/* Animate countdown numbers on update */
.time-value.updating { animation: numberFlip 0.3s ease-in-out; }

/* Fix countdown window status bar */
#countdown-window .window-status {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
    background: #ece9d8;
    border-top: 1px solid #fff;
    box-shadow: inset 0 1px 0 #919b9c;
}

/* Celebration classes for countdown */
.celebration-flash {
    animation: celebration-flash 1s ease-in-out 6;
}

.celebration-dance {
    animation: celebration-dance 0.8s ease-in-out 8;
}

/* FREE API KEY Button - Early 2000s Scam Style */
.free-api-key-button {
    display: block;
    width: 90%;
    margin: 20px auto;
    padding: 15px 20px;
    background: #FFFF00;
    background: linear-gradient(to bottom, #FFFF00 0%, #FFD700 50%, #FFA500 100%);
    border: 3px solid #FF0000;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.8), inset 0 0 20px rgba(255, 255, 0, 0.5), 0 5px 10px rgba(0, 0, 0, 0.5);
    animation: scamPulse 0.5s infinite alternate, scamGlow 2s infinite;
    font-family: "Impact", "Arial Black", sans-serif;
    text-transform: uppercase;
    overflow: visible;
}
.free-api-key-button:hover { animation: scamPulse 0.2s infinite alternate, scamGlow 1s infinite, scamShake 0.1s infinite; transform: scale(1.05); }
.free-api-key-button .blink-text {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #000000;
    text-shadow: 2px 2px 0 #FF0000, -2px -2px 0 #FF0000, 2px -2px 0 #FF0000, -2px 2px 0 #FF0000;
    animation: scamBlink 0.5s infinite;
    letter-spacing: 2px;
}
.free-api-key-button .subtext {
    display: block;
    font-size: 16px;
    color: #FF0000;
    margin-top: 5px;
    font-weight: bold;
    text-shadow: 1px 1px 0 #000;
    animation: scamBounce 0.3s infinite alternate;
}
