@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Brand Colors - Zomato Red */
    --primary: #E23744;
    --primary-hover: #D32F2F;
    --primary-soft: #FFF0F1;
    --primary-gradient: linear-gradient(135deg, #E23744 0%, #FF6B6B 100%);
    /* Text Colors */
    --dark: #1C1C1C;
    --secondary: #546E7A;
    --muted: #9FA6B2;
    --white: #ffffff;
    /* Functional */
    --success: #24963E;
    --success-bg: #E3F9E5;
    --warning: #F59F00;
    --warning-bg: #FFF5CC;
    --error: #E03131;
    --bg-body: #F5F7FA;
    /* Dimensions & Shadows */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-float: 0 8px 30px rgba(0,0,0,0.12);
    --nav-height: 60px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    background-color: var(--bg-body);
    font-size: 14px;
    line-height: 1.4;
    padding-bottom: 90px; /* Space for bottom nav */
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    transition: all 0.2s;
    color: inherit;
}

/* --- Layout Components --- */

/* Header */
.app-header {
    background: var(--white);
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #eee;
}

.location-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.location-icon-box {
    width: 36px;
    height: 36px;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.location-title {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--dark);
    margin: 0;
    display: flex;
    align-items: center;
}

.location-subtitle {
    font-size: 0.75rem;
    color: var(--secondary);
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Search Bar */
.search-bar-container {
    padding: 15px 20px 5px 20px;
    background: var(--bg-body);
}

.search-input-group {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    padding: 12px 15px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}

    .search-input-group:focus-within {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px var(--primary-soft);
    }

    .search-input-group input {
        border: none;
        outline: none;
        width: 100%;
        margin-left: 10px;
        color: var(--dark);
        font-size: 0.95rem;
    }

/* --- Section Headers --- */
.section-header {
    padding: 25px 20px 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--dark);
    margin: 0;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 2px;
    font-weight: 400;
}

.see-all {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Categories (Grid) --- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 10px;
    padding: 0 20px;
    text-align: center;
}

.cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.cat-icon {
    width: 64px;
    height: 64px;
    background: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    border: 1px solid #f0f0f0;
    transition: transform 0.1s;
}

.cat-item:active .cat-icon {
    transform: scale(0.92);
    background: var(--primary-soft);
}

.cat-label {
    font-size: 0.75rem;
    color: var(--secondary);
    font-weight: 600;
}

/* --- Feature Cards (Horizontal Scroll) --- */
.feature-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0 20px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

    .feature-scroll::-webkit-scrollbar {
        display: none;
    }

.feature-card {
    min-width: 280px;
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    scroll-snap-align: center;
    border: 1px solid #eee;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

    .feature-card::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        background: var(--primary);
    }

.feature-icon {
    width: 45px;
    height: 45px;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.feature-content h5 {
    margin: 0 0 4px 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
}

.feature-content p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--secondary);
    line-height: 1.3;
}

/* --- Host Cards --- */
.host-list {
    padding: 0 20px;
}

.host-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #f0f0f0;
    transition: transform 0.1s;
}

    .host-card:active {
        transform: scale(0.98);
    }

.host-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #f8f8f8;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.badge-status {
    background: var(--success-bg);
    color: var(--success);
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 700;
    display: inline-block;
}

/* --- Snackbar (Toast) --- */
#snackbar {
    visibility: hidden;
    min-width: 300px;
    background-color: #1F1F1F;
    color: #fff;
    text-align: center;
    border-radius: 50px;
    padding: 14px 24px;
    position: fixed;
    z-index: 9999;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--shadow-float);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

    #snackbar.show {
        visibility: visible;
        opacity: 1;
        bottom: 90px; /* Above Bottom Nav */
    }

/* --- Bottom Nav --- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    border-top: 1px solid #eee;
    z-index: 2000;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.03);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 600;
    text-decoration: none;
    background: transparent;
    border: none;
    gap: 4px;
    width: 25%;
}

    .nav-item i {
        font-size: 1.5rem;
        line-height: 1;
        transition: transform 0.2s;
    }

    .nav-item.active {
        color: var(--primary);
    }

        .nav-item.active i {
            transform: translateY(-2px);
        }

/* --- Date/Slot CSS --- */
.date-scroller {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px 20px 15px 20px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.date-card {
    min-width: 64px;
    height: 80px;
    background: white;
    border: 1px solid #eee;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

    .date-card.active {
        background: var(--primary);
        color: white;
        border-color: var(--primary);
        box-shadow: 0 4px 12px rgba(226, 55, 68, 0.4);
        transform: scale(1.05);
    }

.date-day {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
}

.date-num {
    font-size: 1.4rem;
    font-weight: 800;
    margin-top: 2px;
}

.slot-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 20px;
}

.slot-card {
    background: white;
    border: 1px solid #eee;
    border-radius: var(--radius-sm);
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

    .slot-card.selected {
        border-color: var(--primary);
        background: var(--primary-soft);
        color: var(--primary);
        font-weight: 700;
        box-shadow: inset 0 0 0 1px var(--primary);
    }

.live-token-card {
    background: linear-gradient(135deg, #1C1C1C 0%, #383838 100%);
    color: white;
    border-radius: var(--radius-lg);
    padding: 25px;
    margin: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.token-big {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    color: #4CD964;
    letter-spacing: -2px;
    margin: 10px 0;
}

/* Utilities */
.btn-primary-block {
    background: var(--primary);
    color: white;
    width: 100%;
    padding: 16px;
    border-radius: var(--radius-md);
    font-weight: 700;
    border: none;
    box-shadow: 0 4px 15px rgba(226, 55, 68, 0.3);
    font-size: 1rem;
}

