/* CSS Variables - Will be updated by JavaScript */
:root {
    /* Colors */
    --background-color-1: #ffafbd;
    --background-color-2: #ffc3a0;
    --button-color: #ff6b6b;
    --button-hover: #ff8787;
    --text-color: #ff4757;

    /* Animations */
    --float-duration: 15s;
    --float-distance: 50px;
    --bounce-speed: 0.5s;
    --heart-explosion-size: 1.5;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--background-color-1), var(--background-color-2));
    font-family: 'Poppins', Arial, sans-serif;
    overflow-x: hidden;
}

.container {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 90%;
    max-width: 600px;
    margin: 20px;
    position: relative;
    z-index: 2;
}

.floating-elements {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.heart, .bear {
    position: absolute;
    font-size: 2rem;
    animation: float var(--float-duration) linear infinite;
}

@keyframes float {
    0% {
        transform: translateY(100vh) translateX(0);
    }
    100% {
        transform: translateY(-100px) translateX(var(--float-distance));
    }
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.cute-btn {
    background: var(--button-color);
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
    min-width: 120px;
    min-height: 48px; /* Accessibility: minimum tap target size */
    display: flex;
    align-items: center;
    justify-content: center;
}

.cute-btn:hover, .cute-btn:focus {
    transform: scale(1.05);
    background: var(--button-hover);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    outline: none;
}

.cute-btn:active {
    transform: scale(0.95);
}

.hidden {
    display: none !important;
}

.secret-answer {
    position: fixed;
    bottom: 20px;
    right: 20px;
    opacity: 0.3;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 10;
}

.secret-answer:hover, .secret-answer:focus-within {
    opacity: 1;
    transform: scale(1.1);
}

.secret-answer .cute-btn.special {
    font-size: 0.8rem;
    padding: 8px 16px;
    min-width: auto;
    min-height: auto;
    background: rgba(255, 255, 255, 0.5);
    color: var(--text-color);
    border: 1px dashed var(--text-color);
}

.love-meter {
    width: 100%;
    margin: 30px 0;
}

.slider {
    width: 100%;
    height: 15px;
    -webkit-appearance: none;
    appearance: none;
    background: #eee;
    outline: none;
    border-radius: 10px;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 30px;
    height: 30px;
    background: var(--button-color);
    cursor: pointer;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.slider::-moz-range-thumb {
    width: 30px;
    height: 30px;
    background: var(--button-color);
    cursor: pointer;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

#loveValue {
    font-weight: 700;
    color: var(--text-color);
}

#extraLove {
    display: block;
    margin-top: 10px;
    font-weight: 600;
    color: var(--text-color);
    animation: bounce 0.5s infinite alternate;
}

@keyframes bounce {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.celebration-text {
    font-size: 1.2rem;
    margin: 10px 0;
    line-height: 1.6;
}

#celebrationEmojis {
    font-size: 2.5rem;
    margin-top: 20px;
}

.music-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.music-btn {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--button-color);
    color: var(--text-color);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.share-container {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.share-btn {
    background: transparent;
    border: 2px solid var(--button-color);
    color: var(--text-color);
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.share-btn:hover {
    background: var(--button-color);
    color: white;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.2rem; }
    .container { padding: 1.5rem; }
    .cute-btn { width: 100%; }
    .music-controls { top: 10px; right: 10px; }
    
    /* Reduce animation density on mobile */
    .heart:nth-child(even), .bear:nth-child(even) {
        display: none;
    }
}
