/* public/style.css – ReSlot (Premium UI + Champagne banners + Poster) */

:root{
  /* Core */
  --brand:#2563eb; /* blå */
  --ink:#0f172a;
  --muted:#64748b;

  --card: rgba(255,255,255,0.92);
  --line: rgba(15,23,42,0.08);

  /* Background tuning */
  --bgBrightness: 1.06;
  --bgSaturate: 0.92;
  --bgContrast: 1.02;
  --logoOpacity: 0.08;

  /* Champagne (lite mindre “guldigt”, mer ljust lyx) */
  --champ-1:#fbf7ef; /* väldigt ljus champagne */
  --champ-2:#efe4cf; /* mjuk mitt */
  --champ-3:#e2cfaa; /* accent */
  --champ-line: rgba(15,23,42,0.10);
}

/* ============ Base ============ */
*{ box-sizing:border-box; }
html, body { height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background:#f6f7fb;
}

/* ============ Background system (used by admin/app) ============ */
/* If you have <div class="app-bg"></div> etc, these apply */
.app-bg{
  position:fixed;
  inset:0;
  background: url("./assets/bg.jpg") center/cover no-repeat fixed;
  filter: brightness(var(--bgBrightness)) saturate(var(--bgSaturate)) contrast(var(--bgContrast));
  z-index:-5;
}
.bg-dim{
  position:fixed;
  inset:0;
  background:
    radial-gradient(1000px 600px at 20% 10%,
      rgba(255,255,255,0.85),
      rgba(255,255,255,0.35) 55%,
      rgba(255,255,255,0.15) 100%),
    linear-gradient(to bottom, rgba(255,255,255,0.55), rgba(255,255,255,0.25));
  z-index:-4;
}
.logo-bg{
  position:fixed;
  inset:0;
  background: url("./assets/reslot-logo.png") center/420px no-repeat;
  opacity: var(--logoOpacity);
  filter: grayscale(100%);
  z-index:-3;
}

/* Fallback background for pages without .app-bg elements */
body::before{
  content:"";
  position:fixed;
  inset:0;
  background: url("./assets/bg.jpg") center/cover no-repeat;
  opacity:0.55;
  z-index:-10;
}
body::after{
  content:"";
  position:fixed;
  inset:0;
  background: rgba(255,255,255,0.55);
  z-index:-9;
}

/* ============ Layout containers ============ */
.shell{
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 16px 96px;
}

/* Some pages may use .container (older) */
.container{
  max-width: 420px;
  margin: 0 auto;
  padding: 18px 16px 110px;
}

/* ============ Cards ============ */
.card{
  background: var(--card);
  border:1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.06);
}

/* ============ Champagne banners (top + bottom) ============ */
.goldbar{
  background: linear-gradient(90deg, var(--champ-1), var(--champ-2), var(--champ-1));
  border-bottom: 1px solid var(--champ-line);
}
.goldbar-bottom{
  background: linear-gradient(90deg,
    rgba(251,247,239,0.92),
    rgba(239,228,207,0.92),
    rgba(251,247,239,0.92));
  border-top: 1px solid var(--champ-line);
  backdrop-filter: blur(10px);
}

/* ============ Buttons ============ */
.btn-brand{
  background: var(--brand);
  color: white;
  border: none;
  border-radius: 16px;
  padding: 14px 16px;
  font-weight: 900;
  cursor:pointer;
}
.btn-brand:active{ transform: scale(0.985); }

.btn-ghost{
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(15,23,42,0.12);
  border-radius: 16px;
  padding: 12px 14px;
  font-weight: 900;
  cursor:pointer;
}
.btn-ghost:active{ transform: scale(0.985); }

.btn-dark{
  background: rgba(15,23,42,0.92);
  color: white;
  border: none;
  border-radius: 16px;
  padding: 12px 14px;
  font-weight: 900;
  cursor:pointer;
}
.btn-dark:active{ transform: scale(0.985); }

/* ============ Text helpers ============ */
.muted{ color: rgba(15,23,42,0.58); }
.small{ font-size: 12px; color: var(--muted); }
.hr{ height:1px; background: var(--line); margin: 12px 0; }

hr.soft{
  border: none;
  border-top: 1px solid rgba(15,23,42,0.08);
  margin: 14px 0;
}

/* ============ Pills ============ */
.pill{
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,0.12);
  font-weight: 800;
  font-size: 12px;
  background: rgba(255,255,255,0.8);
  cursor:pointer;
}
.pill--on{
  background: rgba(15,23,42,0.92);
  border-color: rgba(15,23,42,0.92);
  color: white;
}

/* Compatibility for old .pill.on */
.pill.on{
  background: rgba(15,23,42,0.92);
  border-color: rgba(15,23,42,0.92);
  color: white;
}

/* ============ KPI grid ============ */
.kpi{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.kpi > div{
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,0.08);
  background: rgba(255,255,255,0.85);
}
.kpi .label{
  font-size: 12px;
  color: rgba(15,23,42,0.58);
  font-weight: 800;
}
.kpi .value{
  font-size: 22px;
  font-weight: 1000;
  margin-top: 6px;
}

/* ============ QR Page older UI (if used) ============ */
.topbar{
  position:sticky;
  top:0;
  z-index:10;
  padding: 14px 16px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.h1{ font-size: 24px; font-weight: 1000; margin:0; }
.sub{ color: var(--muted); font-size: 12px; margin-top:6px; }

.row{ display:flex; gap:10px; align-items:center; }
.spread{ justify-content:space-between; }

.input, select{
  width:100%;
  padding: 14px 14px;
  border-radius: 14px;
  border:1px solid var(--line);
  background: rgba(248,250,252,0.9);
  font-size: 15px;
  outline:none;
}
.input:focus, select:focus{
  border-color: rgba(37,99,235,0.35);
  background:white;
}

.nav{
  position:fixed;
  left:50%;
  transform: translateX(-50%);
  bottom: 10px;
  width: min(420px, calc(100% - 16px));
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  border:1px solid var(--line);
  border-radius: 22px;
  display:flex;
  justify-content:space-around;
  padding: 10px;
  z-index:50;
}
.nav button{
  flex:1;
  margin: 0 6px;
  border: 0;
  background: transparent;
  padding: 10px 8px;
  border-radius: 14px;
  font-weight: 900;
  color: var(--muted);
  cursor:pointer;
}
.nav button.on{
  background: rgba(37,99,235,0.12);
  color: var(--brand);
}

.toast{
  position:fixed;
  left:50%;
  transform: translateX(-50%);
  bottom: 92px;
  background: rgba(15,23,42,0.92);
  color:white;
  padding: 12px 14px;
  border-radius: 16px;
  font-weight: 800;
  font-size: 13px;
  z-index:60;
}

.lock{
  margin-top: 14px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(15,23,42,0.92);
  color:white;
}
.lock b{ color: #93c5fd; }

/* ===========================
   POSTER (Printable QR banner)
   =========================== */

.poster-wrap{
  min-height: 100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 18px;
}

.poster-sheet{
  width: min(860px, 100%);
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(15,23,42,0.10);
  border-radius: 26px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.10);
  overflow:hidden;
}

/* Banners */
.poster-banner{
  background: linear-gradient(90deg, var(--champ-1), var(--champ-2), var(--champ-1));
  border-bottom: 1px solid var(--champ-line);
}
.poster-banner--bottom{
  border-top: 1px solid var(--champ-line);
  border-bottom: none;
}

.poster-banner-inner{
  padding: 18px 22px;
  display:flex;
  gap:16px;
  align-items:center;
  justify-content:space-between;
}
.poster-banner-inner--bottom{
  padding: 16px 22px;
}

.poster-brand-left{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 240px;
}
.poster-logo{
  height: 44px;
  width: 44px;
  border-radius: 16px;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(15,23,42,0.10);
  padding: 8px;
}
.poster-brandname{
  font-weight: 1000;
  font-size: 16px;
  letter-spacing: -0.2px;
}
.poster-tagline{
  font-size: 12px;
  color: rgba(15,23,42,0.60);
  font-weight: 800;
}

/* BIG salon name in top banner */
.poster-salonname{
  font-weight: 1000;
  font-size: clamp(22px, 3.4vw, 36px);
  line-height: 1.05;
  letter-spacing: -0.6px;
  color: var(--ink);
  text-align:right;
  max-width: 52%;
  text-wrap: balance;
}

/* Hero section */
.poster-hero{
  padding: 22px 22px 14px;
}
.poster-headline{
  font-size: 34px;
  font-weight: 1000;
  letter-spacing: -0.8px;
  color: var(--ink);
}
.poster-sub{
  margin-top: 10px;
  font-size: 15px;
  color: rgba(15,23,42,0.65);
  font-weight: 800;
  max-width: 740px;
}

/* Main grid */
.poster-main{
  display:grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  padding: 14px 22px 22px;
}
@media (max-width: 860px){
  .poster-main{ grid-template-columns: 1fr; }
  .poster-salonname{ max-width: 100%; text-align:left; }
  .poster-banner-inner{ flex-direction: column; align-items:flex-start; }
  .poster-brand-left{ min-width:auto; }
}

/* QR area */
.poster-qr-area{
  border: 1px solid rgba(15,23,42,0.10);
  border-radius: 22px;
  background: rgba(255,255,255,0.92);
  padding: 18px;
  display:grid;
  gap: 14px;
  align-content:start;
}

.poster-qrframe{
  border-radius: 22px;
  border: 1px solid rgba(15,23,42,0.12);
  background: white;
  padding: 16px;
  display:flex;
  justify-content:center;
  align-items:center;
}
.poster-qrframe img, .poster-qrframe canvas{
  border-radius: 10px;
}

.poster-cta{
  background: linear-gradient(90deg, rgba(251,247,239,0.9), rgba(239,228,207,0.9));
  border: 1px solid rgba(15,23,42,0.10);
  border-radius: 18px;
  padding: 12px 14px;
}
.poster-cta-title{
  font-weight: 1000;
  font-size: 16px;
  letter-spacing: -0.3px;
}
.poster-cta-sub{
  margin-top: 2px;
  font-weight: 900;
  font-size: 12px;
  color: rgba(15,23,42,0.58);
}

.poster-url{
  border-top: 1px dashed rgba(15,23,42,0.16);
  padding-top: 12px;
}
.poster-url-label{
  font-size: 12px;
  color: rgba(15,23,42,0.60);
  font-weight: 900;
}
.poster-url-value{
  margin-top: 6px;
  font-size: 13px;
  font-weight: 1000;
  letter-spacing: 0.1px;
  word-break: break-all;
}

/* Steps */
.poster-steps{
  border: 1px solid rgba(15,23,42,0.10);
  border-radius: 22px;
  background: rgba(255,255,255,0.92);
  padding: 18px;
}

.poster-step{
  display:grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(15,23,42,0.08);
}
.poster-step:last-of-type{ border-bottom:none; }

.poster-step-num{
  height: 40px;
  width: 40px;
  border-radius: 16px;
  display:grid;
  place-items:center;
  font-weight: 1000;
  background: linear-gradient(180deg, var(--champ-1), var(--champ-2));
  border: 1px solid rgba(15,23,42,0.10);
}

.poster-step-title{
  font-weight: 1000;
  letter-spacing: -0.2px;
}
.poster-step-text{
  margin-top: 2px;
  color: rgba(15,23,42,0.62);
  font-weight: 800;
  font-size: 13px;
}

.poster-note{
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(15,23,42,0.92);
  color: white;
  font-weight: 900;
  font-size: 12px;
}
.poster-note b{ color: #fde68a; }

/* Bottom banner text */
.poster-bottom-left .poster-bottom-title{
  font-weight: 1000;
  letter-spacing: -0.2px;
}
.poster-bottom-left .poster-bottom-sub{
  margin-top: 3px;
  font-size: 12px;
  color: rgba(15,23,42,0.62);
  font-weight: 900;
}

/* Footer mini */
.poster-mini{
  padding: 10px 22px 14px;
  font-size: 11px;
  color: rgba(15,23,42,0.50);
  font-weight: 900;
}

/* Print */
@media print{
  body::before, body::after { display:none !important; }
  .app-bg, .bg-dim, .logo-bg { display:none !important; }
  .no-print{ display:none !important; }

  .poster-wrap{
    padding: 0 !important;
    min-height: auto !important;
  }
  .poster-sheet{
    width: 100% !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  @page { margin: 12mm; }
}

