/* ================================================
   QR MENU - Cappa Masa Style
   Ultra clean, single-page menu
   ================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    background: #f0f0f0;
    color: #222;
    line-height: 1.5;
    overflow-x: hidden;
}

::selection { background: #c0392b; color: #fff; }

/* === HEADER === */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.site-header.scrolled {
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* === MENU CONTENT WRAPPER === */
.menu-content {
    max-width: 640px;
    margin: 0 auto;
    background: #f0f0f0;
}

/* === LANDING PAGE === */
.landing {
    min-height: calc(100vh - 50px);
}

.landing-bg {
    min-height: calc(100vh - 50px);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}

.landing-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.landing-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}

.landing-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 40px 20px 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.landing-logo {
    height: 50px;
    margin-bottom: 40px;
    filter: brightness(10);
}

.landing-title {
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: -0.02em;
}

.landing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    width: 100%;
    max-width: 400px;
}

.landing-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 22px 10px;
    background: rgba(192,57,43,0.4);
    color: #fff;
    text-decoration: none;
    transition: background 0.15s;
    border-radius: 2px;
}

.landing-btn:active {
    background: rgba(192,57,43,0.6);
}

.landing-btn-wide {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 3px);
}

.landing-btn-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: brightness(10);
}

.landing-btn-icon {
    width: 28px;
    height: 28px;
    opacity: 0.9;
}

.landing-btn-lucide {
    width: 40px;
    height: 40px;
    color: #fff;
    opacity: 0.9;
}

.landing-btn-text {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-align: center;
    line-height: 1.2;
}

/* === CATEGORY SECTION === */
.cat-section {
    margin-bottom: 12px;
}

/* Category Cover Image */
.cat-cover {
    position: relative;
    width: 100%;
    height: 140px;
    overflow: hidden;
    margin: 0 8px;
    width: calc(100% - 16px);
    border-radius: 0;
}

.cat-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cat-cover-empty {
    width: 100%;
    height: 100%;
    background: #ddd;
}

.cat-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.25) 0%, transparent 50%);
}

.cat-cover-label {
    position: absolute;
    bottom: 0;
    left: 0;
    background: #c0392b;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 6px 18px 6px 10px;
}

/* === ITEM LIST === */
.item-list {
    list-style: none;
    background: #fff;
    margin: 0 8px;
    position: relative;
    z-index: 2;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.item-list li {
    border-bottom: 1px solid #f0f0f0;
}

.item-list li:last-child {
    border-bottom: none;
}

.item-list li a {
    display: block;
    padding: 10px 12px;
    text-decoration: none;
    color: #222;
    transition: background 0.1s;
}

.item-list li a:active {
    background: #fafafa;
}

.item-row {
    width: 100%;
}

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

.item-info h4 {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    line-height: 1.3;
    flex: 1;
    min-width: 0;
}

.item-info h4 small {
    font-weight: 400;
    font-size: 0.72rem;
    text-transform: none;
    color: #888;
}

.item-price {
    font-size: 0.85rem;
    font-weight: 800;
    white-space: nowrap;
    flex-shrink: 0;
    color: #222;
}

.item-desc {
    font-size: 0.72rem;
    color: #999;
    margin-top: 2px;
    line-height: 1.35;
}

/* === CATEGORY PAGE (standalone) === */
.cat-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.cat-banner img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.cat-banner-label {
    position: absolute;
    bottom: 20px;
    left: 0;
    background: #c0392b;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 8px 24px 8px 16px;
}

.cat-banner-placeholder {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8e8e8;
}

/* === MENU LIST (used on category page) === */
.menu-list {
    background: #fff;
}

.menu-item {
    display: block;
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: #222;
    transition: background 0.1s;
}

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

.menu-item:active {
    background: #fafafa;
}

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

.menu-item-name {
    font-size: 0.92rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    line-height: 1.3;
    flex: 1;
}

.menu-item-desc {
    font-size: 0.78rem;
    color: #888;
    margin-top: 4px;
    line-height: 1.4;
}

.menu-item-price {
    font-size: 0.95rem;
    font-weight: 800;
    white-space: nowrap;
    flex-shrink: 0;
}

/* === ITEM DETAIL === */
.detail-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 18px 16px;
    font-size: 0.75rem;
    background: #fff;
    justify-content: center;
    flex-wrap: wrap;
}

.detail-breadcrumb a {
    color: #444;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.detail-breadcrumb a:hover { color: #c0392b; }

.detail-sep { color: #ccc; font-size: 0.85rem; }

.detail-current {
    color: #bbb;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Detail Card */
.detail-card {
    background: #fff;
    margin: 0 16px;
    padding: 0 24px 24px;
    text-align: center;
}

.detail-line {
    height: 3px;
    background: #c0392b;
    margin: 0 -24px;
}

.detail-arrow {
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 9px solid #c0392b;
    margin: 0 auto 18px;
}

.detail-name {
    font-size: 1.6rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.2;
    color: #222;
    margin-bottom: 8px;
    font-family: 'Inter', system-ui, sans-serif;
}

.detail-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 14px;
}

.detail-description {
    font-size: 0.88rem;
    color: #444;
    line-height: 1.7;
    margin: 0;
}

.detail-allergens {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 14px;
}

.detail-allergen-tag {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 3px;
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
}

/* Similar Products */
.detail-similar-divider {
    height: 1px;
    background: #ddd;
    margin: 24px 16px 0;
}

.detail-similar-title {
    text-align: center;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 16px 0 10px;
    color: #222;
}

.detail-similar-list {
    background: #fff;
    margin: 0 16px 16px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    overflow: hidden;
}

.detail-similar-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 14px 18px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: #222;
    gap: 16px;
    transition: background 0.1s;
}

.detail-similar-item:last-child {
    border-bottom: none;
}

.detail-similar-item:active {
    background: #fafafa;
}

.detail-similar-name {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    flex: 1;
    line-height: 1.3;
}

.detail-similar-price {
    font-size: 0.9rem;
    font-weight: 800;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Detail Footer Info */
.detail-footer-info {
    text-align: center;
    padding: 20px 16px 90px;
    font-size: 0.75rem;
    color: #aaa;
    line-height: 1.6;
}

.detail-footer-info p {
    margin-bottom: 4px;
}

/* === BACK BUTTON (floating) === */
.back-float {
    position: fixed;
    bottom: 80px;
    right: 14px;
    z-index: 30;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    color: #c0392b;
}

.back-float-icon {
    width: 42px;
    height: 42px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.back-float-label {
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.1;
    text-align: center;
}

/* === BOTTOM NAV (Cappa Masa Exact) === */
.btm {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
}

.btm-wave {
    margin-bottom: -1px;
    pointer-events: none;
    line-height: 0;
}

.btm-wave img {
    display: block;
    width: 100%;
    height: 30px;
    object-fit: fill;
}

.btm-bar {
    background: transparent;
}

.btm-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 640px;
    margin: 0 auto;
    padding: 0 16px 6px;
    padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
    min-height: 36px;
}

/* Sol ikonlar - Cappa tarzı: border'lı daireler */
.btm-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btm-icon {
    display: flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    color: #333;
    text-decoration: none;
    border-radius: 50%;
    border: 1.5px solid #aaa;
    transition: all 0.15s;
}

.btm-icon i { width: 14px; height: 14px; }

.btm-icon:hover {
    color: #c0392b;
    border-color: #c0392b;
}

/* Orta buton - dalganın ortasından çıkıyor */
.btm-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.btm-circle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(145deg, #c0392b, #a93226);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 3px 10px rgba(192,57,43,0.35);
    border: 3px solid rgba(192,57,43,0.15);
    transition: transform 0.15s;
}

.btm-center:active .btm-circle {
    transform: scale(0.95);
}

.btm-label {
    font-size: 0.58rem;
    font-weight: 800;
    color: #333;
    letter-spacing: 0.06em;
    margin-top: 2px;
}

/* Sağ - bayrak + dropdown */
.btm-right {
    position: relative;
}

.btm-flag {
    display: flex;
    align-items: center;
    gap: 3px;
    border: none;
    background: none;
    cursor: pointer;
    padding: 4px;
}

.btm-flag img {
    width: 30px;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
}

.btm-dropdown {
    display: none;
    position: absolute;
    bottom: calc(100% + 6px);
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    overflow: hidden;
    min-width: 130px;
}

.btm-dropdown.show { display: block; }

.btm-dropdown a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    text-decoration: none;
    color: #333;
    font-size: 0.8rem;
    font-weight: 500;
}

.btm-dropdown a:hover { background: #f7f7f7; }
.btm-dropdown a + a { border-top: 1px solid #f0f0f0; }

/* === FOOTER === */
.site-footer {
    background: #f5f5f5;
    padding: 20px 16px;
    padding-bottom: 90px;
    text-align: center;
}

.footer-text {
    font-size: 0.75rem;
    color: #aaa;
    line-height: 1.6;
}

/* === PAGE TRANSITION === */
.page-transition {
    animation: fadeIn 0.3s ease;
}

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

/* === EMPTY STATE === */
.empty-msg {
    text-align: center;
    padding: 40px 16px;
    color: #bbb;
    font-size: 0.9rem;
    background: #fff;
}

/* === RESPONSIVE === */
@media (min-width: 640px) {
    .cat-cover { height: 180px; }
    .cat-banner img { height: 200px; }
}

@media (max-width: 360px) {
    .bn-social { gap: 3px; }
    .bn-social a { width: 28px; height: 28px; }
    .bn-inner { padding: 0 10px 8px; }
}
