/* CSS Variables */
:root {
    --primary: #000000;
    --body-bg: #f7f7f7;
    --white: #ffffff;
    --text-primary: #000000;
    --text-secondary: #666666;
    --text-light: #999999;
    --border-color: #e5e5e5;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --spacing: 16px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--body-bg);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Banner Section */
.banner-section {
    background: var(--white);
    position: relative;
    width: 100%;
    border-bottom: 1px solid var(--border-color);
}

.banner-image {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    display: block;
}

.banner-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    background: rgba(0, 0, 0, 0.7);
    padding: 20px 40px;
    border-radius: 12px;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.banner-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.banner-subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.95;
}

/* Kategori Navigasyonu */
.category-nav {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 90;
    box-shadow: var(--shadow-sm);
}

.category-tabs {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    gap: 8px;
    padding: 12px var(--spacing);
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.category-tabs::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.category-tab {
    flex-shrink: 0;
    padding: 8px 16px;
    background: var(--body-bg);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
    border: 1px solid transparent;
}

.category-tab:hover {
    background: var(--primary);
    color: var(--white);
}

.category-tab.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Main Wrapper */
.main-wrapper {
    max-width: 640px;
    margin: 0 auto;
    padding: 24px var(--spacing) 80px;
    min-height: calc(100vh - 200px);
}

.menu-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: var(--radius);
    color: var(--text-secondary);
}

/* Category Section */
.menu-category {
    margin-bottom: 16px;
}

.category-heading {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
    padding: 0 4px;
    letter-spacing: -0.3px;
}

/* Product List */
.product-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Menu Item Card */
.menu-item {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    gap: 16px;
    padding: 12px;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.menu-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Item Image */
.item-image {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--body-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    background: linear-gradient(135deg, #f5f5f5 0%, #ebebeb 100%);
}

/* Item Details */
.item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    min-width: 0;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.item-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    letter-spacing: -0.2px;
}

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

.item-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer */
.footer {
    background: var(--white);
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
}

.footer-content {
    max-width: 640px;
    margin: 0 auto;
    padding: 24px var(--spacing);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-info {
    flex: 1;
}

.footer-text {
    font-size: 0.813rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

.footer-hours {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin: 0;
}

.admin-link {
    font-size: 0.813rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
    white-space: nowrap;
}

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

/* Responsive Design */
@media (max-width: 480px) {
    .banner-image {
        max-height: 200px;
    }

    .banner-overlay {
        padding: 10px 16px;
        width: auto;
        max-width: 280px;
    }

    .banner-title {
        font-size: 1.1rem;
        margin-bottom: 2px;
    }

    .banner-subtitle {
        font-size: 0.65rem;
        letter-spacing: 0.5px;
    }

    .category-heading {
        font-size: 1.125rem;
    }

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

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

    .item-price {
        font-size: 0.938rem;
    }

    .item-description {
        font-size: 0.813rem;
    }

    .menu-item {
        padding: 10px;
        gap: 12px;
    }

    .footer-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 380px) {
    .banner-image {
        max-height: 180px;
    }

    .banner-overlay {
        padding: 8px 12px;
        width: auto;
        max-width: 240px;
    }

    .banner-title {
        font-size: 0.95rem;
        margin-bottom: 1px;
    }

    .banner-subtitle {
        font-size: 0.55rem;
        letter-spacing: 0.3px;
    }

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

    .menu-item {
        padding: 8px;
        gap: 10px;
    }
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
