/* Public Menu Styles - Mobile First */

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

:root {
    --bg: #FFFFFF;
    --bg-card: #FAFAFA;
    --text: #1A1A1A;
    --text-secondary: #6B7280;
    --price: #111827;
    --border: #E5E7EB;
    --accent: #374151;
    --font: 'Libre Baskerville', Georgia, serif;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    background: #f3efe6;
}

body{
    background: #f3efe6 url(/assets/img/sarmasik.png) 0 0 no-repeat;
}

body.page-home{background-position:top center;background-attachment: fixed;}

/* Wrapper */
.menu-wrapper {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 16px;
    padding-bottom: 100px;
    min-height: 100vh;
}

/* Menu Header */
.menu-header {
    text-align: center;
    padding: 30px 0;
}

.menu-logo {
    max-width: 180px;
    margin-bottom: 8px;
    object-fit: contain;
}

.menu-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.3px;
}

/* Category Header (detail page) */
.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 0 12px;
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #f3efe6;
}

.back-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    color: var(--text);
    text-decoration: none;
    transition: background 0.2s;
    flex-shrink: 0;
}

.back-button:hover { background: var(--bg-card); }

.category-page-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.category-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text);
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-card);
    transition: transform 0.2s, box-shadow 0.2s;
    animation: fadeInUp 0.5s ease both;
    -webkit-tap-highlight-color: transparent;
}

.category-card:active {
    transform: scale(0.98);
}

.category-card-image {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #e8dfcc;
    padding: 5px 0;
}

.category-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.category-card:hover .category-card-image img {
    transform: scale(1.05);
}

.category-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #E5E7EB 0%, #D1D5DB 100%);
}

.category-card-placeholder span {
    font-size: 36px;
    font-weight: 700;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
}

.category-card-name {
    padding: 12px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

/* Menu Items List */
.items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.menu-item {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    animation: slideInRight 0.4s ease both;
}

.menu-item-image {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
}

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

.menu-item-content {
    padding: 14px 16px;
}

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

.menu-item-header.no-description {
    align-items: center;
}

.menu-item-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    flex: 1;
    line-height: 1.3;
}

.menu-item-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--price);
    white-space: nowrap;
    flex-shrink: 0;
}

.menu-item-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 6px;
    line-height: 1.4;
}

/* Empty State */
.empty-message {
    text-align: center;
    padding: 48px 24px;
    color: #000;
    font-size: 15px;
    background: #fff;
    border-radius: 16px;
}

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .category-card,
    .menu-item {
        animation: none;
    }

    .category-card-image img {
        transition: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #111111;
        --bg-card: #1A1A1A;
        --text: #F3F4F6;
        --text-secondary: #9CA3AF;
        --price: #F9FAFB;
        --border: #374151;
        --accent: #9CA3AF;
    }

    .category-card-placeholder {
        background: linear-gradient(135deg, #374151 0%, #4B5563 100%);
    }

    body { background: var(--bg); }
}

/* Tablet & Desktop */
@media (min-width: 481px) {
    .menu-wrapper {
        padding-left:24px;
        padding-right:24px;
    }

    .menu-header { padding: 32px 0 20px; }
    .menu-title { font-size: 26px; }

    .category-card-name { font-size: 16px; }
}

/* Print styles */
@media print {
    .back-button { display: none; }

    .menu-item {
        break-inside: avoid;
        animation: none;
        border: 1px solid #ddd;
    }

    .category-card {
        animation: none;
    }
}


.social{text-align: center;padding-top: 100px;font-family: sans-serif;font-size: 13px;line-height: 17px;}
.social > div{background-color: #fff;display: inline-block;padding: 20px;background-color: #fff;border-radius: 16px;width: 250px;}
.social p{margin-bottom: 20px;text-wrap: balance;}
.social a{display: inline-flex;align-items: center;color:#000;text-decoration: none;gap:4px;font-weight: bold;font-size: 14px;}
.social img{display: block;width: 16px;height: 16px;}
.social img span{color:#000;line-height: 1;}