@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Quicksand', sans-serif;
    background: linear-gradient(135deg, #fce4ec, #f8bbd9, #f3e5f5);
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== VIEWS ===== */
.view {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
    padding: 20px;
    text-align: center;
}

.view.active {
    opacity: 1;
    pointer-events: all;
}

/* ===== FLOATING PAWS BACKGROUND ===== */
.floating-paws {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-paw {
    position: absolute;
    font-size: 20px;
    opacity: 0.15;
    animation: floatPaw 15s infinite linear;
}

@keyframes floatPaw {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.15;
    }
    90% {
        opacity: 0.15;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* ===== VIEW 1: THE KNOCK ===== */
.paw-container {
    margin-bottom: 30px;
}

.paw {
    font-size: 80px;
    animation: pawTap 1.5s ease-in-out infinite;
}

@keyframes pawTap {
    0%, 100% { transform: translateY(0) rotate(-10deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

.typewriter {
    font-size: 2.5rem;
    color: #d81b60;
    margin-bottom: 15px;
    min-height: 3.5rem;
}

.subtitle {
    font-size: 1.2rem;
    color: #8e24aa;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 2s both;
}

/* ===== BUTTONS ===== */
.btn-cute {
    background: linear-gradient(135deg, #f06292, #e91e63);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.4);
    animation: fadeInUp 1s ease 2.5s both;
    z-index: 10;
}

.btn-cute:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(233, 30, 99, 0.6);
}

.btn-cute:active {
    transform: scale(0.95);
}

/* ===== VIEW 2: BUILD-UP ===== */
.cat-peek {
    position: fixed;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    transition: bottom 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.cat-peek.visible {
    bottom: -10px;
}

.cat-emoji {
    font-size: 100px;
}

.message-box {
    background: white;
    border-radius: 20px;
    padding: 30px 40px;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.message-box::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid white;
}

.buildup-text {
    font-size: 1.4rem;
    color: #6a1b9a;
    line-height: 1.6;
    font-weight: 600;
}

/* ===== VIEW 3: THE QUESTION ===== */
.question-cat {
    font-size: 80px;
    margin-bottom: 20px;
    animation: catBounce 2s ease-in-out infinite;
}

@keyframes catBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.question-text {
    font-size: 2.2rem;
    color: #d81b60;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.button-container {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 80px;
    min-width: 400px;
    z-index: 10;
}

.btn-yes {
    background: linear-gradient(135deg, #66bb6a, #43a047);
    color: white;
    border: none;
    padding: 15px 35px;
    font-size: 1.2rem;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
    z-index: 10;
}

.btn-yes:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(76, 175, 80, 0.6);
}

.btn-no {
    background: linear-gradient(135deg, #ef5350, #e53935);
    color: white;
    border: none;
    padding: 15px 35px;
    font-size: 1.2rem;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.4);
    z-index: 5;
    transition: left 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
                top 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 0.4s ease,
                opacity 0.4s ease;
}

.btn-no.scared {
    animation: scaredCat 0.4s ease;
}

@keyframes scaredCat {
    0% { transform: scale(1) rotate(0deg); }
    20% { transform: scale(1.2) rotate(-10deg); }
    40% { transform: scale(0.8) rotate(10deg); }
    60% { transform: scale(1.1) rotate(-5deg); }
    80% { transform: scale(0.9) rotate(5deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.btn-no:hover {
    transform: scale(0.9);
}

.no-counter {
    margin-top: 30px;
    font-size: 1rem;
    color: #8e24aa;
    font-weight: 600;
}

.hidden {
    display: none !important;
}

/* ===== VIEW 4: SHOCKED REACTION ===== */
#view4 {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9, #a5d6a7);
}

#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.celebration {
    z-index: 10;
    position: relative;
}

.happy-cat {
    font-size: 100px;
    animation: happySpin 2s ease-in-out infinite;
}

@keyframes happySpin {
    0%, 100% { transform: rotate(-5deg) scale(1); }
    25% { transform: rotate(5deg) scale(1.1); }
    50% { transform: rotate(-5deg) scale(1); }
    75% { transform: rotate(5deg) scale(1.1); }
}

.celebrate-text {
    font-size: 2rem;
    color: #2e7d32;
    margin: 20px 0;
}

.celebrate-sub {
    font-size: 1.3rem;
    color: #558b2f;
    margin-bottom: 30px;
}

.dancing-cats {
    display: flex;
    gap: 10px;
    justify-content: center;
    font-size: 2.5rem;
}

.dance-cat {
    animation: dance 0.6s ease-in-out infinite alternate;
}

.dance-cat:nth-child(2) { animation-delay: 0.1s; }
.dance-cat:nth-child(3) { animation-delay: 0.2s; }
.dance-cat:nth-child(4) { animation-delay: 0.3s; }
.dance-cat:nth-child(5) { animation-delay: 0.4s; }

@keyframes dance {
    0% { transform: translateY(0) rotate(-5deg); }
    100% { transform: translateY(-15px) rotate(5deg); }
}

/* ===== VIEW 5: VIBE PICKER ===== */
#view5 {
    background: linear-gradient(135deg, #e8eaf6, #c5cae9, #e1bee7);
}

.vibe-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    max-width: 420px;
    margin: 0 auto 30px;
}

.vibe-btn {
    background: white;
    border: 3px solid #b39ddb;
    padding: 16px 14px;
    font-size: 1.05rem;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #4a148c;
}

.vibe-btn:hover {
    background: #b39ddb;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(179, 157, 219, 0.4);
}

.vibe-btn.selected {
    background: #7c4dff;
    color: white;
    border-color: #651fff;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(124, 77, 255, 0.5);
}

/* ===== VIEW 6: DATE PICKER ===== */
#view6 {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2, #ffcc80);
}

.date-picker-section {
    z-index: 10;
    position: relative;
}

.date-subtitle {
    font-size: 1.1rem;
    color: #e65100;
    margin-bottom: 30px;
}

.date-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto 30px;
}

.date-btn {
    background: white;
    border: 3px solid #ffab40;
    padding: 18px 20px;
    font-size: 1.1rem;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #e65100;
}

.date-btn:hover {
    background: #ffab40;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 171, 64, 0.4);
}

.date-btn.selected {
    background: #ff9100;
    color: white;
    border-color: #ff6d00;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 145, 0, 0.5);
}

.date-confirmed-text {
    font-size: 1.2rem;
    color: #e65100;
    margin-bottom: 20px;
    font-weight: 600;
}

/* ===== VIEW 7: FINAL ===== */
#view7 {
    background: linear-gradient(135deg, #fce4ec, #f8bbd9, #f3e5f5);
}

/* ===== UTILITY ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .typewriter {
        font-size: 1.8rem;
    }
    .question-text {
        font-size: 1.6rem;
    }
    .celebrate-text {
        font-size: 1.4rem;
    }
    .button-container {
        min-width: 300px;
    }
    .message-box {
        padding: 20px 25px;
        margin: 0 15px;
    }
    .buildup-text {
        font-size: 1.1rem;
    }
    .date-options {
        grid-template-columns: 1fr;
        max-width: 280px;
    }
    .vibe-options {
        grid-template-columns: 1fr;
        max-width: 280px;
    }
    .date-btn, .vibe-btn {
        padding: 15px 18px;
        font-size: 1rem;
    }
}
