/* ===== Brand fonts (Gelasio = logo serif, Kumbh Sans = body) ===== */
@font-face {
    font-family: 'Gelasio';
    src: url('../../Fonts/Gelasio-Regular.ttf') format('truetype');
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Gelasio';
    src: url('../../Fonts/Gelasio-Medium.ttf') format('truetype');
    font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Gelasio';
    src: url('../../Fonts/Gelasio-SemiBold.ttf') format('truetype');
    font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Gelasio';
    src: url('../../Fonts/Gelasio-Bold.ttf') format('truetype');
    font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Kumbh Sans';
    src: url('../../Fonts/KumbhSans.ttf') format('truetype');
    font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
    --primary-color: #1020E8;   /* logo blue */
    --primary-dark: #0A1490;
    --primary-light: #4E5BFF;
    --accent-color: #E8B23A;    /* lemon-gold — nod to the logo tagline */
    --accent-dark: #C9952A;
    --secondary-color: #0A1490; /* deep blue (gradient partner) */
    --success-color: #2e9e5b;
    --danger-color: #d6455a;
    --warning-color: #e0a92e;
    --info-color: #2aa6c0;
    --bg-color: #FBF8F2;        /* warm cream */
    --ink: #1b1d35;            /* warm near-black */
    --muted: #5d6175;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --font-heading: 'Gelasio', Georgia, 'Times New Roman', serif;
    --font-body: 'Kumbh Sans', 'Segoe UI', Tahoma, sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--bg-color);
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 18px 44px rgba(16, 32, 232, 0.10);
}

.header h1 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 2.7em;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.3px;
}

.hero {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 22px;
    background: var(--primary-dark);
    box-shadow: 0 12px 30px rgba(16, 32, 232, 0.18);
}

.hero-photo {
    width: 100%;
    height: 330px;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    background: linear-gradient(180deg, rgba(16, 32, 232, 0.28) 0%, rgba(10, 20, 144, 0.82) 100%);
}

.hero-logo {
    max-width: 360px;
    width: 78%;
    height: auto;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}

.hero-tagline {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-style: italic;
    color: #fff;
    margin: 14px 0 0;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* always one row — shrink, don't wrap */
    gap: 12px;
    margin: 0 0 26px;
}

    .gallery img {
        width: 100%;
        height: 150px;
        object-fit: cover;
        border-radius: 12px;
        box-shadow: 0 6px 16px rgba(16, 32, 232, 0.12);
        transition: transform 0.25s ease;
    }

        .gallery img:hover {
            transform: translateY(-3px) scale(1.02);
        }

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 15px 0;
    border-bottom: 2px solid #efe6d6;
}

.nav-buttons {
    display: flex;
    flex-wrap: wrap;            /* never let the row overflow the viewport */
    align-items: center;
    gap: 15px;
}

/* The logout button lives inside a <form>; let it behave like the sibling
   buttons so it lines up (and can stretch) with My Reservations / New Reservation. */
.nav-buttons form {
    margin: 0;
    display: flex;
}

.user-info .welcome {
    font-weight: 600;
    color: #333;
    font-size: 1.1em;
}

.section h2 {
    color: #333;
    margin-bottom: 30px;
    font-size: 1.8em;
}

.reservations-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.reservation-card {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
}

    .reservation-card:hover {
        border-color: var(--primary-color);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

.reservation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.reservation-date {
    font-size: 1.3em;
    font-weight: 600;
    color: #333;
}

.reservation-status {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-confirmed {
    background: #d4edda;
    color: #155724;
}

.status-past {
    background: #f8d7da;
    color: #721c24;
}

.status-cancelled {
    background: #fff3cd;
    color: #856404;
}

.reservation-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05em;
}

    .detail-item .icon {
        font-size: 1.2em;
        opacity: 0.7;
    }

.reservation-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin: 15px 0;
}

.time-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    background: rgba(16, 32, 232, 0.1);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

    .time-slot:hover:not(.unavailable) {
        background: var(--primary-color);
        color: white;
        transform: scale(1.05);
    }

    .time-slot.selected {
        background: var(--primary-color);
        color: white;
        box-shadow: 0 0 0 3px rgba(16, 32, 232, 0.3);
    }

    .time-slot.unavailable {
        background: #f8f9fa;
        border-color: #dee2e6;
        color: #6c757d;
        cursor: not-allowed;
        opacity: 0.6;
    }

    .time-slot .time {
        font-weight: 600;
        font-size: 1.1em;
        margin-bottom: 5px;
    }

    .time-slot .capacity {
        font-size: 0.85em;
        opacity: 0.8;
    }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
        color: #555;
        font-size: 1.05em;
    }

.form-control {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

    .form-control:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(16, 32, 232, 0.1);
        transform: translateY(-2px);
    }

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(16, 32, 232, 0.3);
    }

.btn-secondary {
    background: linear-gradient(45deg, var(--accent-color), var(--accent-dark));
    color: #1b1d35;
}

    .btn-secondary:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(232, 178, 58, 0.35);
    }

.btn-outline-primary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

    .btn-outline-primary:hover {
        background: var(--primary-color);
        color: white;
    }

.btn-outline-secondary {
    background: transparent;
    color: #6c757d;
    border: 2px solid #6c757d;
}

.btn-outline-danger {
    background: transparent;
    color: var(--danger-color);
    border: 2px solid var(--danger-color);
}

    .btn-outline-danger:hover {
        background: var(--danger-color);
        color: white;
    }

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-lg {
    padding: 18px 36px;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.no-reservations {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 1.2em;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e1e5e9;
}

    .modal-header h3 {
        margin: 0;
        color: #333;
    }

.btn-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .btn-close:hover {
        color: var(--danger-color);
    }

.alert {
    padding: 15px 20px;
    border-radius: 12px;
    margin: 20px 0;
    position: relative;
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(45deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.alert-danger {
    background: linear-gradient(45deg, #ff9a9e 0%, #fecfef 100%);
    color: #721c24;
}

.alert-dismissible .btn-close {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.7;
}

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 500px;
}

    .auth-card h1 {
        text-align: center;
        margin-bottom: 10px;
        background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .auth-card p {
        text-align: center;
        color: #666;
        margin-bottom: 30px;
    }

.form-label {
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}

.text-danger {
    color: var(--danger-color) !important;
    font-size: 14px;
    margin-top: 5px;
}

@media (max-width: 768px) {
    .container {
        margin: 10px;
        padding: 20px;
    }

    .header h1 {
        font-size: 2em;
    }

    .nav-bar {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    /* Stack the action controls full-width so all three (incl. Logout) are
       fully visible and tappable — no horizontal overflow / clipping. */
    .nav-buttons {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

        .nav-buttons > *,
        .nav-buttons form,
        .nav-buttons .btn {
            width: 100%;
        }

    /* Bottom call-to-action buttons read cramped at phone widths — give the
       primary actions full width so they're easy to tap. */
    .section .btn-lg,
    .no-reservations .btn {
        width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .reservation-details {
        grid-template-columns: 1fr;
    }

    .time-slots {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .modal-content {
        margin: 20px;
        padding: 20px;
    }

    .auth-card {
        margin: 10px;
        padding: 30px 20px;
    }

    .gallery {
        gap: 6px;
    }

        .gallery img {
            height: 90px;
            border-radius: 8px;
        }

    .hero-photo {
        height: 210px;
    }

    .hero-logo {
        max-width: 240px;
    }
}
