/* 
   Taza Brew Cafe - Warm Aesthetic Theme
   Colors: Coffee Tones, Creams, Soft Shadows 
*/

:root {
    --bg-color: #FAFAFA; /* Off white / Cream */
    --primary-color: #8C5F4D; /* Warm Mocha */
    --secondary-color: #D9A98C; /* Light Latte */
    --text-main: #33241D; /* Dark Coffee */
    --text-muted: #6B5B53; 
    --card-bg: #FFFFFF;
    --border-radius: 20px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
}

/* Hero Header */
.hero {
    background: linear-gradient(135deg, var(--primary-color), #5C3D2E);
    color: white;
    text-align: center;
    padding: 3rem 1rem 4rem 1rem;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    box-shadow: 0 10px 30px rgba(140, 95, 77, 0.2);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.brand-name {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.tagline {
    font-weight: 300;
    font-size: 1rem;
    opacity: 0.9;
}

/* Container */
.container {
    max-width: 600px; /* Mobile first max width */
    margin: -2rem auto 0;
    padding: 0 1.5rem 3rem;
    position: relative;
    z-index: 10;
}

/* Category Filters */
.category-filters {
    display: flex;
    overflow-x: auto;
    gap: 0.8rem;
    padding-bottom: 1rem;
    scrollbar-width: none; /* Firefox */
}
.category-filters::-webkit-scrollbar { display: none; }

.filter-btn {
    background: rgba(255,255,255,0.9);
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-family: inherit;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    backdrop-filter: blur(5px);
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(140, 95, 77, 0.3);
}

/* Menu Grid */
.menu-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
}

/* Menu Card */
.menu-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
    cursor: pointer;
    transition: var(--transition);
}

.menu-card:active {
    transform: scale(0.98);
}

.card-image {
    width: 110px;
    height: 110px;
    flex-shrink: 0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.item-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.item-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Modal - Glassmorphism */
.modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
    z-index: 100;
    display: flex;
    align-items: flex-end; /* Slide from bottom for mobile */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--card-bg);
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.8);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-main);
    z-index: 10;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.modal-image-container {
    width: 100%;
    height: 250px;
}

.modal-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-details {
    padding: 2rem 1.5rem;
}

.modal-header-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.modal-header-info h2 {
    font-size: 1.5rem;
    font-weight: 700;
    max-width: 70%;
}

.modal-header-info p {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.tags-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tag {
    background: var(--secondary-color);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.modal-desc {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

/* Gallery Mode Styles */
.gallery-container { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 1rem; }
.gallery-item { width: 100%; overflow: hidden; border-radius: var(--border-radius); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.gallery-item img { width: 100%; height: auto; display: block; object-fit: contain; }

.not-available { opacity: 0.7; } 
.unavailable-badge { position: absolute; top: 10px; right: 10px; background: rgba(217, 83, 79, 0.9); color: white; padding: 5px 10px; border-radius: 5px; font-size: 0.8rem; font-weight: 600; box-shadow: 0 2px 5px rgba(0,0,0,0.2); } 

.card-image { position: relative; }
