/* assets/theme.css
   Modern takeaway theme inspired by FoodDesk + mobile app UI
*/

:root{
  --bg: #f7f8fb;
  --card: #ffffff;
  --text: #101828;
  --muted: #667085;
  --border: rgba(16,24,40,.08);

  --brand: #ff7a18;          /* orange */
  --brand2: #ffb703;         /* golden */
  --brand-dark: #e85d04;

  --accent: #8b3d6f;         /* plum accent (light use) */

  --shadow: 0 10px 30px rgba(16,24,40,.08);
  --shadow-sm: 0 6px 16px rgba(16,24,40,.08);

  --radius: 18px;
  --radius-lg: 24px;
}

html, body { height: 100%; }
body{
  background: radial-gradient(1200px 600px at 20% -10%, rgba(255,122,24,.10), transparent 60%),
              radial-gradient(900px 400px at 90% 0%, rgba(139,61,111,.10), transparent 55%),
              var(--bg);
  color: var(--text);
}

/* Bootstrap-ish helpers */
.rounded-4 { border-radius: var(--radius)!important; }
.rounded-5 { border-radius: var(--radius-lg)!important; }

.card, .modal-content{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  background: var(--card);
}

.btn{
  border-radius: 999px;
  padding: .55rem 1rem;
  font-weight: 600;
}
.btn-primary{
  border: none;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 10px 20px rgba(255,122,24,.18);
}
.btn-primary:hover{
  filter: brightness(.98);
  box-shadow: 0 12px 24px rgba(255,122,24,.22);
}
.btn-outline-primary{
  border-color: rgba(255,122,24,.35);
  color: var(--brand-dark);
}
.btn-outline-primary:hover{
  background: rgba(255,122,24,.10);
  border-color: rgba(255,122,24,.45);
  color: var(--brand-dark);
}

.badge{
  border-radius: 999px;
  font-weight: 600;
}
.badge-soft{
  background: rgba(255,122,24,.10);
  color: var(--brand-dark);
  border: 1px solid rgba(255,122,24,.18);
}

/* Top header */
.app-topbar{
  position: sticky;
  top: 0;
  z-index: 1030;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.app-topbar .navbar-brand{
  color: #fff;
  font-weight: 800;
  letter-spacing: .2px;
}
.app-topbar .btn-light {
  color: #101828 !important;
}
.app-topbar .nav-link, .app-topbar .btn{
  color: #fff;
}
.app-search{
  background: rgba(255,255,255,.22);
  border: 1px solid rgba(255,255,255,.20);
  color: #fff;
  border-radius: 999px;
  padding: .55rem 1rem;
}
.app-search::placeholder{ color: rgba(255,255,255,.85); }
.app-avatar{
  width: 38px; height: 38px;
  border-radius: 999px;
  background: rgba(255,255,255,.25);
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.22);
}

/* Hero banner */
.hero-card{
  border: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  background:
    radial-gradient(700px 300px at 30% 30%, rgba(255,255,255,.25), transparent 55%),
    linear-gradient(135deg, rgba(16,24,40,.55), rgba(16,24,40,.15)),
    url("https://images.unsplash.com/photo-1550547660-d9450f859349?auto=format&fit=crop&w=1400&q=70");
  background-size: cover;
  background-position: center;
  min-height: 180px;
  color: #fff;
}
.hero-card .hero-inner{
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: end;
  justify-content: space-between;
  min-height: 180px;
}
.hero-pill{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.20);
  padding: .35rem .75rem;
  border-radius: 999px;
  font-weight: 600;
}

/* Category chips */
.chips{
  display:flex;
  gap:.5rem;
  flex-wrap: wrap;
}
.chip{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding:.5rem .85rem;
  background:#fff;
  border:1px solid var(--border);
  border-radius:999px;
  box-shadow: 0 6px 16px rgba(16,24,40,.05);
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  user-select: none;
}
.chip:hover{ transform: translateY(-1px); transition: .15s ease; }
.chip .dot{
  width:10px; height:10px; border-radius:999px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
}

/* Item cards */
.item-card{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .15s ease, box-shadow .15s ease;
}
.item-card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.item-title{ font-weight: 800; }
.item-desc{ color: var(--muted); font-size: .92rem; }
.price-pill{
  background: rgba(255,122,24,.12);
  color: var(--brand-dark);
  border: 1px solid rgba(255,122,24,.18);
  padding: .3rem .6rem;
  border-radius: 999px;
  font-weight: 800;
}

/* Right side summary card (desktop) */
.summary-card{
  position: sticky;
  top: 92px;
}

/* Sticky cart bar (mobile) */
.sticky-cart{
  position: sticky;
  bottom: 0;
  z-index: 1030;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
}

/* Modal option groups */
.option-group{
  background: rgba(16,24,40,.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}
.small-muted{ color: var(--muted); font-size: .92rem; }

/* Checkout payment box */
#card-container{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  background: #fff;
}

/* Make mobile feel "app-like" */
@media (max-width: 576px){
  .hero-card{ min-height: 160px; }
  .hero-card .hero-inner{ min-height: 160px; }
  .container{ padding-left: 14px; padding-right: 14px; }
}
