/* assets/css/style.css */
:root {
    --primary: #f59e0b;
    --primary-dark: #d97706;
    --bg: #0f172a;
    --surface: #1e293b;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #10b981;
    --danger: #ef4444;
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Hero Section */
.hero {
    height: 350px;
    position: relative;
    background-image: url('../images/hero-bg.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: -50px;
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.9));
}

.hero-content {
    position: relative;
    z-index: 2;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.table-badge {
    display: inline-block;
    background: rgba(245, 158, 11, 0.2);
    color: var(--primary);
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-weight: 600;
    border: 1px solid rgba(245, 158, 11, 0.3);
    backdrop-filter: blur(10px);
    margin-top: 1rem;
}

/* Location Map Styles */
.location-section {
    margin: 4rem auto;
}

.map-container {
    padding: 10px;
    height: 450px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 1rem;
    filter: invert(90%) hue-rotate(180deg) brightness(95%) contrast(90%); /* Dark mode map effect */
}

@media (max-width: 768px) {
    .map-container {
        height: 300px;
    }
}

/* Search & Filter */
.search-section {
    position: sticky;
    top: 1rem;
    z-index: 100;
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(16px);
    padding: 1.5rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 3rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

.search-bar {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-bar i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-bar input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    color: white;
    font-family: inherit;
    font-size: 1rem;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Scroll Indicators */
.scroll-down {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
}

.scroll-down:hover {
    background: var(--primary);
    color: var(--bg);
    transform: translateX(-50%) scale(1.1);
}

.category-wrapper {
    position: relative;
    margin: 0 -0.5rem;
}

/* Edge Fade Effect */
.category-wrapper::before,
.category-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    z-index: 5;
    pointer-events: none;
    transition: opacity 0.3s;
}

.category-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg), transparent);
}

.category-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg), transparent);
}

.category-pills {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.5rem 0.25rem 1rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    flex: 1;
}

.category-pills::-webkit-scrollbar {
    display: none;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) translateY(-0.5rem); /* Account for padding-bottom of pills */
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(30, 41, 59, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s, opacity 0.3s, transform 0.3s;
    z-index: 20;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.scroll-btn:hover {
    background: var(--primary);
    color: var(--bg);
    transform: translateY(-50%) translateY(-0.5rem) scale(1.1);
}

.scroll-btn.prev {
    left: 0;
}

.scroll-btn.next {
    right: 0;
}

@media (max-width: 640px) {
    .scroll-btn {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
}

.pill {
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    white-space: nowrap;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s;
}

.pill.active {
    background: var(--primary);
    color: var(--bg);
    border-color: var(--primary);
}

/* Menu Grid */
.category-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.category-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.menu-card {
    background: var(--surface);
    border-radius: 1.25rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s;
}

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

.card-img {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.menu-card:hover .card-img img {
    transform: scale(1.1);
}

.badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 0.8rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge.popular { background: var(--primary); color: var(--bg); }
.badge.special { background: var(--accent); color: white; }

.card-content {
    padding: 1.25rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.card-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
}

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

.description {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-indicator {
    font-size: 0.75rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.status-indicator::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

.add-to-order {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    border: none;
    color: var(--bg);
    cursor: pointer;
}

/* Footer */
.footer {
    padding: 4rem 1.5rem;
    background: linear-gradient(to top, rgba(15, 23, 42, 1), rgba(30, 41, 59, 0.5));
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer p {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
}

.footer span {
    color: var(--text);
    font-weight: 600;
}

.dev-info a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
}

.dev-info a:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary);
}

.footer-contact {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.footer-contact p {
    margin: 0 !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-contact i {
    color: var(--primary);
}

.footer-contact a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-contact a:hover {
    color: var(--primary);
}

/* Mobile Adjustments */
@media (max-width: 640px) {
    .hero { height: 280px; margin-bottom: -40px; }
    .hero h1 { font-size: 1.75rem; padding: 0 1rem; }
    .logo { font-size: 1.5rem; }
    .search-section { 
        padding: 1rem; 
        border-radius: 1.25rem; 
        margin-bottom: 2rem;
        top: 0.5rem;
    }
    .search-bar { margin-bottom: 1rem; }
    .search-bar input { padding: 0.875rem 1rem 0.875rem 2.5rem; font-size: 0.9375rem; }
    .category-title { font-size: 1.25rem; }
    .menu-grid { grid-template-columns: 1fr; gap: 1rem; }
    .card-img { height: 180px; }
    .footer-contact { gap: 1rem; flex-direction: column; align-items: flex-start; }
    .container { padding: 0 1.25rem; }
    .map-container { height: 250px; border-radius: 1rem; }
}

@media (max-width: 400px) {
    .hero { height: 240px; }
    .hero h1 { font-size: 1.5rem; }
    .category-pills { gap: 0.5rem; }
    .pill { padding: 0.4rem 1rem; font-size: 0.8125rem; }
}

/* Item Modal Styles */
.item-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
}

.modal-container {
    position: relative;
    width: 95%;
    max-width: 550px;
    background: var(--surface);
    border-radius: 2rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    z-index: 2001;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s;
}

.modal-close:hover {
    background: var(--primary);
    transform: rotate(90deg);
}

.modal-content {
    display: flex;
    flex-direction: column;
    height: auto;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-img-container {
    height: 400px;
    background: #0f172a;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.modal-slider {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slider-wrapper {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.slider-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.slider-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
    z-index: 10;
}

.slider-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s;
    opacity: 0;
}

.modal-container:hover .slider-btn {
    opacity: 1;
}

.slider-btn:hover {
    background: var(--primary);
    transform: scale(1.1);
}

.slider-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: var(--primary);
    width: 20px;
    border-radius: 4px;
}

.modal-info {
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
}

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

.modal-category {
    font-size: 0.875rem;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.price-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.price-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.1rem;
}

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

.price.original {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.price.offer {
    color: var(--accent);
    font-size: 1.15rem;
}

.price.original {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
}

.modal-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.2;
}

.modal-price .original {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
}

.modal-price .offer {
    color: var(--accent);
    font-size: 1.75rem;
    font-weight: 700;
}

.modal-price span:not(.original):not(.offer) {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.modal-info h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

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

.instruction-box {
    margin-top: auto;
    background: rgba(15, 23, 42, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.25rem;
    padding: 1.5rem;
}

.instruction-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.instruction-box p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.booking-note {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--accent);
}

@media (max-width: 768px) {
    .modal-content {
        flex-direction: column;
    }
    .modal-img-container {
        min-height: 300px;
    }
    .modal-info {
        padding: 2rem;
    }
    .modal-info h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .modal-container {
        border-radius: 1.5rem;
    }
    .modal-info {
        padding: 1.5rem;
    }
    .modal-img-container {
        min-height: 200px;
    }
}
