/* assets/css/style.css - ROLLED BACK TO STABLE VERSION + CENTER LOGO */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Outfit:wght@300;400;500;600&display=swap');

:root {
    --primary: #000000;
    --secondary: #dcdcdc;
    /* Badge Color */
    --accent: #2fb344;
    --bg-color: #ffffff;
    --text-color: #333333;
    --header-bg: #1a1a1a;
}

body.dark-mode {
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --header-bg: #000000;
    --secondary: #333333;
}

body.dark-mode .info-bar {
    background: linear-gradient(to bottom, #1a1a1a, #121212);
}

body.dark-mode .restaurant-name {
    color: #ffffff !important;
}

body.dark-mode .showcase-label {
    color: #aaaaaa !important;
}

body.dark-mode .rotating-category {
    color: #ffffff !important;
}

body.dark-mode .cat-card {
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.05);
}

body.dark-mode .cat-name {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

body.dark-mode .language-btn {
    background: #333;
    color: #fff;
    border-color: #444;
}

body.dark-mode .search-input {
    background: #1e1e1e;
    color: white;
    border-color: #333;
}

body.dark-mode .search-results {
    background: #1e1e1e;
    border-color: #333;
}

body.dark-mode .search-result-item:hover {
    background: #333;
}

body.dark-mode .sr-name {
    color: #fff;
}

body.dark-mode .amenity-item {
    border-color: #333;
}

body.dark-mode .amenity-item span {
    color: #ccc;
}

body.dark-mode .amenity-item:hover {
    background: #1e1e1e;
}

body.dark-mode .btn-action {
    background: #1e1e1e;
    border-color: #333;
    color: #fff;
}

body.dark-mode .hours-table tr {
    border-color: #333;
}

body.dark-mode .hours-table tr.today {
    background: #2d2d2d;
    color: #fff;
}

/* Dark mode toggle btn styling */
.theme-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    font-size: 1.1rem;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Logo Switching */
body.dark-mode .logo-light {
    display: none !important;
}

body.dark-mode .logo-dark {
    display: block !important;
}

/* GLOBAL DARK MODE OVERRIDES */
body.dark-mode .premium-footer {
    background: linear-gradient(to bottom, #121212, #000000);
    border-top-color: #333;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
}

body.dark-mode .footer-text {
    color: #aaa;
}

body.dark-mode .footer-update-info {
    background: rgba(255, 255, 255, 0.05);
    color: #888;
}

body.dark-mode .social-btn {
    background: #1e1e1e;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

body.dark-mode .premium-footer button {
    color: #ffffff !important;
}

body.dark-mode .social-btn:hover {
    background: var(--primary) !important;
    color: white !important;
}

/* Modals */
body.dark-mode .modal-content,
body.dark-mode #feedbackModal>div {
    background-color: #1e1e1e !important;
    color: #e0e0e0 !important;
    border: 1px solid #333;
}

body.dark-mode .close-m-btn {
    color: #fff;
}

body.dark-mode input,
body.dark-mode textarea {
    background-color: #2d2d2d !important;
    border-color: #444 !important;
    color: #fff !important;
}

body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
    color: #888;
}

/* Product Cards */
body.dark-mode .p-card {
    background: #1e1e1e;
    border: 1px solid #333;
}

body.dark-mode .p-name {
    color: #fff;
}

body.dark-mode .p-desc {
    color: #aaa;
}

body.dark-mode .price-tag {
    color: var(--primary);
}

/* Headings & Misc */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
    color: #fff !important;
}

body.dark-mode .section-title {
    color: #fff;
    border-bottom-color: #333;
}

body.dark-mode .tab-item {
    color: #666;
}

body.dark-mode .tab-item.active {
    color: #fff;
    border-bottom-color: #fff;
}

/* Icons */
body.dark-mode i {
    opacity: 0.9;
}

/* Force White Icons in Dark Mode for specific elements */
body.dark-mode .language-btn i,
body.dark-mode .language-btn span,
body.dark-mode .btn-action i {
    color: #ffffff !important;
}

/* Language Dropdown Dark Mode - Dark BG with White Hover */
body.dark-mode .language-dropdown {
    background: #1e1e1e;
    border: 1px solid #333;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

body.dark-mode .language-option {
    color: #ccc;
}

body.dark-mode .language-option:hover {
    background: #ffffff;
    /* White hover as requested */
    color: #000;
}

body.dark-mode .language-option.active {
    background: #ffffff;
    /* White active as requested */
    color: #000;
    font-weight: 700;
}

html {
    height: 100%;
    overflow-y: scroll;
    /* Always show scrollbar on viewport */
    -webkit-overflow-scrolling: touch;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    position: relative;
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    padding-bottom: 2rem;
    overflow-x: hidden;
    /* Prevent horizontal scroll only */
    overflow-y: visible;
    /* Let content grow */
}

/* TOP BAR (HEADER) - CENTERED LOGO KEPT */
.top-bar {
    display: flex;
    justify-content: center;
    /* Centered */
    align-items: center;
    padding: 0 1.5rem;
    height: var(--header-height, 80px);
    background-color: var(--header-bg);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.brand-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-align: center;
}

.brand-logo-img {
    /* max-height: calc(var(--header-height, 80px) - 20px); REMOVED to prevent distortion */
    width: var(--logo-width, 150px);
    height: auto;
    /* Maintains aspect ratio */
    display: block;
    margin: 0 auto;
}

/* HERO SLIDER */
.swiper {
    width: 100%;
    height: 260px;
    background: #f0f0f0;
}

.swiper-slide {
    position: relative;
    background-size: cover;
    background-position: center;
}

.slider-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.slider-title {
    color: white;
    font-size: 2rem;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}

.swiper-slide-active .slider-title {
    opacity: 1;
    transform: translateY(0);
}

.slider-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

/* STATUS BADGE */
.status-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.status-badge.open {
    background: var(--secondary);
    color: black;
}

.status-badge.closed {
    background: #ef4444;
    color: white;
}

.status-badge.soon-open {
    background: #fde047;
    color: black;
}

.status-badge.soon-close {
    background: #fb923c;
    color: white;
}

/* INFO BAR */
.info-bar {
    text-align: center;
    padding: 1.75rem 1rem 1.25rem;
    background: linear-gradient(to bottom, #fafafa, white);
}

.restaurant-header-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.restaurant-name {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin: 0;
    color: #1a1a1a;
    line-height: 1.2;
}

.category-showcase {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    color: #666;
}

.showcase-label {
    font-weight: 400;
    font-style: italic;
}

.rotating-category {
    font-weight: 600;
    color: var(--primary);
    min-width: 120px;
    text-align: left;
    transition: opacity 0.3s ease;
    display: inline-block;
}

.status-badge {
    font-size: 0.7rem;
    padding: 6px 16px;
    border-radius: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    font-family: 'Outfit', sans-serif;
}

.update-date {
    color: #888;
    font-size: 0.9rem;
}

/* TABS */
.main-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-top: 1rem;
}

.tab-item {
    flex: 1;
    text-align: center;
    padding: 1rem;
    font-weight: 500;
    color: #aaa;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.tab-item.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 700;
}

/* CATEGORY GRID - RESTORED TO ORIGINAL STABLE VERSION */
.cat-title-row {
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cat-heading {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin: 0;
}

.category-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Mobile: 1 Column (Restored) */
    gap: 15px;
    padding: 15px;
}

/* Tablet/Desktop */
@media (min-width: 600px) {
    .category-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.cat-card {
    position: relative;
    height: 180px;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.cat-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.cat-card:hover .cat-bg {
    transform: scale(1.05);
}

.cat-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.cat-name {
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 600;
}

.app-footer {
    text-align: center;
    padding: 2rem;
    background: #f9f9f9;
    color: #666;
    margin-top: 2rem;
}

/* PREMIUM FOOTER */
.premium-footer {
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: 50px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.03);
}

.footer-social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    opacity: 1 !important;
}

.social-btn:visited,
.social-btn:active,
.social-btn:focus,
.social-btn:link {
    color: var(--primary) !important;
    opacity: 1 !important;
}

.social-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.3);
    background: var(--primary-color) !important;
    /* Fallback/Var match */
    background: var(--primary) !important;
    color: white !important;
    opacity: 1 !important;
}

.footer-text {
    font-family: var(--header-font);
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 10px;
    font-weight: 500;
}

.footer-update-info {
    color: #94a3b8;
    background: rgba(0, 0, 0, 0.03);
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
}

/* SEARCH BAR STYLES */
.search-container {
    padding: 15px 20px;
    background: var(--bg-color);
    position: sticky;
    top: var(--header-height);
    z-index: 990;
    /* Below header, above content */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.search-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-size: 1rem;
    background: #f8fafc;
    color: var(--text-color);
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: var(--font-body);
}

.search-input:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.1);
    outline: none;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.1rem;
    pointer-events: none;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    /* Always white for readability */
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    margin-top: 5px;
    max-height: 400px;
    /* limits height */
    overflow-y: auto;
    z-index: 1000;
    display: none;
    /* hidden by default */
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    color: inherit;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: #f8fafc;
}

.sr-img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 15px;
    background: #eee;
}

.sr-info {
    flex: 1;
}

.sr-name {
    font-weight: 600;
    color: #334155;
    margin-bottom: 2px;
    display: block;
}

.sr-cat {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 500;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
}

.sr-price {
    font-weight: 700;
    color: var(--primary);
}