/* ============================================
   Firuze Nazilli — Müşteri Menü Stili
   Modern, mobile-first, sıfır bağımlılık
   ============================================ */

/* Font — Google Fonts CDN (moved to _Layout.cshtml <link> for performance) */

/* ─── Masa Banner ─── */
.masa-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--secondary);
    color: #fff;
    font-size: 0.85rem;
    text-align: center;
}

.masa-banner strong {
    font-size: 1.1rem;
}

/* ─── Header ─── */
.menu-header {
    position: relative;
    background: linear-gradient(135deg, var(--primary) 0%, #4a0000 100%);
    color: #fff;
    text-align: center;
    padding: 3rem 1.5rem 2.5rem;
    overflow: hidden;
    min-height: 280px;
}

/* ─── Hero Slideshow ─── */
.hero-slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.hero-slide:first-child {
    opacity: 1;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide picture {
    display: block;
    width: 100%;
    height: 100%;
}

.item-image picture {
    display: block;
    width: 100%;
    height: 100%;
}

/* Ken Burns efekti */
.hero-slide.active img {
    animation: kenBurns 8s ease-in-out forwards;
}

@keyframes kenBurns {
    0%   { transform: scale(1.0) translate(0, 0); }
    100% { transform: scale(1.08) translate(-1%, -1%); }
}

/* Dots */
.hero-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.7);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.hero-dot.active {
    background: #fff;
    transform: scale(1.2);
}

.hero-dot:hover {
    background: rgba(255,255,255,0.5);
}

.header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(74, 0, 0, 0.65) 0%,
        rgba(139, 0, 0, 0.55) 50%,
        rgba(74, 0, 0, 0.75) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.header-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.header-logo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.4);
    object-fit: cover;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    background: #fff;
}

.header-logo-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    backdrop-filter: blur(10px);
}

.header-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.header-slogan {
    font-size: 0.95rem;
    opacity: 0.85;
    font-weight: 400;
    margin-bottom: 1rem;
}

/* Dil Switch */
.lang-switch {
    display: inline-flex;
    gap: 0.25rem;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 3px;
    backdrop-filter: blur(8px);
}

.lang-btn {
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s;
}

.lang-btn.active {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

/* ─── Info Bar ─── */
.info-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--card-bg);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s;
}

.info-item:hover {
    color: var(--primary);
}

.info-icon {
    font-size: 1rem;
}

/* ─── Category Nav ─── */
.category-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg);
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    backdrop-filter: blur(12px);
}

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

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

.cat-pill {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 1rem;
    border: 1.5px solid rgba(0,0,0,0.1);
    border-radius: 50px;
    background: var(--card-bg);
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s ease;
    font-family: inherit;
}

.cat-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.cat-pill.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 14px rgba(139, 0, 0, 0.25);
}

.cat-icon {
    font-size: 1.1rem;
}

/* ─── Menu Content ─── */
.menu-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 1rem;
}

/* ─── Section ─── */
.menu-section {
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.4s ease both;
    scroll-margin-top: 60px;
}

.menu-section.hidden {
    display: none;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--card-bg);
    border-radius: var(--radius) var(--radius) 0 0;
    cursor: pointer;
    user-select: none;
    border-bottom: 2px solid var(--primary);
    transition: background 0.2s;
}

.section-header:hover {
    background: #f5f3ef;
}

.section-title {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

.section-icon {
    font-size: 1.3rem;
}

.section-count {
    font-size: 0.75rem;
    color: var(--text-light);
    background: rgba(0,0,0,0.05);
    padding: 0.15rem 0.6rem;
    border-radius: 20px;
}

.section-chevron {
    font-size: 0.7rem;
    color: var(--text-light);
    transition: transform 0.3s ease;
}

.section-header[aria-expanded="false"] .section-chevron {
    transform: rotate(-90deg);
}

.section-items {
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.section-header[aria-expanded="false"] + .section-items {
    max-height: 0 !important;
}

/* ─── Menu Item ─── */
.menu-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--card-bg);
    border-bottom: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.2s, box-shadow 0.2s;
}

.menu-item:last-child {
    border-bottom: none;
    border-radius: 0 0 var(--radius) var(--radius);
}

.menu-item:hover {
    transform: translateX(4px);
}

.menu-item.popular {
    position: relative;
    background: linear-gradient(135deg, #fffbf0 0%, #fff 100%);
}

.menu-item.popular::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--secondary);
    border-radius: 3px 0 0 3px;
}

/* Item Image */
.item-image {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.menu-item:hover .item-image img {
    transform: scale(1.05);
}

/* Item Info */
.item-info {
    flex: 1;
    min-width: 0;
}

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

.item-name {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

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

.item-desc {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.4;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.5rem;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-new {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge-popular {
    background: transparent;
    font-size: 0.8rem;
    padding: 0;
}

/* ─── Kampanya Bandı ─── */
.kampanya-slider {
    overflow: hidden;
    position: relative;
}

.kampanya-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    animation: kampanyaSlide 0.5s ease;
}

.kampanya-item span {
    display: inline;
}

@keyframes kampanyaSlide {
    from { opacity: 0; transform: translateY(-100%); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── Galeri Link (Footer'da) ─── */
.gallery-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, rgba(139,0,0,0.05) 0%, rgba(212,175,55,0.08) 100%);
    border: 1.5px dashed rgba(139,0,0,0.2);
    border-radius: var(--radius);
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.gallery-link:hover {
    background: linear-gradient(135deg, rgba(139,0,0,0.1) 0%, rgba(212,175,55,0.15) 100%);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.gallery-arrow {
    transition: transform 0.2s;
}

.gallery-link:hover .gallery-arrow {
    transform: translateX(4px);
}

/* ─── Galeri Sayfası ─── */
.galeri-header {
    text-align: center;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, #4a0000 100%);
    color: #fff;
}

.galeri-header h1 {
    font-size: 1.8rem;
    margin-bottom: 0.25rem;
}

.galeri-header p {
    opacity: 0.7;
    font-size: 0.9rem;
}

.galeri-back {
    display: inline-block;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    transition: color 0.2s;
}

.galeri-back:hover {
    color: #fff;
}

.galeri-filter {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    flex-wrap: wrap;
}

.gal-pill {
    padding: 0.45rem 1rem;
    border: 1.5px solid rgba(0,0,0,0.1);
    border-radius: 50px;
    background: var(--card-bg);
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.gal-pill.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.galeri-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    padding: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.galeri-item {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--card-bg);
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    cursor: pointer;
}

.galeri-item:hover {
    transform: translateY(-4px);
}

.galeri-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.galeri-item picture {
    display: block;
    width: 100%;
}

.galeri-placeholder {
    width: 100%;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #f5f3ef 0%, #e8e4dc 100%);
    color: var(--text-light);
    font-size: 0.85rem;
}

.galeri-placeholder span:first-child {
    font-size: 2.5rem;
}

.galeri-caption {
    padding: 0.6rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text);
}

.galeri-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-light);
}

.galeri-empty p {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* ─── Lightbox ─── */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
}

/* ─── Map Section ─── */
.map-section {
    text-align: center;
    padding: 2rem 1rem;
    max-width: 800px;
    margin: 2rem auto 0;
}

.map-title {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    color: var(--text);
}

.map-subtitle {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.map-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-container iframe {
    display: block;
}

.map-directions-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 1rem;
    padding: 0.6rem 1.5rem;
    background: var(--primary);
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
}

.map-directions-btn:hover {
    background: #6b0000;
    transform: translateY(-1px);
}

/* ─── Footer ─── */
.menu-footer {
    text-align: center;
    padding: 2rem 1.5rem;
    margin-top: 2rem;
    background: var(--card-bg);
    border-top: 1px solid rgba(0,0,0,0.06);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    background: rgba(0,0,0,0.05);
    color: var(--text);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.social-btn.whatsapp {
    background: #25d366;
    color: #fff;
}

.social-btn.whatsapp:hover {
    background: #1fba59;
}

.footer-text {
    font-size: 0.75rem;
    color: var(--text-light);
}

.footer-credit {
    font-size: 0.7rem;
    color: #aaa;
    margin-top: 0.5rem;
}

.footer-credit a {
    color: #4A90D9;
    text-decoration: none;
    font-weight: 500;
}

.footer-credit a:hover {
    text-decoration: underline;
}

/* ─── Animations ─── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── Alert ─── */
.alert {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.alert-error {
    background: #fce4ec;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

/* ─── Login Page ─── */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, #4a0000 100%);
}

.login-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h1 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.login-header p {
    font-size: 0.85rem;
    color: var(--text-light);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text);
}

.form-group input {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1.5px solid rgba(0,0,0,0.12);
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.2s;
    outline: none;
}

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

.btn {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: #6b0000;
    transform: translateY(-1px);
}

.btn-full {
    width: 100%;
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
    text-decoration: none;
}

.back-link:hover {
    color: var(--primary);
}

/* ─── Broken Image Fallback ─── */
.header-logo[data-error] {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='110' height='110'%3E%3Ccircle cx='55' cy='55' r='54' fill='%23f5f3ef' stroke='%23ddd' stroke-width='1'/%3E%3Ctext x='55' y='62' text-anchor='middle' font-size='36' fill='%23ccc'%3E🍽️%3C/text%3E%3C/svg%3E");
}

.hero-slide img[data-error] {
    display: none;
}

.item-image img[data-error] {
    display: none;
}

.item-image:has(img[data-error]) {
    background: linear-gradient(135deg, #f5f3ef 0%, #e8e4dc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-image:has(img[data-error])::after {
    content: '🍽️';
    font-size: 2rem;
    opacity: 0.4;
}

/* ─── Responsive ─── */
@media (min-width: 768px) {
    .header-title {
        font-size: 2.5rem;
    }

    .menu-item {
        padding: 1.25rem;
    }

    .item-image {
        width: 100px;
        height: 100px;
    }

    .item-name {
        font-size: 1.05rem;
    }
}

@media (min-width: 1024px) {
    .menu-content {
        max-width: 800px;
    }
}
