/* ============================================
   💕 Valentine's Day Theme for Qeta 💕
   ============================================ */

:root {
    --pink-dark: #e91e63;
    --pink-main: #ff4081;
    --pink-light: #ff80ab;
    --pink-soft: #fce4ec;
    --pink-pastel: #fff0f5;
    --red-soft: #ff6b6b;
    --white: #ffffff;
    --shadow-pink: rgba(233, 30, 99, 0.3);
    --shadow-soft: rgba(0, 0, 0, 0.1);
}

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

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

body {
    font-family: 'Nunito', sans-serif;
    background: linear-gradient(135deg, var(--pink-pastel) 0%, var(--pink-soft) 50%, #ffe6f0 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* ============================================
   Floating Hearts Background
   ============================================ */

.hearts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-heart {
    position: absolute;
    font-size: 1.5rem;
    animation: floatUp 8s ease-in infinite;
    opacity: 0.6;
    user-select: none;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) rotate(0deg) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) rotate(360deg) scale(0.5);
        opacity: 0;
    }
}

/* ============================================
   Main Screens
   ============================================ */

.landing-screen,
.success-screen,
.final-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 10;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.9);
}

/* ============================================
   Card Styles
   ============================================ */

.card {
    background: var(--white);
    border-radius: 30px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 
        0 20px 60px var(--shadow-pink),
        0 10px 30px var(--shadow-soft);
    max-width: 420px;
    width: 100%;
    position: relative;
    animation: cardFloat 3s ease-in-out infinite;
}

@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ============================================
   Sparkles
   ============================================ */

.sparkle {
    position: absolute;
    font-size: 1.5rem;
    animation: sparkle 2s ease-in-out infinite;
}

.sparkle-1 {
    top: -10px;
    left: 20px;
    animation-delay: 0s;
}

.sparkle-2 {
    top: 20px;
    right: 15px;
    animation-delay: 0.5s;
}

.sparkle-3 {
    bottom: 30px;
    left: 15px;
    animation-delay: 1s;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.3) rotate(20deg);
    }
}

/* ============================================
   Typography
   ============================================ */

.title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--pink-dark);
    line-height: 1.4;
    margin-bottom: 15px;
}

.name {
    display: inline-block;
    background: linear-gradient(135deg, var(--pink-main), var(--red-soft));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: nameGlow 2s ease-in-out infinite;
}

@keyframes nameGlow {
    0%, 100% {
        filter: drop-shadow(0 0 5px var(--pink-light));
    }
    50% {
        filter: drop-shadow(0 0 15px var(--pink-main));
    }
}

.heart-icon {
    display: inline-block;
    animation: heartBeat 1s ease-in-out infinite;
}

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

.subtitle {
    font-size: 1.1rem;
    color: var(--pink-light);
    margin-bottom: 25px;
    font-weight: 600;
    min-height: 1.5em;
    transition: all 0.3s ease;
}

/* ============================================
   Floating Hearts in Card
   ============================================ */

.floating-hearts {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.floating-hearts span {
    font-size: 2rem;
    animation: floatHeartCard 2s ease-in-out infinite;
}

.floating-hearts span:nth-child(1) {
    animation-delay: 0s;
}

.floating-hearts span:nth-child(2) {
    animation-delay: 0.3s;
}

.floating-hearts span:nth-child(3) {
    animation-delay: 0.6s;
}

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

/* ============================================
   Buttons
   ============================================ */

.buttons-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.btn {
    border: none;
    border-radius: 50px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn-yes {
    background: linear-gradient(135deg, var(--pink-main), var(--pink-dark));
    color: var(--white);
    padding: 18px 45px;
    font-size: 1.3rem;
    box-shadow: 0 8px 25px var(--shadow-pink);
    animation: yesGlow 2s ease-in-out infinite;
}

@keyframes yesGlow {
    0%, 100% {
        box-shadow: 0 8px 25px var(--shadow-pink);
    }
    50% {
        box-shadow: 0 8px 40px var(--shadow-pink), 0 0 30px var(--pink-light);
    }
}

.btn-yes:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 12px 35px var(--shadow-pink);
}

.btn-yes:active {
    transform: scale(1.05);
}

.btn-no {
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    color: #999;
    padding: 12px 25px;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px var(--shadow-soft);
    transition: all 0.3s ease;
}

.btn-no:hover {
    background: linear-gradient(135deg, #e8e8e8, #d8d8d8);
}

/* ============================================
   Success Screen
   ============================================ */

.success-screen {
    background: linear-gradient(135deg, var(--pink-pastel) 0%, #fff5f8 50%, var(--pink-soft) 100%);
}

.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    animation: confettiFall 3s ease-out forwards;
}

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

.success-card {
    background: var(--white);
    border-radius: 30px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 
        0 20px 60px var(--shadow-pink),
        0 10px 30px var(--shadow-soft);
    max-width: 420px;
    width: 100%;
    animation: successPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes successPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-hearts {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.success-hearts span {
    font-size: 2.5rem;
    animation: successHeartBounce 0.6s ease-out forwards;
}

.success-hearts span:nth-child(1) {
    animation-delay: 0.2s;
}

.success-hearts span:nth-child(2) {
    animation-delay: 0.4s;
}

.success-hearts span:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes successHeartBounce {
    0% {
        transform: scale(0) rotate(-20deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.3) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.success-title {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--pink-main), var(--red-soft), var(--pink-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbow 3s ease infinite;
    background-size: 200% 200%;
}

@keyframes rainbow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.success-subtitle {
    font-size: 2rem;
    margin-bottom: 15px;
    animation: heartBeat 1s ease-in-out infinite;
}

.success-message {
    font-size: 1.3rem;
    color: var(--pink-dark);
    font-weight: 700;
    margin-bottom: 20px;
}

.cute-gif-container {
    margin: 20px auto;
    max-width: 200px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px var(--shadow-pink);
    animation: gifBounce 2s ease-in-out infinite;
}

.cute-gif-container .tenor-gif-embed {
    border-radius: 20px;
}

@keyframes gifBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-8px) scale(1.02);
    }
}

.love-text {
    font-size: 1.1rem;
    color: var(--pink-light);
    margin-bottom: 25px;
    font-weight: 600;
}

.btn-love {
    background: linear-gradient(135deg, var(--pink-main), var(--red-soft));
    color: var(--white);
    padding: 18px 40px;
    font-size: 1.2rem;
    box-shadow: 0 8px 25px var(--shadow-pink);
}

.btn-love:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 12px 35px var(--shadow-pink);
}

/* ============================================
   Final Screen
   ============================================ */

.final-screen {
    background: linear-gradient(135deg, #fff0f5, var(--pink-soft), #ffe6f0);
}

.final-content {
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.mega-heart {
    font-size: 8rem;
    animation: megaHeartPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 30px var(--pink-main));
}

@keyframes megaHeartPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 30px var(--pink-main));
    }
    50% {
        transform: scale(1.15);
        filter: drop-shadow(0 0 50px var(--pink-dark));
    }
}

.final-content h1 {
    font-size: 2.5rem;
    color: var(--pink-dark);
    margin: 20px 0 10px;
    font-weight: 800;
}

.final-content p {
    font-size: 1.3rem;
    color: var(--pink-main);
    font-weight: 600;
}

.infinite-hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

/* ============================================
   Mobile Responsiveness
   ============================================ */

@media (max-width: 480px) {
    .card,
    .success-card {
        padding: 30px 20px;
        border-radius: 25px;
        margin: 10px;
    }

    .title {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .btn-yes {
        padding: 15px 35px;
        font-size: 1.1rem;
    }

    .btn-no {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

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

    .success-message {
        font-size: 1.1rem;
    }

    .big-heart {
        font-size: 4rem;
    }

    .mega-heart {
        font-size: 6rem;
    }

    .final-content h1 {
        font-size: 2rem;
    }

    .floating-hearts span {
        font-size: 1.5rem;
    }
}

/* ============================================
   Touch Device Optimizations
   ============================================ */

@media (hover: none) {
    .btn:hover {
        transform: none;
    }

    .btn-yes:active {
        transform: scale(1.05);
    }

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

/* ============================================
   Special Effects
   ============================================ */

/* Heart cursor effect */
body {
    cursor: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'><text y='20' font-size='20'>💕</text></svg>") 12 12, auto;
}

/* Shake animation for NO button when hovered */
.btn-no.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    20% {
        transform: translateX(-5px);
    }
    40% {
        transform: translateX(5px);
    }
    60% {
        transform: translateX(-5px);
    }
    80% {
        transform: translateX(5px);
    }
}

/* Pulse animation for text changes */
.subtitle.pulse {
    animation: textPulse 0.3s ease-out;
}

@keyframes textPulse {
    0% {
        transform: scale(0.95);
        opacity: 0.5;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

