/* Restaurant Menu - Custom Styles */
/* Tailwind loaded via CDN in HTML */

:root {
    --color-primary: #3b82f6;
    --color-accent:  #1d4ed8;
    --color-glow:    59,130,246;
}

/* ── Fonts ─────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

html {
    height: 100%;
    overflow-y: scroll; /* always show scrollbar, prevents layout shift */
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
}

body > main {
    flex: 1 0 auto;
    position: relative;
    z-index: 1;
}

body > footer {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

body > header {
    position: relative;
    z-index: 100;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: #fafbff;
    color: #1e2a3a;
}

h1, h2, h3, .brand {
    font-family: 'Playfair Display', serif;
}

/* ── LED Glow Effects ──────────────────────────────────── */
.glow-border {
    border: 1px solid rgba(var(--color-glow), 0.25);
    box-shadow: 0 0 12px rgba(var(--color-glow), 0.08),
                inset 0 0 12px rgba(var(--color-glow), 0.03);
}

.glow-card {
    background: #ffffff;
    border: 1px solid rgba(var(--color-glow), 0.15);
    box-shadow: 0 2px 20px rgba(var(--color-glow), 0.06),
                0 1px 4px rgba(0,0,0,0.04);
    transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.glow-card:hover {
    box-shadow: 0 4px 32px rgba(var(--color-glow), 0.18),
                0 2px 8px rgba(0,0,0,0.06);
    border-color: rgba(var(--color-glow), 0.35);
    transform: translateY(-2px);
}

.glow-btn {
    background: var(--color-primary);
    box-shadow: 0 0 18px rgba(var(--color-glow), 0.35),
                0 2px 6px rgba(var(--color-glow), 0.25);
    transition: box-shadow 0.25s, background 0.25s, transform 0.2s;
}

.glow-btn:hover {
    background: var(--color-accent);
    box-shadow: 0 0 28px rgba(var(--color-glow), 0.55),
                0 4px 12px rgba(var(--color-glow), 0.35);
    transform: translateY(-1px);
}

.glow-text {
    color: var(--color-primary);
    text-shadow: 0 0 20px rgba(var(--color-glow), 0.4);
}

.glow-icon-btn {
    color: var(--color-primary);
    border: 1px solid rgba(var(--color-glow), 0.25);
    box-shadow: 0 0 10px rgba(var(--color-glow), 0.1);
    transition: all 0.25s;
}

.glow-icon-btn:hover {
    background: rgba(var(--color-glow), 0.08);
    box-shadow: 0 0 18px rgba(var(--color-glow), 0.25);
    border-color: rgba(var(--color-glow), 0.5);
}

/* ── Header ────────────────────────────────────────────── */
.site-header {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(var(--color-glow), 0.12);
    box-shadow: 0 1px 24px rgba(var(--color-glow), 0.07);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* ── Category Cards ────────────────────────────────────── */
.category-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: 1rem;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.category-icon {
    font-size: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--color-glow), 0.08);
    border-radius: 0.75rem;
    border: 1px solid rgba(var(--color-glow), 0.15);
    flex-shrink: 0;
    transition: background 0.3s, box-shadow 0.3s;
}

.category-card:hover .category-icon {
    background: rgba(var(--color-glow), 0.16);
    box-shadow: 0 0 16px rgba(var(--color-glow), 0.2);
}

.category-arrow {
    margin-left: auto;
    color: var(--color-primary);
    opacity: 0.5;
    transition: opacity 0.2s, transform 0.2s;
}

.category-card:hover .category-arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* ── Product Cards ─────────────────────────────────────── */
.product-card-grid {
    border-radius: 1rem;
    overflow: hidden;
}

.product-card-grid .product-image {
    aspect-ratio: 4/3;
    object-fit: cover;
    width: 100%;
    background: linear-gradient(135deg, rgba(var(--color-glow),0.08), rgba(var(--color-glow),0.03));
}

.product-card-list {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 1rem;
}

.product-card-list .product-image {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 0.75rem;
    flex-shrink: 0;
}

.price-badge {
    display: inline-block;
    background: rgba(var(--color-glow), 0.1);
    color: var(--color-primary);
    border: 1px solid rgba(var(--color-glow), 0.25);
    border-radius: 2rem;
    padding: 0.2rem 0.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    text-shadow: 0 0 8px rgba(var(--color-glow), 0.3);
}

.out-of-stock-badge {
    display: inline-block;
    background: rgba(239,68,68,0.08);
    color: #ef4444;
    border: 1px solid rgba(239,68,68,0.2);
    border-radius: 2rem;
    padding: 0.15rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 500;
}

/* ── Decorative background ──────────────────────────────── */
/* hero-bg decorative elements moved to inline fixed div */

/* ── Modal / Popup ──────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(4px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.2s ease;
}

.modal-box {
    background: #fff;
    border-radius: 1.25rem;
    max-width: 560px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    border: 1px solid rgba(var(--color-glow), 0.2);
    box-shadow: 0 8px 60px rgba(var(--color-glow), 0.18), 0 2px 20px rgba(0,0,0,0.12);
    animation: slideUp 0.25s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(24px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
    background: #f0f4ff;
    border-top: 1px solid rgba(var(--color-glow), 0.15);
}

/* ── Dropdown ────────────────────────────────────────────── */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border-radius: 0.75rem;
    border: 1px solid rgba(var(--color-glow), 0.2);
    box-shadow: 0 8px 32px rgba(var(--color-glow), 0.12), 0 2px 8px rgba(0,0,0,0.06);
    min-width: 130px;
    z-index: 200;
    overflow: hidden;
}

.dropdown.open .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.15s;
    color: #1e2a3a;
}

.dropdown-item:hover {
    background: rgba(var(--color-glow), 0.07);
}

/* ── Admin Panel ─────────────────────────────────────────── */
.admin-sidebar {
    background: #fff;
    border-right: 1px solid rgba(var(--color-glow), 0.15);
    box-shadow: 2px 0 20px rgba(var(--color-glow), 0.05);
    width: 240px;
    min-height: 100vh;
    flex-shrink: 0;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    border-radius: 0.625rem;
    margin: 0.125rem 0.5rem;
    color: #4b5563;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.admin-nav-item:hover {
    background: rgba(var(--color-glow), 0.07);
    color: var(--color-primary);
}

.admin-nav-item.active {
    background: rgba(var(--color-glow), 0.12);
    color: var(--color-primary);
    border-left: 3px solid var(--color-primary);
}

.admin-header {
    background: #fff;
    border-bottom: 1px solid rgba(var(--color-glow), 0.15);
    box-shadow: 0 1px 16px rgba(var(--color-glow), 0.06);
}

.admin-table th {
    background: rgba(var(--color-glow), 0.06);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(var(--color-glow), 0.1);
}

.admin-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    font-size: 0.875rem;
    vertical-align: middle;
}

.admin-table tr:last-child td { border-bottom: none; }

.admin-table tr:hover td {
    background: rgba(var(--color-glow), 0.025);
}

/* ── Form inputs ─────────────────────────────────────────── */
.form-input {
    width: 100%;
    padding: 0.6rem 0.9rem;
    border: 1px solid rgba(var(--color-glow), 0.25);
    border-radius: 0.625rem;
    font-size: 0.875rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}

.form-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(var(--color-glow), 0.12);
}

/* ── Utility ─────────────────────────────────────────────── */
.text-primary { color: var(--color-primary); }
.bg-primary   { background: var(--color-primary); }

/* ── Responsive tweaks ───────────────────────────────────── */
@media (max-width: 768px) {
    .admin-sidebar {
        width: 100%;
        min-height: auto;
        border-right: none;
        border-bottom: 1px solid rgba(var(--color-glow), 0.15);
    }
    .product-card-list .product-image {
        width: 70px;
        height: 70px;
    }
}

/* ── Theme toggle animation ──────────────────────────────── */
.theme-btn {
    position: relative;
    overflow: hidden;
}

.theme-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(var(--color-glow), 0.15);
    opacity: 0;
    transition: opacity 0.2s;
}

.theme-btn:hover::after { opacity: 1; }

/* KVKK popup */
.kvkk-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
}

@media (min-width: 640px) {
    .kvkk-overlay { align-items: center; }
}

.kvkk-box {
    background: #fff;
    border-radius: 1.25rem 1.25rem 0 0;
    padding: 2rem;
    max-width: 520px;
    width: 100%;
    border: 1px solid rgba(var(--color-glow), 0.2);
    box-shadow: 0 -8px 40px rgba(var(--color-glow), 0.12);
    animation: slideUp 0.3s ease;
}

@media (min-width: 640px) {
    .kvkk-box { border-radius: 1.25rem; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb {
    background: rgba(var(--color-glow), 0.3);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--color-glow), 0.5);
}

/* View toggle */
.view-btn {
    padding: 0.4rem 0.6rem;
    border-radius: 0.5rem;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.view-btn.active {
    color: var(--color-primary);
    background: rgba(var(--color-glow), 0.1);
    border-color: rgba(var(--color-glow), 0.25);
}

/* ── Theme Dropdown ──────────────────────────────────────── */
.theme-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border-radius: 1rem;
    border: 1px solid rgba(var(--color-glow), 0.2);
    box-shadow: 0 8px 32px rgba(var(--color-glow), 0.15), 0 2px 8px rgba(0,0,0,0.08);
    padding: 0.75rem;
    z-index: 300;
    min-width: 180px;
}

.dropdown.open .theme-dropdown-menu {
    display: block;
}

.theme-dot {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
}

.theme-dot:hover {
    transform: scale(1.15);
    box-shadow: 0 0 0 2px rgba(255,255,255,1), 0 0 0 4px currentColor;
}

.theme-dot-active {
    border-color: #fff;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.2), 0 0 12px rgba(0,0,0,0.15);
    transform: scale(1.1);
}

.theme-dot-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.5rem;
    border-radius: 0.625rem;
    cursor: pointer;
    transition: background 0.15s;
}

.theme-dot-row:hover {
    background: rgba(var(--color-glow), 0.06);
}
