/*
  Guldkroken – Fräsch redesign (2026)
  Fokus: modern, luftig, mobilvänlig.
  Behåller alla befintliga klassnamn/ID:n så att script.20260113g.js fortsätter fungera.
*/

:root{
  --bg: #0b0f17;
  --surface: rgba(255,255,255,0.10);
  --surface-2: rgba(255,255,255,0.14);
  --stroke: rgba(255,255,255,0.16);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.70);
  --muted-2: rgba(255,255,255,0.55);

  --gold-1: #f7d36b;
  --gold-2: #ffb800;
  --gold-3: #e09300;

  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;

  --shadow-1: 0 10px 30px rgba(0,0,0,0.35);
  --shadow-2: 0 12px 40px rgba(0,0,0,0.45);

  /* UI heights */
  --topbar-h: 86px;
}

*{ box-sizing: border-box; }

html, body{ height: 100%; }

/* Smooth anchors + ta höjd för sticky header */
html{
  scroll-behavior: smooth;
  /* Lite extra så att första raden i en kategori inte hamnar bakom topbaren */
  scroll-padding-top: calc(var(--topbar-h) + 46px);
}

body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

/* -----------------------------
   TOPBAR (Welcome.html)
   ----------------------------- */
.topbar{
  /* Fixed istället för sticky (sticky kan faila beroende på scroll/overflow) */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  /* Mer solid så den aldrig "försvinner" visuellt vid scroll */
  background: rgba(11,15,23,0.98);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 12px 36px rgba(0,0,0,0.50);
}

.topbar-inner{
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.brand{
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.topbar-right{
  display: flex;
  align-items: flex-start;
}

/* Öppettider i topbaren */
.hours-dd{
  position: relative;
}

.hours-dd summary{
  list-style: none;
  cursor: pointer;
}

.hours-dd summary::-webkit-details-marker{
  display: none;
}

.hours-panel{
  position: absolute;
  right: 0;
  margin-top: 10px;
  min-width: 260px;
  max-width: 360px;
  z-index: 2000;
}

.hours-dd[open] .hours-panel{
  animation: fadeIn 140ms ease-out;
}

@keyframes fadeIn{
  from{ opacity: 0; transform: translateY(-4px); }
  to{ opacity: 1; transform: translateY(0); }
}

.brand-title{
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 800;
  letter-spacing: 0.2px;
  /* gör att öppettider kan ligga till höger om "Plats" */
  display: flex;
  align-items: flex-start;
}

.brand-title-row{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.brand-left{
  display: flex;
  align-items: baseline;
  gap: 14px;
  min-width: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.brand-name{
  white-space: nowrap;
}

.brand-links{
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.brand-link{
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

.brand-link:hover{
  text-decoration: underline;
}

/* Öppettider inline i topbaren (bredvid "Plats") */
.hours-inline-mini{
  /* Ingen container – bara text, men fortfarande snygg dot-leader */
  margin-left: 14px;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  color: rgba(255,255,255,0.92);
  font-size: 12px;
  line-height: 1.2;
  vertical-align: middle;
  max-width: 100%;
}

.hours-mini-row{
  display: flex;
  align-items: baseline;
  gap: 8px;
  width: min(240px, 40vw);
}

@media (max-width: 860px){
  /* Mobil: undvik att "Plats" hamnar ovanpå öppettider – låt tiderna ta egen rad */
  :root{ --topbar-h: 122px; }
  .brand-left{ width: 100%; justify-content: center; }
  .hours-inline-mini{ width: 100%; margin-left: 0; margin-top: 6px; align-items: center; }
  .hours-mini-row{ width: min(360px, 92vw); }
}

.hours-mini-label{
  white-space: nowrap;
  font-weight: 800;
  opacity: 0.95;
}

.hours-inline-mini .hours-dots{
  flex: 1;
  height: 1px;
  background-image: radial-gradient(circle, rgba(255,255,255,0.38) 1px, transparent 1.6px);
  background-size: 10px 2px;
  background-repeat: repeat-x;
  background-position: left 60%;
  opacity: 0.85;
}

.hours-mini-time{
  white-space: nowrap;
  opacity: 0.95;
}

.hours-mini-sep{
  opacity: 0.45;
  margin: 0 6px;
}

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

.pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-size: 12px;
  line-height: 1;
  text-decoration: none;
}

.pill--ghost{
  background: rgba(0,0,0,0.20);
}

.pill:hover{
  border-color: rgba(255,184,0,0.35);
  background: rgba(255,255,255,0.09);
}

.pill--ghost:hover{
  background: rgba(0,0,0,0.30);
}

/* Scriptet injectar länkar i #siteTitle med inline style.
   Vi tar över looken här + gör den mer konsekvent. */
#siteTitle, #siteTitle *{
  color: var(--text) !important;
}

#siteTitle a{
  color: var(--gold-1) !important;
  text-decoration: none !important;
  font-weight: 800;
}

#siteTitle a:hover{
  text-decoration: underline !important;
}

/* Bakgrundsbild + overlay */
body::before{
  content: "";
  position: fixed;
  inset: 0;
  background: url('../img/Back.webp') center/cover no-repeat;
  filter: saturate(1.1) contrast(1.05);
  opacity: 0.22;
  z-index: -2;
}

body::after{
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1200px 600px at 20% 0%, rgba(255,184,0,0.14), transparent 60%),
    radial-gradient(900px 600px at 85% 10%, rgba(247,211,107,0.12), transparent 58%),
    linear-gradient(180deg, rgba(11,15,23,0.60), rgba(11,15,23,0.92));
  z-index: -1;
}

/* Layout wrappers */
.page{
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  /* Kompensera för fixed topbar */
  padding: calc(22px + var(--topbar-h)) 16px 60px;
}

/* Topbar */
header{
  /* Header-elementet används på fler sidor.
     Topbaren hanteras med .topbar, så vi låter header vara statisk här. */
  position: static;
}

.navbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  margin: 0 auto;
  max-width: 1180px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(11,15,23,0.65);
  backdrop-filter: blur(10px);
}

.navbar h1{
  margin: 0;
  font-size: clamp(18px, 2.3vw, 22px);
  letter-spacing: 0.2px;
  font-weight: 700;
}

/* Scriptet injectar länkar i #siteTitle med inline style. Vi tar över looken här. */
#siteTitle a{
  color: var(--gold-1) !important;
  opacity: 0.95;
  font-weight: 700;
}

#siteTitle a:hover{
  opacity: 1;
  text-decoration: underline !important;
}

/* Admin gear (behåller men lite snyggare) */
.admin-gear{
  box-shadow: var(--shadow-1);
}

/* HERO */
.hero{
  margin-top: 18px;
}

.hero-grid{
  display: grid;
  /* Endast en stor container (snyggare + mer "app") */
  grid-template-columns: 1fr;
  gap: 14px;
}

.hero-card{
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.06));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-card__inner{
  padding: 16px;
}

.hero-title{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.hero-title h2{
  margin: 0;
  font-size: 20px;
}

.badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,184,0,0.14);
  border: 1px solid rgba(255,184,0,0.30);
  color: var(--text);
  font-size: 13px;
  white-space: nowrap;
}

/* Öppettider */
.opening-times{
  width: 100%;
  /* Glass + prickar */
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  /* Matcha menykorten (glass, INTE gul platta) */
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(14px);
  border-radius: var(--radius-md);
  padding: 14px;
}

.opening-times::before{
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10px 10px, rgba(255,255,255,0.12) 1px, transparent 1.6px);
  background-size: 18px 18px;
  opacity: 0.30;
  pointer-events: none;
}

.opening-times::after{
  content: "";
  position: absolute;
  inset: 0;
  /* Subtil highlight */
  background:
    radial-gradient(700px 260px at 10% 0%, rgba(255,255,255,0.12), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.00));
  opacity: 0.35;
  pointer-events: none;
}

.opening-times h2{
  margin: 0 0 10px;
  font-size: 16px;
  color: var(--text);
  position: relative;
  z-index: 1;
}

#hoursList p{
  margin: 6px 0;
  color: rgba(255,255,255,0.92);
  font-size: 14px;
  position: relative;
  z-index: 1;
}

/* Dot-leader rows (Måndag... ..... 11:00-21:00) */
.hours-row{
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.hours-label{ white-space: nowrap; }
.hours-time{ white-space: nowrap; }

.hours-dots{
  flex: 1;
  height: 1px;
  background-image: radial-gradient(circle, rgba(255,255,255,0.38) 1px, transparent 1.6px);
  background-size: 10px 2px;
  background-repeat: repeat-x;
  background-position: left 60%;
  opacity: 0.9;
}

/* Info banner */
.info-banner{
  margin-top: 12px;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  background: rgba(255,184,0,0.16);
  border: 1px solid rgba(255,184,0,0.35);
  color: var(--text);
}

.info-banner strong{
  display: block;
  font-size: 14px;
  letter-spacing: 0.2px;
}

/* Search */
.search-container{
  margin-top: 14px;
}

#searchBox{
  width: 100%;
  padding: 14px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.10);
  color: var(--text);
  outline: none;
  font-size: 15px;
}

#searchBox::placeholder{ color: rgba(255,255,255,0.55); }

#searchBox:focus{
  border-color: rgba(255,184,0,0.55);
  box-shadow: 0 0 0 4px rgba(255,184,0,0.10);
}

/* Quick nav */
.quick-nav{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.quick-nav a{
  text-decoration: none;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.07);
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 13px;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.quick-nav a:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,184,0,0.35);
}

/* Highlights / extra card */
.hero-side{
  display: grid;
  gap: 14px;
}

.hero-side .hero-card{ height: 100%; }

.hero-note{
  color: var(--muted);
  line-height: 1.35;
  font-size: 14px;
}

/* Side cards + buttons (för att undvika blå standardlänkar) */
.side-card{
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 26px rgba(0,0,0,0.30);
  padding: 14px;
}

.side-card--muted{
  background: rgba(255,255,255,0.06);
}

.side-title{
  font-weight: 800;
  margin-bottom: 6px;
}

.side-text{
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.side-actions{
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.16);
  text-decoration: none;
  color: #111;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  font-weight: 800;
  transition: transform 140ms ease, filter 140ms ease;
}

.btn:hover{
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.btn--ghost{
  background: rgba(0,0,0,0.30);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.16);
  font-weight: 700;
}

.btn--ghost:hover{
  filter: none;
}

.hero-note strong{ color: var(--text); }

/* Section headings */
.section-heading{
  /* Centrera rubrikerna (Pizzor, Kebab, osv) */
  margin: 22px auto 12px;
  font-size: 18px;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
}

/* Gör så att ankarlänkar hamnar snyggt under sticky header */
#menu,
#italian-pizzas,
#kebab-menu,
#salads-menu,
#hamburgers-menu,
#options{
  scroll-margin-top: 130px;
}

/* Menu grids */
.menu-container{
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

/* Menu item cards */
.menu-item{
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 26px rgba(0,0,0,0.30);
  padding: 14px 14px;
  /* Enhetliga kort: låt priset alltid hamna i botten */
  min-height: 130px;
  display: flex;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.menu-item:hover{
  transform: translateY(-2px);
  border-color: rgba(255,184,0,0.40);
  background: rgba(255,255,255,0.10);
}

.item-details h4{
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}

.item-details p{
  margin: 0 0 10px;
  color: var(--muted);
  /* Ingredienser: +1px för bättre läsbarhet */
  font-size: 14px;
  line-height: 1.35;
  /* Håll korten jämna även när beskrivningar varierar */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

.item-details span{
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin-top: auto;
}

.item-details{
  display: flex;
  flex-direction: column;
  width: 100%;
}

.item-details em{
  font-style: normal;
  font-weight: 900;
  font-size: 15px;
  color: var(--gold-1);
}

/* Options / special box */
.options-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}

.options-box{
  position: relative;
  width: 100%;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(14,16,22,0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: 0 20px 55px rgba(0,0,0,0.45);
  color: rgba(255,255,255,0.92);
  overflow: hidden;
}

/* Glass highlight layer (works for both dark and yellow variants) */
.options-box::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 15% 10%, rgba(255,255,255,0.22), rgba(255,255,255,0) 60%),
    radial-gradient(100% 90% at 85% 20%, rgba(255,255,255,0.10), rgba(255,255,255,0) 65%),
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0));
  opacity: 0.9;
}

.options-box > *{ position: relative; }

.options-box h2{
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 900;
  color: var(--gold-1);
  text-shadow: 0 1px 0 rgba(0,0,0,0.35);
}

#optionsList p,
#familyList p{
  margin: 8px 0;
  color: rgba(255,255,255,0.90);
  font-size: 14px;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(0,0,0,0.35);
}

.options-note{
  margin: 10px 0 0;
  font-size: 13px;
  color: rgba(255,255,255,0.72);
  font-style: italic;
}

/* Light/yellow glass -> force readable dark text */
.options-box.is-light{
  border-color: rgba(0,0,0,0.12);
  box-shadow: 0 18px 50px rgba(0,0,0,0.25);
  color: rgba(15,17,22,0.95);
}
.options-box.is-light h2{
  color: rgba(15,17,22,0.98);
  text-shadow: none;
}
.options-box.is-light #optionsList p,
.options-box.is-light #familyList p{
  color: rgba(15,17,22,0.90);
  text-shadow: none;
}
.options-box.is-light .options-note{
  color: rgba(15,17,22,0.70);
}

@media (max-width: 900px){
  .options-grid{ grid-template-columns: 1fr; }
}
/* Footer */
.footer{
  padding: 18px 16px 26px;
}

.footer-inner{
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  color: var(--muted-2);
  font-size: 13px;
}

.footer-link{
  color: var(--gold-1);
  text-decoration: none;
}

.footer-link:hover{ text-decoration: underline; }

.footer-dot{ opacity: 0.6; }

/* Mobile */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 520px){
  .page{ padding-top: calc(14px + var(--topbar-h)); }
  .navbar{ padding: 12px 12px; }
  .section-heading{ font-size: 16px; }
  .menu-container{ grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}
