/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700&family=Pacifico&display=swap');

:root {
    --primary-color: #ff4d6d;
    --secondary-color: #ff8fa3;
    --accent-color: #fff0f3;
    --text-color: #590d22;
}

body {
    font-family: 'Nunito', sans-serif;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Prevent scrollbars from floating hearts */
    position: relative;
    color: var(--text-color);
}

/* Background Floating Hearts */
.bg-hearts {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.heart-bg {
    position: absolute;
    bottom: -100px;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.4);
    transform: rotate(45deg);
    animation: float 15s infinite linear;
}

.heart-bg::before,
.heart-bg::after {
    content: "";
    position: absolute;
    width: 40px;
    height: 40px;
    background-color: inherit;
    border-radius: 50%;
}

.heart-bg::before {
    top: -20px;
    left: 0;
}

.heart-bg::after {
    top: 0;
    left: -20px;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(45deg) scale(0.8);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    100% {
        transform: translateY(-120vh) rotate(45deg) scale(1.2);
        opacity: 0;
    }
}

/* Glassmorphism Card */
.glass-card {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 3rem;
    max-width: 600px;
    width: 90%;
    text-align: center;
    transition: transform 0.3s ease;
    position: relative;
    /* Positioning context for the "No" button */
}

.glass-card:hover {
    transform: translateY(-5px);
}

h1 {
    font-family: 'Pacifico', cursive;
    color: var(--primary-color);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
}

p.lead {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    font-weight: 700;
}

/* Custom Buttons */
.btn-valentin {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 77, 109, 0.3);
}

.btn-yes {
    background-color: var(--primary-color);
    color: white;
    font-size: 1.2rem;
}

.btn-yes:hover {
    background-color: #d93d59;
    transform: scale(1.05);
    color: white;
}

.btn-no {
    background-color: white;
    color: var(--primary-color);
    font-size: 1rem;
}

.btn-no:hover {
    background-color: #ffeef2;
    color: var(--primary-color);
}

/* Hidden Invitation Section */
#invitation {
    margin-top: 2rem;
}

.restaurant-details {
    background: rgba(255, 255, 255, 0.6);
    padding: 1.5rem;
    border-radius: 15px;
    margin-top: 1rem;
    display: inline-block;
    width: 100%;
}

.location-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Utility Animations */
.heart-beat {
    animation: heartbeat 1.5s infinite;
    display: inline-block;
    color: var(--primary-color);
}

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

    14% {
        transform: scale(1.3);
    }

    28% {
        transform: scale(1);
    }

    42% {
        transform: scale(1.3);
    }

    70% {
        transform: scale(1);
    }
}

.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 1s ease-in;
}

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

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

/* Menu Button */
.btn-menu {
    background-color: var(--primary-color);
    color: white;
    font-size: 1.1rem;
    padding: 10px 25px;
}

.btn-menu:hover {
    background-color: #d93d59;
    transform: scale(1.05);
    color: white;
}

/* Menu Modal Styles */
.menu-modal {
    background: linear-gradient(135deg, rgba(255, 240, 243, 0.98) 0%, rgba(254, 207, 239, 0.98) 50%, rgba(255, 240, 243, 0.98) 100%);
    border-radius: 25px;
    border: 3px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 15px 50px 0 rgba(255, 77, 109, 0.4);
    overflow: hidden;
}

/* Modal Header with Decoration */
.menu-modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 2rem 2rem 1.5rem;
    position: relative;
}

.menu-header-decoration {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.heart-deco {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.5rem;
    animation: heartbeat 1.5s infinite;
}

.utensils-deco {
    color: white;
    font-size: 2rem;
}

.menu-modal .modal-title {
    font-family: 'Pacifico', cursive;
    color: white;
    font-size: 2.2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: 0.5rem;
}

.menu-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    font-style: italic;
    text-align: center;
    margin: 0;
}

.btn-close-custom {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-close-custom:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg);
}

.btn-close-custom i {
    color: white;
    font-size: 1.2rem;
}

.menu-modal .modal-body {
    padding: 2rem 2.5rem 2.5rem;
}

/* Menu Sections */
.menu-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.menu-section:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 77, 109, 0.2);
}

.menu-icon-wrapper {
    text-align: center;
    margin-bottom: 0.8rem;
}

.menu-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    animation: float-icon 3s ease-in-out infinite;
}

@keyframes float-icon {

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

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

.menu-title {
    font-family: 'Nunito', sans-serif;
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
}

.menu-description {
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-color);
    font-style: italic;
    opacity: 0.8;
    margin-bottom: 1rem;
}

/* Choice Options */
.menu-choice {
    margin-top: 1rem;
}

.choice-option {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.choice-option:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateX(5px);
}

.choice-icon {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.menu-item {
    font-size: 1.05rem;
    color: var(--text-color);
    margin: 0;
    text-align: left;
    font-weight: 600;
    line-height: 1.5;
}

.menu-item-or {
    text-align: center;
    font-style: italic;
    color: var(--primary-color);
    margin: 0.8rem 0;
    font-size: 1rem;
    font-weight: 600;
}

/* Surprise Box */
.surprise-box {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 77, 109, 0.1), rgba(255, 143, 163, 0.1));
    border-radius: 12px;
    border: 2px dashed var(--secondary-color);
}

.menu-surprise {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.surprise-hint {
    font-size: 0.9rem;
    color: var(--text-color);
    font-style: italic;
    opacity: 0.8;
    margin: 0;
}

.menu-divider {
    height: 2px;
    background: linear-gradient(to right, transparent, var(--secondary-color), transparent);
    margin: 1.2rem auto 0;
    width: 60%;
}

/* Footer */
.menu-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 3px solid rgba(255, 143, 163, 0.3);
    text-align: center;
}

.homemade-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 700;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.homemade-badge i {
    animation: heartbeat 1.5s infinite;
}

/* Reservation Notice */
.reservation-notice {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 5px 20px rgba(255, 77, 109, 0.4);
    animation: pulse-notice 2s ease-in-out infinite;
}

.reservation-notice i {
    font-size: 1.3rem;
}

.reservation-notice strong {
    font-weight: 800;
    font-size: 1.2rem;
}

@keyframes pulse-notice {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 5px 20px rgba(255, 77, 109, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 30px rgba(255, 77, 109, 0.6);
    }
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
    body {
        overflow-y: auto;
        overflow-x: hidden;
    }

    .glass-card {
        padding: 2rem 1.5rem;
        width: 95%;
        margin: 1rem auto;
    }

    h1 {
        font-size: 2.5rem;
    }

    p.lead {
        font-size: 1.1rem;
    }

    .btn-valentin {
        padding: 10px 20px;
        font-size: 1rem;
    }

    /* Modal Responsive */
    .modal-dialog {
        margin: 0.5rem;
        max-height: calc(100vh - 1rem);
    }

    .menu-modal {
        max-height: calc(100vh - 1rem);
        display: flex;
        flex-direction: column;
    }

    .menu-modal-header {
        padding: 1.5rem 1rem 1rem;
        flex-shrink: 0;
    }

    .menu-modal .modal-title {
        font-size: 1.6rem;
        line-height: 1.3;
    }

    .menu-subtitle {
        font-size: 0.9rem;
    }

    .menu-modal .modal-body {
        padding: 1.5rem 1rem;
        overflow-y: auto;
        overflow-x: hidden;
        max-height: calc(100vh - 200px);
        -webkit-overflow-scrolling: touch;
    }

    .menu-section {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .menu-section:hover {
        transform: none;
    }

    .menu-icon {
        font-size: 2rem;
    }

    .menu-title {
        font-size: 1.4rem;
    }

    .menu-description {
        font-size: 0.85rem;
    }

    .choice-option {
        padding: 0.6rem;
        gap: 0.6rem;
    }

    .choice-option:hover {
        transform: none;
    }

    .menu-item {
        font-size: 0.95rem;
    }

    .menu-item-or {
        font-size: 0.9rem;
        margin: 0.5rem 0;
    }

    .surprise-box {
        padding: 1rem;
    }

    .menu-surprise {
        font-size: 1.2rem;
    }

    .surprise-hint {
        font-size: 0.85rem;
    }

    .homemade-badge {
        font-size: 1.1rem;
        padding: 0.6rem 1.2rem;
        margin-bottom: 1rem;
    }

    .reservation-notice {
        font-size: 0.95rem;
        padding: 0.8rem 1.5rem;
        flex-wrap: wrap;
        text-align: center;
    }

    .reservation-notice strong {
        font-size: 1.05rem;
    }

    .btn-close-custom {
        width: 30px;
        height: 30px;
    }

    .btn-close-custom i {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .glass-card {
        padding: 1.5rem 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    p.lead {
        font-size: 1rem;
    }

    .d-flex.gap-4 {
        gap: 1rem !important;
        flex-direction: column;
    }

    .btn-valentin {
        width: 100%;
    }

    .menu-modal .modal-title {
        font-size: 1.4rem;
    }

    .menu-title {
        font-size: 1.2rem;
    }

    .menu-item {
        font-size: 0.9rem;
    }

    .homemade-badge {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }

    .reservation-notice {
        font-size: 0.85rem;
        padding: 0.7rem 1.2rem;
    }

    .reservation-notice strong {
        font-size: 0.95rem;
    }
}