/* Main CSS - Base styles and layout with romantic background */

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

body {
    font-family: 'Georgia', serif;
    /* Romantic background image */
    background-image: url('../assets/images/bg_1080x1920.avif');
    background-position: center bottom;
    /* Shows roses */
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    /* Fallback gradient if image fails to load */
    background-color: #1a0000;

    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    overflow-x: hidden;
    position: relative;
}

/* Dark overlay for better text readability */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
            rgba(26, 0, 0, 0.3) 0%,
            rgba(45, 10, 10, 0.5) 50%,
            rgba(26, 0, 0, 0.6) 100%);
    z-index: 0;
    pointer-events: none;
}

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

.heart-float {
    position: absolute;
    font-size: 20px;
    color: rgba(255, 100, 100, 0.4);
    animation: float-up 15s infinite;
    text-shadow: 0 0 10px rgba(255, 100, 100, 0.5);
}

@keyframes float-up {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    90% {
        opacity: 0.8;
    }

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

.container {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1000px;
    width: 90%;
}

h1 {
    font-size: 4rem;
    margin-bottom: 10px;
    font-weight: normal;
    letter-spacing: 2px;
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(255, 71, 87, 0.3);
}

h2 {
    margin-bottom: 25px;
    font-size: 2rem;
    color: #eee;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Input fields */
input {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 1.1rem;
    font-family: 'Georgia', serif;
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    border-color: #ff4757;
    background: rgba(0, 0, 0, 0.7);
    box-shadow: 0 0 20px rgba(255, 71, 87, 0.3);
}

input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Menu box with glassmorphism */
.menu-box {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    /* Match the max-width of .ss-lb-list */
    max-width: 680px;
    box-sizing: border-box;
    margin: 0 auto;
}

.menu-box .btn {
    width: 100%;
    margin: 0;
    padding: 16px;
    font-size: 1.1rem;
}

.hidden {
    display: none !important;
}

/* Utility classes for content above background */
.content-layer {
    position: relative;
    z-index: 2;
}

/* Scrollbar styling for webkit browsers */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 71, 87, 0.5);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 71, 87, 0.7);
}

/* ═════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN - Main Layout
   Mobile First Approach: small → large
   ═════════════════════════════════════════════════════════════ */

/* Small Mobile (< 375px) */
@media (max-width: 374px) {
    body {
        background-image: url('../assets/images/bg_1080x1920.avif');
        background-attachment: scroll;
    }

    body::before {
        background: linear-gradient(180deg,
                rgba(26, 0, 0, 0.5) 0%,
                rgba(45, 10, 10, 0.7) 50%,
                rgba(26, 0, 0, 0.8) 100%);
    }

    .container {
        width: 95%;
        padding: 10px;
    }

    h1 {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }

    h2 {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }

    .menu-box {
        padding: 20px 12px;
        gap: 12px;
    }

    .menu-box .btn {
        padding: 10px;
        font-size: 0.9rem;
    }

    input {
        padding: 10px;
        font-size: 0.95rem;
        margin: 8px 0;
    }

    .heart-float {
        font-size: 14px;
    }
}

/* Mobile Portrait (375px - 599px) */
@media (max-width: 599px) and (min-width: 375px) {
    body {
        background-image: url('../assets/images/bg_1080x1920.avif');
        background-attachment: scroll;
    }

    body::before {
        background: linear-gradient(180deg,
                rgba(26, 0, 0, 0.45) 0%,
                rgba(45, 10, 10, 0.65) 50%,
                rgba(26, 0, 0, 0.75) 100%);
    }

    .container {
        width: 92%;
        padding: 10px;
    }

    h1 {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    h2 {
        font-size: 1.5rem;
        margin-bottom: 22px;
    }

    .menu-box {
        padding: 25px 15px;
        gap: 13px;
    }

    .menu-box .btn {
        padding: 12px;
        font-size: 0.95rem;
    }

    input {
        padding: 12px;
        font-size: 1rem;
        margin: 10px 0;
    }

    .heart-float {
        font-size: 16px;
    }
}

/* Mobile Landscape / Small Tablet (600px - 767px) */
@media (max-width: 767px) and (min-width: 600px) {
    body {
        background-image: url('../assets/images/bg_1080x1920.avif');
        background-attachment: scroll;
    }

    body::before {
        background: linear-gradient(180deg,
                rgba(26, 0, 0, 0.4) 0%,
                rgba(45, 10, 10, 0.6) 50%,
                rgba(26, 0, 0, 0.7) 100%);
    }

    .container {
        width: 90%;
        max-width: 600px;
        padding: 10px;
    }

    h1 {
        font-size: 2.2rem;
        margin-bottom: 12px;
    }

    h2 {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }

    .menu-box {
        padding: 28px 18px;
        gap: 14px;
    }

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

    input {
        padding: 13px;
        font-size: 1rem;
        margin: 10px 0;
    }

    .heart-float {
        font-size: 18px;
    }
}

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) and (min-width: 768px) {
    body {
        background-image: url('../assets/images/bg_1920x1080.avif');
        background-attachment: scroll;
    }

    body::before {
        background: linear-gradient(180deg,
                rgba(26, 0, 0, 0.35) 0%,
                rgba(45, 10, 10, 0.55) 50%,
                rgba(26, 0, 0, 0.65) 100%);
    }

    .container {
        width: 88%;
        max-width: 700px;
    }

    h1 {
        font-size: 2.8rem;
        margin-bottom: 15px;
    }

    h2 {
        font-size: 1.8rem;
        margin-bottom: 28px;
    }

    .menu-box {
        padding: 35px 25px;
        gap: 15px;
        max-width: 600px;
    }

    .menu-box .btn {
        padding: 15px;
        font-size: 1.1rem;
    }

    input {
        padding: 14px;
        font-size: 1.1rem;
        margin: 12px 0;
    }

    .heart-float {
        font-size: 18px;
    }
}

/* Desktop (1024px - 1399px) */
@media (max-width: 1399px) and (min-width: 1024px) {
    body {
        background-image: url('../assets/images/bg_1920x1080.avif');
        background-attachment: fixed;
    }

    body::before {
        background: linear-gradient(180deg,
                rgba(26, 0, 0, 0.3) 0%,
                rgba(45, 10, 10, 0.5) 50%,
                rgba(26, 0, 0, 0.6) 100%);
    }

    .container {
        width: 85%;
        max-width: 800px;
    }

    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 1.9rem;
    }

    .menu-box {
        padding: 38px;
        max-width: 680px;
    }

    .menu-box .btn {
        padding: 16px;
        font-size: 1.1rem;
    }

    input {
        padding: 15px;
        font-size: 1.1rem;
    }
}

/* Large Desktop (1400px+) - Optimal layout */
@media (min-width: 1400px) {
    body {
        background-image: url('../assets/images/bg_2560x1440.avif');
        background-attachment: fixed;
    }

    body::before {
        background: linear-gradient(180deg,
                rgba(26, 0, 0, 0.3) 0%,
                rgba(45, 10, 10, 0.5) 50%,
                rgba(26, 0, 0, 0.6) 100%);
    }

    .container {
        max-width: 1000px;
    }

    h1 {
        font-size: 4rem;
    }

    .menu-box {
        padding: 40px;
    }
}

/* Landscape orientation on mobile (special case) */
@media (max-height: 600px) and (orientation: landscape) {
    body {
        align-items: flex-start;
        padding-top: 15px;
        overflow-y: auto;
        background-attachment: scroll;
    }

    .container {
        width: 95%;
    }

    h1 {
        font-size: 1.8rem;
        margin-bottom: 5px;
    }

    h2 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }

    .menu-box {
        padding: 15px 12px;
        gap: 10px;
    }

    .menu-box .btn {
        padding: 8px;
        font-size: 0.85rem;
    }

    input {
        padding: 8px;
        font-size: 0.9rem;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .heart-float {
        animation: none;
    }

    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support (enhances existing dark theme) */
@media (prefers-color-scheme: dark) {
    body::before {
        background: linear-gradient(180deg,
                rgba(0, 0, 0, 0.5) 0%,
                rgba(0, 0, 0, 0.7) 50%,
                rgba(0, 0, 0, 0.8) 100%);
    }
}

/* Print styles */
@media print {
    body {
        background: white;
        color: black;
    }

    body::before,
    .hearts-bg {
        display: none;
    }
}