/* ============================================
   Valentine's Day Website Styles
   ============================================ */

/* CSS Variables for easy customization */
:root {
    /* Colors - Pastel Valentine Theme */
    --pink-light: #ffe6f0;
    --pink-medium: #ffb6c1;
    --pink-dark: #ff69b4;
    --pink-deep: #ff1493;
    --red-heart: #e74c3c;
    --white: #ffffff;
    --cream: #fff5f8;
    
    /* Button Colors */
    --yes-gradient-start: #ff6b9d;
    --yes-gradient-end: #ff1493;
    --no-gradient-start: #a8a8a8;
    --no-gradient-end: #888888;
    
    /* Fonts */
    --font-decorative: 'Pacifico', cursive;
    --font-main: 'Quicksand', sans-serif;
    
    /* Shadows */
    --shadow-soft: 0 4px 15px rgba(255, 105, 180, 0.3);
    --shadow-medium: 0 8px 25px rgba(255, 105, 180, 0.4);
    --shadow-strong: 0 12px 35px rgba(255, 105, 180, 0.5);
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    background: linear-gradient(135deg, var(--pink-light) 0%, var(--cream) 50%, var(--pink-light) 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* ============================================
   Floating Hearts Background
   ============================================ */
.hearts-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.floating-heart {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.6;
    animation: floatUp 8s linear infinite;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* ============================================
   Main Container
   ============================================ */
.container {
    text-align: center;
    padding: 2rem;
    position: relative;
    z-index: 10;
    max-width: 600px;
    width: 90%;
}

/* ============================================
   Question Section
   ============================================ */
.question-section {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 3rem 2rem;
    box-shadow: var(--shadow-medium);
    border: 2px solid rgba(255, 182, 193, 0.5);
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.heart-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.main-title {
    font-family: var(--font-decorative);
    font-size: clamp(2rem, 6vw, 3.5rem);
    color: var(--pink-deep);
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(255, 105, 180, 0.2);
}

.subtitle {
    font-size: 1.2rem;
    color: var(--pink-dark);
    margin-bottom: 2rem;
    font-weight: 500;
}

/* ============================================
   Button Styles
   ============================================ */
.button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    min-height: 80px;
    position: relative;
}

.btn {
    font-family: var(--font-main);
    font-size: 1.2rem;
    font-weight: 700;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Yes Button */
.btn-yes {
    background: linear-gradient(135deg, var(--yes-gradient-start), var(--yes-gradient-end));
    color: var(--white);
    box-shadow: var(--shadow-soft);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 20, 147, 0.4);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(255, 20, 147, 0);
    }
}

.btn-yes:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-strong);
}

.btn-yes:active {
    transform: scale(0.98);
}

/* Sparkle effect on Yes button */
.btn-yes::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    animation: sparkle 3s infinite;
}

@keyframes sparkle {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* No Button */
.btn-no {
    background: linear-gradient(135deg, var(--no-gradient-start), var(--no-gradient-end));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
}

.btn-no:hover {
    transform: scale(1.05);
}

/* No button running away animation */
.btn-no.running {
    transition: all 0.3s ease-out;
}

/* ============================================
   Tease Message
   ============================================ */
.tease-message {
    margin-top: 1.5rem;
    font-size: 1.1rem;
    color: var(--pink-deep);
    font-weight: 600;
    min-height: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tease-message.visible {
    opacity: 1;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* ============================================
   Cat Warning Section
   ============================================ */
.cat-warning {
    display: none;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: var(--shadow-medium);
    animation: fadeInUp 0.5s ease-out;
}

.cat-warning.visible {
    display: flex;
}

.cat-gif {
    max-width: 250px;
    border-radius: 20px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-soft);
}

.cat-message {
    font-size: 1.3rem;
    color: var(--pink-deep);
    font-weight: 700;
}

/* ============================================
   Success Section
   ============================================ */
.success-section {
    display: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 230, 240, 0.95));
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 3rem 2rem;
    box-shadow: var(--shadow-strong);
    border: 3px solid var(--pink-medium);
    animation: successPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.success-section.visible {
    display: block;
}

@keyframes successPop {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.success-hearts {
    font-size: 2.5rem;
    margin: 1rem 0;
    animation: heartbeat 1s ease-in-out infinite;
}

.success-title {
    font-family: var(--font-decorative);
    font-size: clamp(3rem, 10vw, 5rem);
    color: var(--pink-deep);
    text-shadow: 3px 3px 6px rgba(255, 105, 180, 0.3);
    animation: rainbow 3s linear infinite;
}

@keyframes rainbow {
    0%, 100% { color: #ff1493; }
    25% { color: #ff69b4; }
    50% { color: #ff6b9d; }
    75% { color: #ff1493; }
}

.success-message {
    font-size: 1.5rem;
    color: var(--pink-dark);
    margin: 1rem 0;
    font-weight: 600;
}

.success-message span {
    color: var(--red-heart);
    font-weight: 700;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 600px) {
    .container {
        padding: 1rem;
    }
    
    .question-section {
        padding: 2rem 1.5rem;
    }
    
    .button-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .heart-icon {
        font-size: 3rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .cat-gif {
        max-width: 200px;
    }
}

/* ============================================
   Utility Classes
   ============================================ */
.hidden {
    display: none !important;
}

/* Confetti canvas positioning */
canvas {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none;
    z-index: 1000;
}
