/* Countdown Page Styles */
/* ===================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #ff6b9d 0%, #c06c84 50%, #6c5b7b 100%);
    --secondary-gradient: linear-gradient(135deg, #ffeaa7 0%, #fd79a8 50%, #a29bfe 100%);
    --accent-gradient: linear-gradient(135deg, #74b9ff 0%, #a29bfe 50%, #fd79a8 100%);
    --gold-gradient: linear-gradient(135deg, #feca57 0%, #ff9ff3 50%, #feca57 100%);
    --text-light: #ffffff;
    --shadow-glow: 0 0 30px rgba(255, 107, 157, 0.5);
    --shadow-heavy: 0 20px 60px rgba(0, 0, 0, 0.3);
    --font-primary: 'Playfair Display', Georgia, serif;
    --font-secondary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: var(--font-secondary);
    background: var(--primary-gradient);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    opacity: 0;
    transition: opacity 1s ease;
}

body.loaded {
    opacity: 1;
}

/* Floating elements background */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.float-item {
    position: absolute;
    font-size: 30px;
    opacity: 0.3;
    animation: float-up 20s infinite ease-in-out;
}

@keyframes float-up {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Main container */
.countdown-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    padding: 40px;
    text-align: center;
}

.content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 40px;
    padding: 60px 40px;
    box-shadow: var(--shadow-heavy), 0 0 100px rgba(255, 107, 157, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 200%; }
}

/* Birthday icon */
.birthday-icon {
    font-size: 80px;
    margin-bottom: 30px;
    animation: bounce-icon 2s infinite;
}

.birthday-icon i {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 5px 15px rgba(254, 202, 87, 0.5));
}

@keyframes bounce-icon {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.1); }
}

/* Titles */
.main-title {
    font-family: var(--font-primary);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 
        0 0 20px rgba(255, 255, 255, 0.5),
        0 5px 15px rgba(0, 0, 0, 0.3);
    animation: title-glow 2s ease-in-out infinite;
}

@keyframes title-glow {
    0%, 100% {
        text-shadow: 
            0 0 20px rgba(255, 255, 255, 0.5),
            0 5px 15px rgba(0, 0, 0, 0.3);
    }
    50% {
        text-shadow: 
            0 0 30px rgba(255, 255, 255, 0.8),
            0 0 40px rgba(255, 107, 157, 0.5),
            0 5px 15px rgba(0, 0, 0, 0.3);
    }
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 50px;
    opacity: 0.9;
    font-weight: 300;
    letter-spacing: 2px;
}

/* Countdown display */
.countdown-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 50px 0;
    flex-wrap: wrap;
}

.time-unit {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px 25px;
    min-width: 140px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.time-unit:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 107, 157, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
}

.time-value {
    font-family: var(--font-primary);
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    text-shadow: 0 5px 15px rgba(254, 202, 87, 0.3);
}

.time-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.9;
    font-weight: 500;
}

.time-separator {
    font-size: 3rem;
    font-weight: 700;
    opacity: 0.5;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.1; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Message box */
.message-box {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 25px 40px;
    margin: 40px auto;
    max-width: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: pulse-glow 3s infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 5px 20px rgba(255, 107, 157, 0.3);
    }
    50% {
        box-shadow: 0 5px 30px rgba(255, 107, 157, 0.6);
    }
}

.message-box i {
    font-size: 1.5rem;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(1); }
}

.message-box p {
    font-size: 1.2rem;
    font-weight: 400;
    margin: 0;
}

/* Target date */
.target-date {
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.target-date i {
    font-size: 1.5rem;
}

/* Skip button for testing */
.skip-button {
    margin-top: 30px;
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-secondary);
}

.skip-button:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 107, 157, 0.4);
}

.skip-button:active {
    transform: translateY(-1px);
}

/* Sparkle effect */
.sparkle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    opacity: 0;
    animation: sparkle-animation 1s ease-out;
    pointer-events: none;
    box-shadow: 0 0 10px white;
}

@keyframes sparkle-animation {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .countdown-container {
        padding: 20px;
    }

    .content {
        padding: 40px 25px;
        border-radius: 30px;
    }

    .main-title {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.2rem;
        margin-bottom: 30px;
    }

    .birthday-icon {
        font-size: 60px;
        margin-bottom: 20px;
    }

    .countdown-display {
        gap: 15px;
        margin: 30px 0;
    }

    .time-unit {
        min-width: 100px;
        padding: 20px 15px;
    }

    .time-value {
        font-size: 3rem;
    }

    .time-label {
        font-size: 0.85rem;
    }

    .time-separator {
        font-size: 2rem;
        display: none;
    }

    .message-box {
        padding: 20px 25px;
        flex-direction: column;
        gap: 10px;
    }

    .message-box p {
        font-size: 1rem;
    }

    .target-date {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .time-unit {
        min-width: 80px;
        padding: 15px 10px;
    }

    .time-value {
        font-size: 2.5rem;
    }

    .time-label {
        font-size: 0.75rem;
    }

    .countdown-display {
        gap: 10px;
    }

    .message-box p {
        font-size: 0.9rem;
    }
}
