/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ===== POPUP OVERLAY ===== */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.popup-card {
    background: white;
    padding: 40px 50px;
    border-radius: 25px;
    text-align: center;
    max-width: 400px;
    animation: popupBounce 0.5s ease-out;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes popupBounce {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    60% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.popup-emoji {
    font-size: 80px;
    margin-bottom: 15px;
    animation: popupShake 0.5s ease-in-out;
}

@keyframes popupShake {

    0%,
    100% {
        transform: rotate(0);
    }

    25% {
        transform: rotate(-10deg);
    }

    75% {
        transform: rotate(10deg);
    }
}

.popup-card h2 {
    font-size: 1.8rem;
    color: #c44569;
    margin-bottom: 10px;
}

.popup-card p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 25px;
}

/* ===== MAIN PAGE ===== */
.main-page {
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 50%, #ff6b6b 100%);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* ===== YES PAGE ===== */
.yes-page {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

#fireworks {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ===== NO PAGE ===== */
.no-page {
    background: linear-gradient(135deg, #2c3e50 0%, #1a1a2e 50%, #34495e 100%);
}

/* ===== CONTAINER ===== */
.container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    z-index: 10;
}

/* ===== CARD ===== */
.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 50px 40px;
    text-align: center;
    max-width: 500px;
    width: 100%;
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    animation: cardPulse 2s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 107, 157, 0.1), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes cardPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

.heart-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: heartbeat 1s ease-in-out infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.1);
    }

    50% {
        transform: scale(1);
    }

    75% {
        transform: scale(1.15);
    }
}

h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.8rem;
    color: #c44569;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
}

/* ===== BUTTONS ===== */
.buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.btn {
    padding: 18px 50px;
    font-size: 1.3rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
}

.btn-yes {
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8a8a 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.4);
    animation: yesGlow 2s ease-in-out infinite;
}

@keyframes yesGlow {

    0%,
    100% {
        box-shadow: 0 10px 30px rgba(255, 107, 157, 0.4);
    }

    50% {
        box-shadow: 0 15px 50px rgba(255, 107, 157, 0.6);
    }
}

.btn-yes:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 50px rgba(255, 107, 157, 0.6);
}

.btn-no {
    background: white !important;
    color: #333 !important;
    border: 3px solid #c44569 !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4) !important;
}

.btn-no:hover {
    background: #fff5f7 !important;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5) !important;
}

/* ===== SUCCESS PAGE ===== */
.success-card {
    background: rgba(255, 255, 255, 0.95);
    animation: celebration 0.5s ease-out;
}

@keyframes celebration {
    0% {
        transform: scale(0.5) rotate(-10deg);
        opacity: 0;
    }

    50% {
        transform: scale(1.1) rotate(5deg);
    }

    100% {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

.rainbow-text {
    font-size: 3rem;
    background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3, #ff6b6b);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbow 2s linear infinite;
}

@keyframes rainbow {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

.success-card h2 {
    font-size: 1.8rem;
    color: #c44569;
    margin: 15px 0;
}

.love-message {
    font-size: 1.3rem;
    color: #ff6b9d;
    margin-bottom: 30px;
}

.cat-gif {
    margin: 30px 0;
}

.cat-image {
    max-width: 280px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border: 5px solid #ff6b9d;
}

.cat-caption {
    margin-top: 15px;
    font-size: 1.2rem;
    color: #666;
}

.hearts-explosion {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 2rem;
    margin: 20px 0;
}

.hearts-explosion span {
    animation: bounce 0.5s ease infinite;
}

.hearts-explosion span:nth-child(1) {
    animation-delay: 0s;
}

.hearts-explosion span:nth-child(2) {
    animation-delay: 0.1s;
}

.hearts-explosion span:nth-child(3) {
    animation-delay: 0.2s;
}

.hearts-explosion span:nth-child(4) {
    animation-delay: 0.3s;
}

.hearts-explosion span:nth-child(5) {
    animation-delay: 0.4s;
}

.hearts-explosion span:nth-child(6) {
    animation-delay: 0.5s;
}

.hearts-explosion span:nth-child(7) {
    animation-delay: 0.6s;
}

.hearts-explosion span:nth-child(8) {
    animation-delay: 0.7s;
}

.hearts-explosion span:nth-child(9) {
    animation-delay: 0.8s;
}

.hearts-explosion span:nth-child(10) {
    animation-delay: 0.9s;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.btn-back {
    background: linear-gradient(135deg, #a8e6cf 0%, #88d8b0 100%);
    color: #2d5a3d;
    margin-top: 20px;
    font-size: 1rem;
}

.btn-back:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(168, 230, 207, 0.5);
}

/* ===== REJECTION PAGE ===== */
.rejection-card {
    background: rgba(255, 255, 255, 0.95);
}

.sad-emoji {
    font-size: 80px;
    margin-bottom: 20px;
    animation: sadShake 2s ease-in-out infinite;
}

@keyframes sadShake {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-5deg);
    }

    75% {
        transform: rotate(5deg);
    }
}

.rejection-card h1 {
    color: #666;
}

.glitch {
    font-size: 1.5rem;
    color: #e74c3c;
    position: relative;
    animation: glitch 1s infinite;
}

@keyframes glitch {

    0%,
    90%,
    100% {
        transform: translate(0);
    }

    92% {
        transform: translate(-2px, 2px);
    }

    94% {
        transform: translate(2px, -2px);
    }

    96% {
        transform: translate(-2px, -2px);
    }

    98% {
        transform: translate(2px, 2px);
    }
}

.error-message {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    color: white;
    padding: 20px;
    border-radius: 15px;
    margin: 25px 0;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

.options-box {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    margin: 25px 0;
    text-align: left;
}

.options-box h3 {
    color: #c44569;
    margin-bottom: 15px;
    text-align: center;
}

.options-box ul {
    list-style: none;
}

.options-box li {
    padding: 8px 0;
    font-size: 1.1rem;
}

.crying-cat {
    margin: 25px 0;
}

.sad-cat-image {
    max-width: 200px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-try-again {
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8a8a 100%);
    color: white;
    font-size: 1.1rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.btn-try-again:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(255, 107, 157, 0.5);
}

.hint {
    margin-top: 25px;
    color: #888;
    font-style: italic;
}

.shake {
    animation: shakeCard 0.5s ease-in-out;
}

@keyframes shakeCard {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-10px);
    }

    40% {
        transform: translateX(10px);
    }

    60% {
        transform: translateX(-10px);
    }

    80% {
        transform: translateX(10px);
    }
}

/* ===== FLOATING ELEMENTS ===== */
.floating-heart {
    position: fixed;
    bottom: -50px;
    animation: floatUp linear forwards;
    pointer-events: none;
    z-index: 1;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(-110vh) rotate(360deg);
        opacity: 0;
    }
}

.floating-tear {
    position: fixed;
    top: -50px;
    animation: tearFall linear forwards;
    pointer-events: none;
    z-index: 1;
    font-size: 25px;
}

@keyframes tearFall {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(110vh);
        opacity: 0;
    }
}

.confetti {
    position: fixed;
    top: -20px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: confettiFall linear forwards;
    pointer-events: none;
    z-index: 5;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(110vh) rotate(720deg);
        opacity: 0;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .card {
        padding: 35px 25px;
        margin: 15px;
    }

    h1 {
        font-size: 2rem;
    }

    .rainbow-text {
        font-size: 2.2rem;
    }

    .btn {
        padding: 15px 35px;
        font-size: 1.1rem;
    }

    .heart-icon,
    .sad-emoji {
        font-size: 60px;
    }

    .cat-image {
        max-width: 220px;
    }

    .sad-cat-image {
        max-width: 160px;
    }
}