/*
Theme Name: QR Menu Premium
Theme URI: https://bugrasasirt.com.tr/
Author: Buğra Yazılım
Author URI: https://bugrasasirt.com.tr/
Description: Mobil uyumlu premium QR menü WordPress teması. Admin panelden ürün, görsel ve kategori yönetimi.
Version: 2.0.0
Requires at least: 5.8
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: qr-menu-premium
*/

:root{
  --bg:#f8f5ef;
  --bg-soft:#fcfbf8;
  --card:#ffffff;
  --text:#1f1a17;
  --muted:#7d736b;
  --gold:#c49b3d;
  --gold-2:#e0bc68;
  --gold-dark:#a57a21;
  --line:rgba(196,155,61,.16);
  --line-strong:rgba(196,155,61,.28);
  --shadow:0 14px 40px rgba(36,26,12,.08);
  --radius:24px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}

body{
  margin:0;
  font-family:'Poppins',sans-serif;
  color:var(--text);
  min-height:100vh;
  background:
    radial-gradient(circle at top, rgba(196,155,61,.08), transparent 35%),
    linear-gradient(180deg, #fcfbf8 0%, #f8f5ef 100%);
}

img{max-width:100%;display:block}
button,input{font:inherit}
a{text-decoration:none;color:inherit}

.site-container{
  width:min(100%,760px);
  margin:0 auto;
  padding:18px 14px 60px;
}

.hero{
  position:relative;
  background:rgba(255,255,255,.84);
  backdrop-filter:blur(12px);
  border:1px solid var(--line);
  border-radius:32px;
  box-shadow:var(--shadow);
  padding:22px 18px 18px;
  overflow:hidden;
}

.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(135deg, rgba(196,155,61,.09), transparent 48%);
  pointer-events:none;
}

.top-line{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  position:relative;
  z-index:1;
  margin-bottom:14px;
}

.status-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(196,155,61,.10);
  border:1px solid rgba(196,155,61,.15);
  color:var(--gold-dark);
  font-size:12px;
  font-weight:700;
}

.status-dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:linear-gradient(135deg,var(--gold),var(--gold-2));
  box-shadow:0 0 0 4px rgba(196,155,61,.12);
}

.menu-note{
  color:var(--muted);
  font-size:12px;
  font-weight:500;
}

/* LOGO ALANI DÜZELTİLDİ */
.brand{
  display:flex;
  align-items:center;
  gap:14px;
  position:relative;
  z-index:1;
}

.brand .custom-logo-link{
  display:flex !important;
  align-items:center;
  justify-content:center;
  width:92px;
  height:92px;
  min-width:92px;
  border-radius:22px;
  background:#fff;
  border:1px solid var(--line);
  box-shadow:0 10px 25px rgba(0,0,0,.06);
  overflow:hidden;
  flex:0 0 92px;
  padding:8px;
}

.brand .custom-logo{
  display:block !important;
  width:100% !important;
  height:100% !important;
  max-width:100% !important;
  max-height:100% !important;
  object-fit:contain !important;
  object-position:center center !important;
  padding:0 !important;
  margin:0 !important;
  border:none !important;
  box-shadow:none !important;
  background:transparent !important;
}

/* Eski placeholder veya manuel logo resmi varsa */
.brand-logo,
.brand img.brand-logo{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
  background:transparent;
  border:none;
  box-shadow:none;
  padding:0;
  border-radius:0;
}

.brand-text{
  flex:1;
  min-width:0;
}

.brand-text h1{
  font-family:'Playfair Display',serif;
  font-size:30px;
  line-height:1.05;
  font-weight:800;
  margin:0 0 5px;
  color:#221a12;
}

.brand-text p{
  color:var(--muted);
  font-size:13px;
  line-height:1.55;
  margin:0;
}

.hero-badges{
  margin-top:16px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  position:relative;
  z-index:1;
}

.badge{
  padding:9px 12px;
  border-radius:999px;
  background:#fff;
  border:1px solid var(--line);
  font-size:12px;
  font-weight:600;
  color:#7d6440;
}

.search-box{
  margin-top:16px;
  position:relative;
  z-index:1;
}

.search-box input{
  width:100%;
  height:54px;
  border:none;
  outline:none;
  background:#fff;
  border-radius:18px;
  padding:0 16px 0 48px;
  font-size:15px;
  color:var(--text);
  box-shadow:inset 0 0 0 1px rgba(196,155,61,.16);
  transition:box-shadow .2s ease;
}

.search-box input:focus{
  box-shadow:inset 0 0 0 1px rgba(196,155,61,.32),0 0 0 4px rgba(196,155,61,.08);
}

.search-box svg{
  position:absolute;
  left:16px;
  top:50%;
  transform:translateY(-50%);
  width:18px;
  height:18px;
  opacity:.55;
}

.sticky-tabs-wrap{
  position:sticky;
  top:10px;
  z-index:40;
  margin-top:16px;
}

.sticky-tabs{
  display:flex;
  gap:10px;
  overflow:auto;
  padding:6px 2px;
  scrollbar-width:none;
}

.sticky-tabs::-webkit-scrollbar{display:none}

.tab-btn{
  flex:0 0 auto;
  border:none;
  background:rgba(255,255,255,.92);
  color:var(--text);
  border:1px solid var(--line);
  box-shadow:0 8px 24px rgba(36,26,12,.05);
  padding:12px 16px;
  border-radius:999px;
  font-size:13px;
  font-weight:600;
  cursor:pointer;
  transition:.2s ease;
}

.tab-btn:hover{transform:translateY(-1px)}

.tab-btn.active{
  background:linear-gradient(135deg,var(--gold),var(--gold-2));
  color:#fff;
  border-color:transparent;
  box-shadow:0 12px 26px rgba(196,155,61,.24);
}

.section{
  margin-top:24px;
}

.section-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
  padding:0 4px;
}

.section-head h2{
  font-family:'Playfair Display',serif;
  font-size:28px;
  line-height:1;
  color:#221a12;
  margin:0;
}

.section-head span{
  font-size:12px;
  color:var(--muted);
}

.featured-slider{
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
}

.featured-card{
  position:relative;
  background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(255,255,255,.90));
  border:1px solid var(--line);
  border-radius:28px;
  box-shadow:var(--shadow);
  padding:16px;
  overflow:hidden;
}

.featured-card::after{
  content:"";
  position:absolute;
  right:-40px;
  top:-40px;
  width:140px;
  height:140px;
  background:radial-gradient(circle, rgba(196,155,61,.18), transparent 70%);
  pointer-events:none;
}

.featured-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
  position:relative;
  z-index:1;
}

.featured-kat{
  font-size:12px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#af8540;
  font-weight:700;
}

.featured-tag{
  padding:7px 10px;
  border-radius:999px;
  background:rgba(196,155,61,.12);
  color:#9c7533;
  font-size:11px;
  font-weight:700;
}

.featured-body{
  display:grid;
  grid-template-columns:108px 1fr;
  gap:14px;
  align-items:center;
  position:relative;
  z-index:1;
}

.featured-img{
  width:108px;
  height:108px;
  object-fit:contain;
  border-radius:22px;
  background:#fff;
  border:1px solid rgba(196,155,61,.12);
  padding:8px;
  box-shadow:0 10px 24px rgba(0,0,0,.04);
}

.featured-name{
  font-family:'Playfair Display',serif;
  font-size:24px;
  line-height:1.08;
  margin-bottom:6px;
  color:#1f1710;
}

.featured-desc{
  color:var(--muted);
  font-size:13px;
  line-height:1.55;
  margin-bottom:10px;
}

.featured-price{
  font-family:'Playfair Display',serif;
  font-size:28px;
  font-weight:800;
  background:linear-gradient(135deg,#b8871f,#ddb85f);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}

.menu-grid{
  display:grid;
  gap:12px;
}

.menu-card{
  display:grid;
  grid-template-columns:88px 1fr;
  gap:14px;
  padding:13px;
  background:rgba(255,255,255,.92);
  border:1px solid var(--line);
  border-radius:22px;
  box-shadow:var(--shadow);
  align-items:center;
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}

.menu-card:hover{
  transform:translateY(-2px);
  border-color:var(--line-strong);
  box-shadow:0 16px 34px rgba(36,26,12,.09);
}

.menu-card img{
  width:88px;
  height:88px;
  object-fit:contain;
  background:#fff;
  border-radius:18px;
  border:1px solid rgba(196,155,61,.12);
  padding:8px;
}

.menu-info h3{
  font-size:17px;
  line-height:1.2;
  margin:0 0 6px;
  font-weight:700;
  color:#231a12;
}

.menu-info p{
  font-size:13px;
  color:var(--muted);
  line-height:1.45;
  margin:0 0 8px;
}

.menu-bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  flex-wrap:wrap;
}

.price{
  font-family:'Playfair Display',serif;
  font-size:24px;
  font-weight:800;
  color:#ba8d2e;
}

.mini-chip{
  font-size:11px;
  font-weight:700;
  color:#8e6d34;
  background:rgba(196,155,61,.12);
  padding:7px 10px;
  border-radius:999px;
  white-space:nowrap;
}

.empty-state{
  text-align:center;
  color:var(--muted);
  padding:20px 8px 6px;
  font-size:14px;
}

.footer-note{
  margin-top:24px;
  text-align:center;
  font-size:12px;
  color:var(--muted);
  padding:12px 8px 0;
}

.admin-note{
  margin:14px 0 0;
  padding:12px 14px;
  background:#fff7e7;
  border:1px solid rgba(196,155,61,.25);
  border-radius:16px;
  font-size:13px;
  color:#775e34;
}

@media (min-width:700px){
  .featured-slider{grid-template-columns:1fr 1fr}
  .menu-grid{grid-template-columns:1fr 1fr}
  .brand-text h1{font-size:34px}
}

@media (max-width:420px){
  .featured-body{grid-template-columns:92px 1fr}
  .featured-img{width:92px;height:92px}
  .menu-card{grid-template-columns:78px 1fr}
  .menu-card img{width:78px;height:78px}
  .brand .custom-logo-link{
    width:78px;
    height:78px;
    min-width:78px;
    flex:0 0 78px;
    border-radius:18px;
    padding:6px;
  }
  .brand-text h1{font-size:26px}
}