/* ============================================
   LANDING PAGE STYLES
   ============================================ */

/* CSS Variables for easy customization */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --overlay-color: rgba(0, 0, 0, 0.4);
    --button-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --card-bg: rgba(255, 255, 255, 0.95);
    --shadow-color: rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100vh;
    overflow: hidden;
    /* Full-screen background image with fallback gradient */
    background: var(--primary-gradient);
    
    /* Valentine's Day photo collage background */
    background-image: 
        linear-gradient(var(--overlay-color), var(--overlay-color)),
        url('background.png');
    
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* Container - centers content */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    position: relative;
}

/* ============================================
   BUTTON STYLES
   ============================================ */

.main-button {
    /* Modern glassmorphism button */
    background: var(--button-gradient);
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    padding: 20px 50px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 30px var(--shadow-color);
    position: relative;
    z-index: 10;
    
    /* Smooth transitions */
    transition: all 0.3s ease;
    
    /* Glass effect */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.main-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px var(--shadow-color);
}

.main-button:active {
    transform: translateY(-1px) scale(1.02);
}

/* Animation states */
.main-button.expanding {
    animation: expandButton 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.main-button.hidden {
    display: none;
}

/* ============================================
   CARD STYLES (Transformed State)
   ============================================ */

.card {
    position: absolute;
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 5;
    
    /* Glass effect */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    
    /* Initial state - scaled down */
    transform: scale(0);
    opacity: 0;
    
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.card.hidden {
    display: none;
}

.card.visible {
    display: block;
    animation: revealCard 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.card-content {
    text-align: center;
    color: #333;
}

.card-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: var(--button-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #555;
}

.card-content p:last-child {
    font-size: 1.5rem;
    margin-top: 20px;
}

/* Response buttons container */
.response-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

/* Response button styles */
.response-btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.yes-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.yes-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(245, 87, 108, 0.4);
}

.no-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.no-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(118, 75, 162, 0.4);
}

.response-btn:active {
    transform: translateY(-1px) scale(1.02);
}

/* Yes response image container */
.yes-response {
    animation: fadeInImage 1s ease-in-out;
}

/* No response image container */
.no-response {
    animation: fadeInImage 1s ease-in-out;
}

.image-container {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.response-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: block;
}

/* Red overlay text */
.overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #FF0000;
    font-size: 3rem;
    font-weight: 900;
    text-shadow: 
        3px 3px 6px rgba(0, 0, 0, 0.8),
        -1px -1px 2px rgba(255, 255, 255, 0.3);
    animation: popIn 0.5s ease-out 0.5s both;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Sleep emoji overlay */
.sleep-emoji {
    font-size: 5rem;
    font-weight: normal;
    text-shadow: none;
    filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.8));
    letter-spacing: 0.5rem;
}

/* Fade in animation for image */
@keyframes fadeInImage {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Pop in animation for text */
@keyframes popIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes expandButton {
    0% {
        transform: scale(1);
        border-radius: 50px;
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: scale(15);
        border-radius: 20px;
        opacity: 0;
    }
}

@keyframes revealCard {
    0% {
        transform: scale(0) rotate(-5deg);
        opacity: 0;
    }
    60% {
        transform: scale(1.1) rotate(2deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet and smaller */
@media (max-width: 768px) {
    .main-button {
        font-size: 1.2rem;
        padding: 18px 40px;
    }
    
    .card {
        padding: 30px;
        max-width: 400px;
    }
    
    .card-content h2 {
        font-size: 2rem;
    }
    
    .card-content p {
        font-size: 1rem;
    }
    
    .card-content p:last-child {
        font-size: 1.3rem;
    }
    
    .overlay-text {
        font-size: 2.2rem;
    }
    
    .sleep-emoji {
        font-size: 3.5rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .main-button {
        font-size: 1rem;
        padding: 15px 30px;
    }
    
    .card {
        padding: 25px;
        max-width: 320px;
    }
    
    .card-content h2 {
        font-size: 1.5rem;
    }
    
    .card-content p {
        font-size: 0.9rem;
    }
    
    .card-content p:last-child {
        font-size: 1.1rem;
    }
    
    /* Stack response buttons vertically on mobile */
    .response-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .response-btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .image-container {
        max-width: 100%;
    }
    
    .response-image {
        max-width: 100%;
        border-radius: 10px;
    }
    
    .overlay-text {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }
    
    .sleep-emoji {
        font-size: 3rem;
    }
}
