/* ══════════════════════════════════════════════════════
   ADA KAHVECİSİ — Premium Cafe Menu
   Inspired by Peet's Coffee & specialty roaster aesthetics
══════════════════════════════════════════════════════ */

:root {
    --gold:         #C9972B;
    --gold-light:   #E8B84B;
    --gold-glow:    rgba(201,151,43,0.22);
    --bg:           #0C0906;
    --bg-card:      #161210;
    --bg-card2:     #1E1812;
    --bg-elevated:  #241E14;
    --cream:        #EDE0C8;
    --cream-dim:    #7A6A52;
    --cream-muted:  #3D3326;
    --border:       #2A2016;
    --border-light: #3A3020;
    --shadow-sm:    0 2px 12px rgba(0,0,0,0.4);
    --shadow-md:    0 6px 24px rgba(0,0,0,0.6);
    --shadow-gold:  0 4px 20px rgba(201,151,43,0.25);
    --radius:       16px;
    --radius-sm:    10px;
    --font-serif:   'Playfair Display', Georgia, serif;
    --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--cream);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ══════════════════════════════════════════
   HEADER
══════════════════════════════════════════ */
.header {
    position: relative;
    background: var(--bg);
    overflow: hidden;
    padding: 0;
}

.header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(201,151,43,0.12) 0%, transparent 70%),
        linear-gradient(180deg, #0A0704 0%, #0C0906 100%);
}

/* Arka plan desen */
.header::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 40px,
            rgba(201,151,43,0.02) 40px,
            rgba(201,151,43,0.02) 41px
        );
}

.header-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 44px 20px 36px;
}

.header-logo {
    font-size: 64px;
    line-height: 1;
    margin-bottom: 14px;
    filter: drop-shadow(0 0 24px rgba(201,151,43,0.4));
}

.header-name {
    font-family: var(--font-serif);
    font-size: 34px;
    font-weight: 700;
    color: var(--gold-light);
    letter-spacing: 2px;
    text-shadow: 0 0 40px var(--gold-glow);
    margin-bottom: 8px;
}

.header-slogan {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--cream-dim);
    font-style: italic;
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 18px;
}

.header-meta {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.header-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    background: rgba(201,151,43,0.06);
    font-size: 12px;
    color: var(--cream-dim);
    font-weight: 500;
}

/* ══════════════════════════════════════════
   SEARCH
══════════════════════════════════════════ */
.search-wrap {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 10px 14px 8px;
    background: rgba(12,9,6,0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 11px 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-box:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-glow);
}

.search-box svg { color: var(--cream-dim); flex-shrink: 0; }

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--font-sans);
    font-size: 15px;
    color: var(--cream);
}

.search-box input::placeholder { color: var(--cream-dim); }

/* ══════════════════════════════════════════
   KATEGORİ BAR
══════════════════════════════════════════ */
#category-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 14px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}
#category-bar::-webkit-scrollbar { display: none; }

/* ══════════════════════════════════════════
   KATEGORİ OK BUTONLARI
══════════════════════════════════════════ */
.cat-wrap {
    position: relative;
}
.cat-arrow {
    position: absolute;
    top: 0; bottom: 0;
    z-index: 10;
    width: 48px;
    border: none;
    cursor: pointer;
    font-size: 26px;
    color: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
    line-height: 1;
}
.cat-arrow-l {
    left: 0;
    background: linear-gradient(to right, rgba(12,9,6,0.96) 30%, transparent);
    padding-right: 8px;
}
.cat-arrow-r {
    right: 0;
    background: linear-gradient(to left, rgba(12,9,6,0.96) 30%, transparent);
    padding-left: 8px;
}
.cat-wrap.show-left  .cat-arrow-l { opacity: 1; pointer-events: auto; }
.cat-wrap.show-right .cat-arrow-r { opacity: 1; pointer-events: auto; }

.category-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 24px;
    border: 1px solid var(--border-light);
    background: var(--bg-card);
    cursor: pointer;
    transition: all 0.22s cubic-bezier(.4,0,.2,1);
    white-space: nowrap;
}

.cat-icon { font-size: 15px; }
.cat-name { font-family: var(--font-sans); font-size: 12px; font-weight: 500; color: var(--cream-dim); }

.category-btn:active { transform: scale(0.94); }

.category-btn.active {
    background: var(--gold);
    border-color: var(--gold);
    box-shadow: var(--shadow-gold);
}
.category-btn.active .cat-name { color: #fff; font-weight: 700; }
.category-btn.active .cat-icon { filter: brightness(0) invert(1); }

/* ══════════════════════════════════════════
   SECTION HEADERS
══════════════════════════════════════════ */
.featured-section,
.menu-section { padding: 0 0 8px; }

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 14px 14px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 600;
    color: var(--cream);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.section-dot {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}

/* ══════════════════════════════════════════
   ÖNE ÇIKANLAR ŞERİDİ
══════════════════════════════════════════ */
#featured-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 0 14px 16px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
#featured-strip::-webkit-scrollbar { display: none; }

.featured-card {
    flex-shrink: 0;
    width: 140px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-light);
    background: var(--bg-card);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.featured-card:active {
    transform: scale(0.96);
    box-shadow: var(--shadow-gold);
}

.featured-img {
    width: 100%;
    height: 110px;
    position: relative;
    overflow: hidden;
    background: var(--bg-elevated);
    display: flex; align-items: center; justify-content: center;
}

.featured-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.featured-card:active .featured-img img { transform: scale(1.05); }

.featured-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(10,7,4,0.85) 100%);
}

.featured-emoji { font-size: 40px; }

.featured-info {
    padding: 8px 10px 10px;
}

.featured-name {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--cream);
    margin-bottom: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--gold-light);
}

.featured-badge {
    position: absolute;
    top: 7px;
    right: 7px;
    background: var(--gold);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 8px;
    z-index: 2;
}

/* ══════════════════════════════════════════
   MENÜ GRİD
══════════════════════════════════════════ */
#menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 10px 48px;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 64px 20px;
    color: var(--cream-dim);
    font-size: 15px;
}

/* ══════════════════════════════════════════
   ÜRÜN KARTI — Overlay stili (Starbucks/Peet's)
══════════════════════════════════════════ */
@keyframes cardIn {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.product-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-light);
    background: var(--bg-card);
    cursor: pointer;
    transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
    aspect-ratio: 3/4;
}

.product-card.card-in {
    animation: cardIn 0.38s cubic-bezier(.4,0,.2,1) both;
}

.product-card:active {
    transform: scale(0.96);
    border-color: var(--gold);
    box-shadow: var(--shadow-gold);
}

/* Fotoğraf — tüm kartı kaplar */
.product-image {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
}

.product-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.product-card:active .product-image img { transform: scale(1.06); }

/* Degrade overlay — alta doğru koyulaşır */
.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0) 25%,
        rgba(0,0,0,0.25) 50%,
        rgba(8,5,2,0.88) 80%,
        rgba(8,5,2,0.97) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 10px 11px;
}

.product-emoji-center {
    font-size: 52px;
    line-height: 1;
    filter: drop-shadow(0 3px 12px rgba(0,0,0,0.8));
}

.product-name {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 5px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.product-desc {
    font-size: 10.5px;
    color: rgba(255,255,255,0.62);
    margin-bottom: 7px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--gold-light);
    letter-spacing: -0.3px;
}

.popular-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--gold);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    letter-spacing: 0.2px;
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.footer {
    background: #080604;
    border-top: 1px solid var(--border);
    padding: 36px 20px 44px;
    text-align: center;
}

.footer-brand {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
    color: var(--gold-light);
    margin-bottom: 6px;
}

.footer-desc {
    font-size: 12px;
    color: var(--cream-dim);
    font-style: italic;
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 13px;
    align-items: center;
    margin-bottom: 0;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--cream-dim);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}
.footer-link svg { flex-shrink: 0; }
.footer-link:active { color: var(--gold-light); }

.footer-divider {
    height: 1px;
    background: var(--border);
    margin: 24px 0 16px;
}

.footer-copy {
    font-size: 11px;
    color: var(--cream-muted);
}

.footer-dev {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 8px;
    font-size: 10px;
    color: rgba(230,210,180,0.3);
    letter-spacing: 0.02em;
}
.footer-dev-sep { opacity: 0.5; }
.footer-dev-link {
    color: rgba(230,210,180,0.38);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    transition: color 0.2s;
}
.footer-dev-link:hover { color: rgba(230,210,180,0.7); }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */

/* Çok küçük ekranlar */
@media (max-width: 360px) {
    .header-name { font-size: 26px; }
    .header-logo { font-size: 48px; }
    #menu-grid { grid-template-columns: 1fr; }
    .product-card { aspect-ratio: 5/3; }
}

/* Tablet */
@media (min-width: 560px) {
    #menu-grid {
        grid-template-columns: repeat(3, 1fr);
        padding: 0 14px 56px;
        max-width: 760px; margin: 0 auto;
    }
    .search-wrap { max-width: 760px; margin-left: auto; margin-right: auto; }
    .cat-wrap { max-width: 760px; margin-left: auto; margin-right: auto; }
    .featured-section .section-header,
    .menu-section .section-header { max-width: 760px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
    #featured-strip { max-width: 760px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
    .header-name { font-size: 38px; }
    .header-logo { font-size: 72px; }
}

/* Masaüstü */
@media (min-width: 900px) {
    #menu-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 1040px;
    }
    .search-wrap, .cat-wrap,
    .featured-section .section-header,
    .menu-section .section-header { max-width: 1040px; }
    #featured-strip { max-width: 1040px; }
}
