/* ========================================
   Fun Love Question Website - Styles
   ======================================== */

/* CSS Variables */
:root {
    --primary-pink: #ff6b9d;
    --primary-pink-light: #ff8fb3;
    --primary-pink-dark: #e84a7f;
    --secondary-purple: #9b59b6;
    --accent-yellow: #fff3cd;
    --bg-gradient-start: #ffeef8;
    --bg-gradient-end: #fff0f5;
    --text-dark: #4a3347;
    --text-light: #7a6577;
    --white: #ffffff;
    --shadow-color: rgba(255, 107, 157, 0.3);
    --success-green: #4ade80;
    --heart-red: #ff4757;
}

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

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

body {
    font-family: 'Quicksand', sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 50%, #fce4ec 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
}

/* Floating Hearts Background */
.floating-hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.heart {
    position: absolute;
    font-size: 20px;
    animation: floatUp 6s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) rotate(0deg) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(-100px) rotate(720deg) scale(1);
        opacity: 0;
    }
}

/* Main Container */
.container {
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    box-shadow:
        0 20px 60px var(--shadow-color),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    max-width: 500px;
    width: 90%;
    z-index: 10;
    position: relative;
    animation: containerPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes containerPop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Cat GIF Container */
.cat-container {
    margin-bottom: 25px;
}

.cat-gif {
    width: 180px;
    height: 180px;
    object-fit: contain;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff 0%, #ffeef8 100%);
    padding: 10px;
    box-shadow:
        0 10px 30px rgba(255, 107, 157, 0.2),
        0 0 0 5px rgba(255, 255, 255, 0.8);
    animation: catBounce 2s ease-in-out infinite;
}

@keyframes catBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Question Text */
.question {
    font-family: 'Pacifico', cursive;
    font-size: 2.5rem;
    color: var(--primary-pink);
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(255, 107, 157, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

/* Buttons Container */
.buttons-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    min-height: 80px;
    position: relative;
}

/* Button Styles */
.btn {
    padding: 16px 40px;
    font-family: 'Quicksand', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

/* Yes Button */
.btn-yes {
    background: linear-gradient(135deg, var(--primary-pink) 0%, var(--primary-pink-dark) 100%);
    color: var(--white);
    box-shadow:
        0 8px 25px rgba(255, 107, 157, 0.4),
        0 0 0 0 rgba(255, 107, 157, 0.4);
    animation: yesGlow 1.5s ease-in-out infinite;
}

@keyframes yesGlow {

    0%,
    100% {
        box-shadow:
            0 8px 25px rgba(255, 107, 157, 0.4),
            0 0 0 0 rgba(255, 107, 157, 0.4);
    }

    50% {
        box-shadow:
            0 8px 35px rgba(255, 107, 157, 0.6),
            0 0 0 8px rgba(255, 107, 157, 0.1);
    }
}

.btn-yes:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow:
        0 12px 35px rgba(255, 107, 157, 0.5),
        0 0 0 0 rgba(255, 107, 157, 0.4);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    50%,
    100% {
        left: 100%;
    }
}

/* No Button */
.btn-no {
    background: linear-gradient(135deg, #a0a0a0 0%, #808080 100%);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.1s ease-out;
}

.btn-no:hover {
    transform: scale(1.05);
}

.btn-no.fleeing {
    position: fixed;
    z-index: 1000;
    animation: shake 0.1s ease-in-out;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* Hint Text */
.hint {
    margin-top: 25px;
    color: var(--text-light);
    font-size: 0.95rem;
    font-style: italic;
    opacity: 0.8;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 0.8;
        transform: translateY(0);
    }
}

.hint.scared {
    color: var(--primary-pink);
    animation: scaredText 0.5s ease-in-out;
}

@keyframes scaredText {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* ========================================
   CELEBRATION SECTION
   ======================================== */

.celebration-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    background: linear-gradient(135deg, #fff5f8 0%, #ffe0eb 50%, #ffeef8 100%);
}

.celebration-container.hidden {
    display: none;
}

.celebration-content {
    text-align: center;
    padding: 50px;
    animation: celebrationPop 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes celebrationPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.celebration-gif {
    width: 220px;
    height: 220px;
    object-fit: contain;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff 0%, #ffeef8 100%);
    padding: 15px;
    box-shadow:
        0 15px 50px rgba(255, 107, 157, 0.3),
        0 0 0 8px rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    animation: celebrateBounce 0.6s ease-in-out infinite alternate;
}

@keyframes celebrateBounce {
    0% {
        transform: translateY(0) rotate(-3deg);
    }

    100% {
        transform: translateY(-15px) rotate(3deg);
    }
}

.celebration-text {
    font-family: 'Pacifico', cursive;
    font-size: 3rem;
    color: var(--primary-pink);
    margin-bottom: 20px;
    text-shadow: 3px 3px 6px rgba(255, 107, 157, 0.3);
}

.text-line {
    display: block;
    animation: textWave 0.8s ease-out both;
}

.text-line:nth-child(2) {
    animation-delay: 0.3s;
}

.text-line.highlight {
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--primary-pink), var(--secondary-purple), var(--heart-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes textWave {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.love-message {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 30px;
    animation: fadeIn 1s ease-out 0.8s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Restart Button */
.btn-restart {
    background: linear-gradient(135deg, var(--secondary-purple) 0%, #8e44ad 100%);
    color: var(--white);
    box-shadow: 0 8px 25px rgba(155, 89, 182, 0.4);
    animation: fadeIn 1s ease-out 1s both;
}

.btn-restart:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 12px 35px rgba(155, 89, 182, 0.5);
}

/* Hearts Burst */
.hearts-burst {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.burst-heart {
    position: absolute;
    font-size: 30px;
    animation: burstOut 1.5s ease-out forwards;
    opacity: 0;
}

@keyframes burstOut {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(0);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: var(--end-position) scale(1);
    }
}

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

.confetti-piece {
    position: absolute;
    width: 12px;
    height: 12px;
    top: -20px;
    animation: confettiFall linear forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Growing Yes Button Effect */
.btn-yes.growing {
    animation: growPulse 0.3s ease-out;
}

@keyframes growPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1.1);
    }
}

/* Responsive Design */
@media (max-width: 600px) {
    .container {
        padding: 30px 20px;
        margin: 20px;
    }

    .question {
        font-size: 1.8rem;
    }

    .cat-gif {
        width: 140px;
        height: 140px;
    }

    .btn {
        padding: 14px 30px;
        font-size: 1rem;
    }

    .celebration-text {
        font-size: 2rem;
    }

    .text-line.highlight {
        font-size: 2.5rem;
    }

    .celebration-gif {
        width: 160px;
        height: 160px;
    }
}

/* Scared Cat Animation */
.cat-gif.scared {
    animation: catScared 0.3s ease-in-out;
}

@keyframes catScared {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    25% {
        transform: translateY(-5px) scale(1.05);
    }

    50% {
        transform: translateY(0) scale(0.95);
    }

    75% {
        transform: translateY(-3px) scale(1.02);
    }
}

.footer {
    position: fixed;
    bottom: 10px;
    width: 100%;
    text-align: center;
    color: rgba(0, 0, 0, 0.4);
    font-size: 0.85rem;
    font-family: 'Quicksand', sans-serif;
    z-index: 9999;
    pointer-events: none;
}