/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.container {
    text-align: center;
    position: relative;
    width: 100%;
    max-width: 800px;
    padding: 20px;
    z-index: 10;
}

/* Question Text */
.question {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #fff;
    margin-bottom: 60px;
    text-shadow: 0 4px 20px rgba(255, 20, 147, 0.5);
    animation: fadeIn 1s ease-in;
    font-weight: 600;
}

/* Buttons Container */
.buttons-container {
    display: flex;
    gap: 100px; /* Increased from 40px to 100px for more space */
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 20;
}

/* Base Button Styles */
.btn {
    padding: 20px 50px;
    font-size: 1.8rem;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    overflow: visible;
    min-width: 150px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.btn-text {
    position: relative;
    z-index: 2;
}

/* YES Button */
.btn-yes {
    background: linear-gradient(135deg, #ff6b9d 0%, #ff1744 50%, #ff4081 100%);
    color: white;
    animation: heartbeat 1.5s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(255, 20, 147, 0.6);
}

.btn-yes:hover {
    transform: scale(1.1);
    box-shadow: 0 0 50px rgba(255, 20, 147, 0.9);
}

.btn-yes.powered-up {
    animation: powerUp 0.5s ease-in-out;
    box-shadow: 0 0 60px rgba(255, 20, 147, 1);
    transform: scale(1.2);
}

/* Cupid Wings */
.cupid-wings {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 3;
}

.btn-yes.powered-up .cupid-wings {
    opacity: 1;
    animation: wingFlap 0.3s ease-in-out 3;
}

/* NO Button */
.btn-no {
    background: linear-gradient(135deg, #424242 0%, #616161 50%, #757575 100%);
    color: white;
    position: relative;
    transition: transform 0.2s ease;
}

.btn-no:hover {
    transform: translateY(-5px);
}

.btn-no.shaking {
    animation: shakeGentle 0.8s ease-in-out infinite;
}

.btn-no.cracking {
    position: relative;
}

.btn-no.cracking::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50px;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(255, 0, 0, 0.3) 30%, rgba(255, 0, 0, 0.3) 35%, transparent 35%),
        linear-gradient(-45deg, transparent 30%, rgba(255, 0, 0, 0.3) 30%, rgba(255, 0, 0, 0.3) 35%, transparent 35%);
    animation: crack 0.3s ease-in-out;
}

.btn-no.exploding {
    animation: explode 1s ease-out forwards;
}

/* Tooltip */
.tooltip {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    white-space: nowrap;
}

.btn-no:hover .tooltip {
    opacity: 1;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(5px);
}

.overlay.active {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.system-text {
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    text-align: center;
    text-shadow: 0 0 10px #00ff00;
    line-height: 1.8;
}

/* Battle Text */
.battle-text {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
    z-index: 200;
    text-align: center;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
}

.battle-text.active {
    opacity: 1;
}

/* Projectiles Container */
.projectiles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 150;
}

.projectile {
    position: absolute;
    font-size: 2rem;
    pointer-events: none;
}

/* Confetti */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
    overflow: hidden;
}

.confetti {
    position: absolute;
    font-size: 1.5rem;
    animation: confettiFall linear forwards;
}

/* Final Message */
.final-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 0 4px 20px rgba(255, 20, 147, 0.8);
    z-index: 300;
    opacity: 0;
    pointer-events: none;
    text-align: center;
}

.final-message.active {
    animation: fadeInUp 1s ease-out forwards;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes powerUp {
    0% {
        transform: scale(1);
        box-shadow: 0 0 30px rgba(255, 20, 147, 0.6);
    }
    50% {
        transform: scale(1.3);
        box-shadow: 0 0 80px rgba(255, 20, 147, 1);
    }
    100% {
        transform: scale(1.2);
        box-shadow: 0 0 60px rgba(255, 20, 147, 1);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-4px) rotate(-1deg);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(4px) rotate(1deg);
    }
}

@keyframes shakeGentle {
    0%, 100% {
        transform: translateX(0);
    }
    25%, 75% {
        transform: translateX(-3px);
    }
    50% {
        transform: translateX(3px);
    }
}

@keyframes crack {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes explode {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.8;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes wingFlap {
    0%, 100% {
        transform: translateX(-50%) rotate(0deg);
    }
    50% {
        transform: translateX(-50%) rotate(-10deg);
    }
}

@keyframes heartbreakFly {
    from {
        opacity: 1;
    }
    to {
        opacity: 0.3;
    }
}

@keyframes arrowFly {
    from {
        opacity: 1;
    }
    to {
        opacity: 0.8;
    }
}

@keyframes confettiFall {
    from {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }
    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes screenFlash {
    0%, 100% {
        background: rgba(0, 0, 0, 0.7);
    }
    50% {
        background: rgba(255, 255, 255, 0.9);
    }
}

@keyframes heartbreakPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        filter: drop-shadow(0 0 20px rgba(255, 0, 0, 1)) drop-shadow(0 0 40px rgba(255, 0, 0, 0.6));
    }
    50% {
        transform: translate(-50%, -50%) scale(1.15);
        filter: drop-shadow(0 0 30px rgba(255, 0, 0, 1)) drop-shadow(0 0 60px rgba(255, 0, 0, 0.8));
    }
}

.heartbreak-projectile {
    will-change: transform, opacity;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .question {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }
    
    .buttons-container {
        flex-direction: column;
        gap: 40px; /* Increased from 20px for better mobile spacing */
    }
    
    .btn {
        padding: 15px 40px;
        font-size: 1.5rem;
        min-width: 120px;
    }
    
    .battle-text {
        font-size: 1.3rem;
        top: 15%;
    }
    
    .final-message {
        font-size: 2rem;
    }
}
