/* ============================================================
   Bow'l Craft — main.css
   Modern, mobil uyumlu, karanlık-zemin tasarım
   ============================================================ */

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

:root {
  --bg:        #111109;
  --bg-card:   rgba(245,240,232,.04);
  --bg-card2:  rgba(245,240,232,.08);
  --border:    rgba(245,240,232,.12);
  --border-h:  rgba(245,240,232,.25);
  --text:      #F5F0E8;
  --text-muted:rgba(245,240,232,.55);
  --text-dim:  rgba(245,240,232,.35);
  --green:     #7CB87A;
  --green-bg:  rgba(124,184,122,.12);
  --green-bdr: rgba(124,184,122,.3);
  --amber:     #EF9F27;
  --blue:      #85B7EB;
  --red:       #f09595;
  --radius:    8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-serif:'Playfair Display', Georgia, serif;
  --shadow:    0 4px 24px rgba(0,0,0,.4);
  --transition:.18s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: .8; }

/* ─── Layout ──────────────────────────────────────────────── */
.container { width: min(1100px, 100% - 2rem); margin-inline: auto; }
.main-content { flex: 1; padding-block: 2.5rem; }

/* ─── Navbar ──────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(17,17,9,.92);
  backdrop-filter: blur(12px);
  border-bottom: .5px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font-family: var(--font-serif); font-size: 20px; font-weight: 700; color: var(--text); }
.logo span { color: var(--green); }
.nav-links { display: flex; align-items: center; gap: .25rem; list-style: none; }
.nav-links a, .nav-links button {
  color: var(--text-muted); font-size: 14px; padding: 6px 12px;
  border-radius: var(--radius); transition: all var(--transition);
}
.nav-links a:hover { color: var(--text); background: var(--bg-card2); opacity: 1; }
.nav-admin { color: var(--red) !important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text-muted); border-radius: 2px; transition: var(--transition); }

/* ─── Butonlar ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: var(--radius);
  font-family: var(--font-sans); font-size: 14px; font-weight: 500;
  cursor: pointer; border: .5px solid transparent;
  transition: all var(--transition); text-decoration: none;
}
.btn-primary  { background: var(--green); color: #111109; border-color: var(--green); }
.btn-primary:hover { opacity: .88; color: #111109; }
.btn-outline  { background: transparent; color: var(--text); border-color: var(--border-h); }
.btn-outline:hover { border-color: var(--text); opacity: 1; }
.btn-danger   { background: transparent; color: var(--red); border-color: rgba(240,149,149,.3); }
.btn-danger:hover { border-color: var(--red); opacity: 1; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 13px 28px; font-size: 15px; }
.btn-full { width: 100%; justify-content: center; }

/* ─── Kartlar ─────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: .5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.card-title { font-family: var(--font-serif); font-size: 18px; font-weight: 600; margin-bottom: 1rem; }

/* ─── Formlar ─────────────────────────────────────────────── */
.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block; font-size: 12px; font-weight: 500;
  color: var(--text-muted); margin-bottom: 6px; letter-spacing: .3px;
}
.form-control {
  width: 100%; background: rgba(245,240,232,.06);
  border: .5px solid var(--border); border-radius: var(--radius);
  padding: 10px 13px; color: var(--text);
  font-family: var(--font-sans); font-size: 14px;
  outline: none; transition: border-color var(--transition);
}
.form-control:focus { border-color: var(--green-bdr); }
.form-control::placeholder { color: var(--text-dim); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-hint { font-size: 12px; color: var(--text-dim); margin-top: 4px; }

/* ─── Flash mesajlar ──────────────────────────────────────── */
.flash {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 1.5rem; font-size: 14px;
  border-bottom: .5px solid;
  transition: opacity .5s;
}
.flash-success { background: rgba(124,184,122,.1); color: var(--green); border-color: var(--green-bdr); }
.flash-error   { background: rgba(240,149,149,.1); color: var(--red);  border-color: rgba(240,149,149,.3); }
.flash-info    { background: rgba(133,183,235,.1); color: var(--blue); border-color: rgba(133,183,235,.3); }
.flash-close   { background: none; border: none; cursor: pointer; color: inherit; font-size: 16px; padding: 0 4px; }

/* ─── Hero (Ana Sayfa) ────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 4rem 1rem 3rem;
}
.hero-tag {
  display: inline-block;
  background: var(--green-bg); color: var(--green);
  border: .5px solid var(--green-bdr);
  padding: 4px 16px; border-radius: 20px;
  font-size: 11px; font-weight: 500; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 1.25rem;
}
.hero h1 {
  font-family: var(--font-serif); font-size: clamp(36px,6vw,56px);
  font-weight: 700; line-height: 1.1; margin-bottom: 1.1rem;
}
.hero h1 em { font-style: italic; color: var(--green); }
.hero p { color: var(--text-muted); max-width: 420px; margin: 0 auto 2rem; font-size: 15px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ─── Özellik Kartları ────────────────────────────────────── */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 1rem; margin-block: 3rem; }
.feat-card { text-align: center; padding: 1.5rem 1rem; }
.feat-icon { font-size: 30px; margin-bottom: .75rem; }
.feat-card h3 { font-family: var(--font-serif); font-size: 15px; font-weight: 600; margin-bottom: .4rem; }
.feat-card p  { font-size: 13px; color: var(--text-muted); line-height: 1.55; }

/* ─── Pek Yakında Banner ──────────────────────────────────── */
.coming-soon-section { padding: 3rem 0; }
.coming-soon-title { font-family: var(--font-serif); font-size: 28px; font-weight: 600; text-align: center; margin-bottom: .5rem; }
.coming-soon-sub   { text-align: center; color: var(--text-muted); font-size: 14px; margin-bottom: 2rem; }
.soon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 1.25rem; }
.soon-card {
  position: relative; overflow: hidden;
  border: .5px solid var(--border); border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, rgba(124,184,122,.06) 0%, rgba(17,17,9,0) 60%);
}
.soon-badge {
  position: absolute; top: 1rem; right: 1rem;
  background: rgba(239,159,39,.15); color: var(--amber);
  border: .5px solid rgba(239,159,39,.3);
  padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 500;
  letter-spacing: .5px; text-transform: uppercase;
}
.soon-emoji { font-size: 40px; margin-bottom: 1rem; }
.soon-card h3 { font-family: var(--font-serif); font-size: 20px; margin-bottom: .5rem; }
.soon-card p  { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ─── Auth Sayfaları ──────────────────────────────────────── */
.auth-wrap { max-width: 420px; margin: 2rem auto; }
.auth-card { padding: 2rem; }
.auth-title { font-family: var(--font-serif); font-size: 24px; font-weight: 600; margin-bottom: .3rem; }
.auth-sub   { color: var(--text-muted); font-size: 13px; margin-bottom: 1.5rem; }
.auth-switch { text-align: center; margin-top: 1.1rem; font-size: 13px; color: var(--text-dim); }
.auth-divider { border: none; border-top: .5px solid var(--border); margin: 1.25rem 0; }

/* ─── Sipariş Builder ─────────────────────────────────────── */
.order-layout { display: grid; grid-template-columns: 1fr 300px; gap: 1.5rem; align-items: start; }
.step          { margin-bottom: 1.75rem; }
.step-header   { display: flex; align-items: center; gap: 10px; margin-bottom: .9rem; }
.step-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--green-bg); border: .5px solid var(--green-bdr);
  color: var(--green); font-size: 12px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.step-title { font-size: 14px; font-weight: 500; }
.options { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-btn {
  background: var(--bg-card); border: .5px solid var(--border);
  color: var(--text-muted); padding: 7px 14px; border-radius: var(--radius);
  font-size: 13px; cursor: pointer; font-family: var(--font-sans);
  transition: all var(--transition);
}
.opt-btn:hover { border-color: var(--green-bdr); color: var(--text); }
.opt-btn.selected { background: var(--green-bg); border-color: var(--green); color: var(--green); }
.toppings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px,1fr)); gap: 7px; }
.top-btn {
  background: var(--bg-card); border: .5px solid var(--border);
  color: var(--text-muted); padding: 8px 12px; border-radius: var(--radius);
  font-size: 13px; cursor: pointer; font-family: var(--font-sans);
  display: flex; align-items: center; gap: 7px;
  transition: all var(--transition);
}
.top-btn:hover  { border-color: var(--green-bdr); }
.top-btn.selected { background: var(--green-bg); border-color: var(--green); color: var(--text); }
.top-check {
  width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid var(--border-h); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.top-btn.selected .top-check { background: var(--green); border-color: var(--green); }
.top-check::after { content: '✓'; font-size: 10px; color: #111109; display: none; }
.top-btn.selected .top-check::after { display: block; }

/* ─── Sepet Özet ──────────────────────────────────────────── */
.summary-card { position: sticky; top: 76px; }
.summary-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 6px 0; border-bottom: .5px solid rgba(245,240,232,.07);
  font-size: 13px;
}
.summary-row:last-of-type { border-bottom: none; }
.sum-key   { color: var(--text-muted); }
.sum-val   { font-weight: 500; text-align: right; max-width: 160px; }
.price-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: .75rem; margin-top: .5rem;
  border-top: .5px solid var(--border);
}
.price-label { font-size: 13px; color: var(--text-muted); }
.price-value { font-size: 24px; font-weight: 600; color: var(--green); }

/* ─── Profil Sayfası ──────────────────────────────────────── */
.tabs { display: flex; border-bottom: .5px solid var(--border); margin-bottom: 1.5rem; }
.tab-btn {
  background: none; border: none; color: var(--text-muted);
  padding: 10px 18px; font-size: 14px; cursor: pointer;
  font-family: var(--font-sans); border-bottom: 2px solid transparent;
  margin-bottom: -1px; transition: all var(--transition);
}
.tab-btn.active { color: var(--green); border-bottom-color: var(--green); }
.tab-btn:hover { color: var(--text); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.info-table { width: 100%; }
.info-table tr td { padding: 8px 0; font-size: 14px; border-bottom: .5px solid rgba(245,240,232,.07); }
.info-table tr:last-child td { border-bottom: none; }
.info-table .td-label { color: var(--text-muted); width: 35%; }

/* ─── Admin Paneli ────────────────────────────────────────── */
.admin-header   { margin-bottom: 1.5rem; }
.admin-header h1{ font-family: var(--font-serif); font-size: 26px; font-weight: 600; }
.stats-grid     { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 12px; margin-bottom: 1.5rem; }
.stat-card      { background: var(--bg-card2); border-radius: var(--radius); padding: 1rem 1.1rem; }
.stat-label     { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.stat-value     { font-size: 22px; font-weight: 500; }
.stat-value.green { color: var(--green); }
.data-table {
  width: 100%; border-collapse: collapse; font-size: 13px;
  background: var(--bg-card); border-radius: var(--radius-lg); overflow: hidden;
}
.data-table th {
  background: rgba(245,240,232,.06); color: var(--text-muted);
  text-align: left; padding: 10px 14px; font-weight: 500;
  font-size: 11px; letter-spacing: .5px; text-transform: uppercase;
  white-space: nowrap;
}
.data-table td { padding: 10px 14px; border-top: .5px solid var(--border); color: var(--text); }
.data-table tr:hover td { background: rgba(245,240,232,.03); }
.filter-bar { display: flex; gap: 8px; margin-bottom: 1rem; flex-wrap: wrap; }
.filter-btn {
  background: transparent; border: .5px solid var(--border);
  color: var(--text-muted); padding: 5px 13px; border-radius: var(--radius);
  font-size: 12px; cursor: pointer; font-family: var(--font-sans);
  transition: all var(--transition);
}
.filter-btn.active { background: var(--green-bg); border-color: var(--green); color: var(--green); }

/* ─── Durum Pilleri ───────────────────────────────────────── */
.pill {
  display: inline-flex; padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 500; border: .5px solid; white-space: nowrap;
}
.pill-bekliyor    { background: rgba(133,183,235,.1); color: var(--blue);  border-color: rgba(133,183,235,.3); }
.pill-hazirlaniyor{ background: rgba(239,159,39,.12); color: var(--amber); border-color: rgba(239,159,39,.3); }
.pill-yolda       { background: rgba(124,184,122,.1); color: var(--green); border-color: var(--green-bdr); }
.pill-teslim      { background: rgba(124,184,122,.2); color: var(--green); border-color: var(--green); }
.pill-iptal       { background: rgba(240,149,149,.1); color: var(--red);   border-color: rgba(240,149,149,.3); }
.badge-soon {
  display: inline-block;
  background: rgba(239,159,39,.15); color: var(--amber);
  border: .5px solid rgba(239,159,39,.3);
  padding: 1px 7px; border-radius: 20px; font-size: 10px; vertical-align: middle; margin-left: 4px;
}

/* ─── Footer ──────────────────────────────────────────────── */
.site-footer  { border-top: .5px solid var(--border); padding-block: 3rem 1.5rem; margin-top: auto; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-brand .logo  { font-size: 18px; margin-bottom: .4rem; }
.footer-tagline      { font-size: 13px; color: var(--text-muted); }
.footer-links h4     { font-size: 12px; font-weight: 500; color: var(--text-muted); letter-spacing: .5px; text-transform: uppercase; margin-bottom: .75rem; }
.footer-links ul     { list-style: none; }
.footer-links li + li{ margin-top: 6px; }
.footer-links a      { font-size: 13px; color: var(--text-dim); }
.footer-links a:hover{ color: var(--text); opacity: 1; }
.footer-bottom { border-top: .5px solid var(--border); padding-top: 1.25rem; text-align: center; font-size: 12px; color: var(--text-dim); }

/* ─── Yardımcılar ─────────────────────────────────────────── */
.text-green { color: var(--green); }
.text-muted { color: var(--text-muted); }
.text-red   { color: var(--red); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.d-flex     { display: flex; }
.align-center{ align-items: center; }
.gap-2      { gap: .5rem; }
.text-center{ text-align: center; }
.section-title { font-family: var(--font-serif); font-size: 26px; font-weight: 600; margin-bottom: .4rem; }
.section-sub   { color: var(--text-muted); font-size: 14px; margin-bottom: 1.5rem; }
.divider { border: none; border-top: .5px solid var(--border); margin-block: 2.5rem; }
.empty-state { text-align: center; padding: 3rem; color: var(--text-muted); font-size: 14px; }

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links {
    display: none; flex-direction: column; position: absolute;
    top: 60px; left: 0; right: 0;
    background: rgba(17,17,9,.97); padding: 1rem;
    border-bottom: .5px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .navbar { position: relative; }
  .order-layout { grid-template-columns: 1fr; }
  .summary-card { position: static; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .stats-grid   { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .hero-cta { flex-direction: column; align-items: center; }
}
