/* ==========================================================================
   Gordiusz Masszázs Szalon · közös design-alapok
   --------------------------------------------------------------------------
   Ezt a fájlt tölti be az index.html (az online foglaló).
   Itt élnek a design tokenek és a közösen használt komponensek.
   Ami csak az oldalon fordul elő, az az index.html <style> blokkjában marad.
   A paletta a Gordiusz-logóhoz igazodik: arany kötél + mélyfekete, elefántcsont alapon.
   (A token-NEVEK a Masszíroz-Lak-os eredetiek maradtak, csak az értékek arany árnyalatúak,
   így a két szalon foglalója ugyanabból a komponenskódból él.)
   ========================================================================== */

:root{
  /* betűtípusok */
  --sans:'Figtree',system-ui,'Segoe UI',Roboto,-apple-system,'Helvetica Neue',Arial,sans-serif;
  --serif:'Fraunces','Iowan Old Style','Palatino Linotype','Palatino','Book Antiqua',Georgia,serif;
  /* alapszínek */
  --cream:#fbf7ef; --sand:#f3ecdb; --card:#fffefa; --surface:#f7f1e3;
  --ink:#28231b; --ink-soft:#5f574a; --muted:#78694f; --faint:#c9bb9d;
  --line:#eadfc7; --line2:#ddceac;
  /* márkaszínek (arany kötél) */
  --coral:#d3a648; --terra:#b8862b; --terra-deep:#96691c; --blush:#f7edd6; --clay:#a08b5f;
  --gold:#c8952c;
  /* visszajelző színek */
  --danger:#b23b2e; --danger-bg:#fbe6e2;
  --warn:#8a5e1c; --warn-bg:#fbeed6;
  --ok:#2e7d4c; --ok-deep:#256a40; --ok-bg:#e9f5ec; --ok-line:#b7ddc4;
  /* árnyékok */
  --sh-sm:0 1px 2px rgba(80,60,25,.05);
  --sh-md:0 2px 5px rgba(80,60,25,.05),0 14px 30px -16px rgba(150,110,40,.30);
  --sh-lg:0 34px 74px -34px rgba(140,100,35,.36);
  --glow:0 12px 26px -12px rgba(150,105,28,.55);
  /* lekerekítések */
  --r-card:16px; --r-ctl:11px;
  /* alkalmazás-oldal (foglalás) keretezése */
  --pad-page:24px; --gut:32px;
}

/* ---------- alapok ---------- */
*{box-sizing:border-box;}
html,body{margin:0;padding:0;}
body{background:var(--cream);color:var(--ink);font-family:var(--sans);line-height:1.55;
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;}
img{max-width:100%;display:block;}
a{color:var(--terra-deep);}
p{margin:0;}
h1,h2,h3,h4{font-family:var(--serif);font-weight:600;font-optical-sizing:auto;letter-spacing:normal;margin:0;line-height:1.2;text-wrap:balance;}
button{font-family:inherit;-webkit-tap-highlight-color:transparent;touch-action:manipulation;}
input,select,textarea{font-family:inherit;}
:focus-visible{outline:2.5px solid var(--terra);outline-offset:2px;border-radius:4px;}
::selection{background:var(--blush);}
.sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;}

/* ---------- tipográfiai segédek ----------
   Betűméret-skála (Tailwind, minden felületen ezt használjuk):
   12 · 14 · 16 · 18 · 20 · 24 · 30 · 36 · 48 · 60 · 72 · 96 px */
.eyebrow{font-size:.875rem;line-height:calc(1.25 / 0.875);font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--terra-deep);}
.muted{color:var(--muted);}
.num{font-variant-numeric:tabular-nums;}
.link{color:var(--terra-deep);font-weight:700;cursor:pointer;text-underline-offset:3px;background:none;border:none;font:inherit;padding:0;}
.link:hover{text-decoration:underline;}

/* ---------- gombok ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:none;border-radius:var(--r-ctl);
  padding:14px 26px;font:inherit;font-weight:700;cursor:pointer;text-decoration:none;
  -webkit-tap-highlight-color:transparent;touch-action:manipulation;
  transition:transform .14s ease,box-shadow .14s ease,filter .14s ease,background .14s ease,border-color .14s ease;}
.btn svg{width:18px;height:18px;flex:none;}
.btn.primary{background:var(--terra-deep);color:#fff;box-shadow:var(--glow);}
.btn.primary:hover{filter:brightness(1.06);transform:translateY(-1px);}
.btn.primary:active{transform:translateY(0);}
.btn.primary:disabled{background:#e8ddc2;color:#b3a37e;cursor:not-allowed;box-shadow:none;filter:none;transform:none;}
.btn.ghost{background:var(--card);color:var(--ink);border:1px solid var(--line2);}
.btn.ghost:hover{background:var(--surface);border-color:var(--clay);}
.btn.light{background:#fff;color:var(--terra-deep);}
.btn.light:hover{transform:translateY(-1px);box-shadow:0 12px 26px -12px rgba(60,25,15,.5);}
.btn.lg{padding:16px 30px;}
.iconbtn{border:1px solid var(--line2);background:var(--card);width:40px;height:40px;border-radius:10px;padding:0;
  cursor:pointer;color:var(--ink-soft);display:flex;align-items:center;justify-content:center;transition:.15s;flex:none;}
.iconbtn svg{width:19px;height:19px;display:block;}
.iconbtn:hover{background:var(--surface);color:var(--terra-deep);}

/* ---------- űrlapok ---------- */
.label{font-weight:700;letter-spacing:.02em;color:var(--ink-soft);}
.label.sect{font-family:var(--serif);font-weight:600;letter-spacing:.01em;color:var(--ink);margin-top:2px;}
.field{display:flex;flex-direction:column;gap:6px;min-width:0;}
.field input,.field select,.field textarea{width:100%;border:1px solid var(--line2);background:var(--surface);
  border-radius:var(--r-ctl);padding:12px 14px;font:inherit;color:var(--ink);transition:.15s;}
.field input::placeholder,.field textarea::placeholder{color:var(--faint);}
.field input:focus,.field select:focus,.field textarea:focus{outline:none;border-color:var(--terra);background:#fff;box-shadow:0 0 0 3px var(--blush);}
.field.err input{border-color:var(--danger);background:var(--danger-bg);}
.field.ok input{border-color:var(--ok);background:var(--ok-bg);}
.field .emsg{color:var(--danger);display:none;}
.field.err .emsg{display:block;}
.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:14px;}

/* ---------- összegző kártya ---------- */
.sumcard{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-card);padding:16px;display:flex;flex-direction:column;gap:10px;}
.sumcard .head{font-weight:700;}
.srow{display:flex;justify-content:space-between;gap:10px;}
.srow .k{color:var(--ink-soft);}
.srow .v{font-weight:700;text-align:right;font-variant-numeric:tabular-nums;}
.srow.total{border-top:1px solid var(--line2);padding-top:10px;margin-top:2px;}
.srow.total .v{color:var(--terra-deep);}
.srow.total.paid .v{color:var(--ok-deep);}

/* ---------- értesítő dobozok ---------- */
.alert{display:flex;gap:12px;padding:14px 16px;border-radius:var(--r-card);border:1.5px solid;}
.alert .ic{width:23px;height:23px;border-radius:50%;flex:none;color:#fff;font-weight:700;display:flex;align-items:center;justify-content:center;}
.alert .at{font-weight:700;margin-bottom:2px;color:var(--ink);}
.alert.warn{background:var(--warn-bg);border-color:#e6c88a;color:var(--ink-soft);}
.alert.warn .ic{background:var(--warn);}
.alert.info{background:var(--blush);border-color:var(--coral);color:var(--ink-soft);}
.alert.info .ic{background:var(--terra-deep);}
.alert.success{background:var(--ok-bg);border-color:var(--ok-line);color:var(--ink-soft);}
.alert.success .ic{background:var(--ok);}

/* ---------- avatar + értékelés ---------- */
.avatar{width:58px;height:58px;border-radius:50%;flex:none;background:linear-gradient(135deg,#ecd9ce,#d7b8ab);
  box-shadow:0 0 0 3px #fff,0 0 0 4.5px var(--line2);display:flex;align-items:center;justify-content:center;
  font-family:var(--serif);font-weight:600;color:#fff;text-shadow:0 1px 3px rgba(120,70,50,.35);overflow:hidden;}
.avatar img{width:100%;height:100%;object-fit:cover;object-position:50% 22%;border-radius:50%;display:block;}
.rate{display:flex;align-items:center;gap:6px;margin-top:2px;color:var(--ink-soft);font-variant-numeric:tabular-nums;}
.rate .stars{color:var(--gold);letter-spacing:1.5px;line-height:1;}

/* ---------- toast ---------- */
.toast{position:fixed;left:50%;bottom:26px;transform:translateX(-50%) translateY(8px);background:var(--ink);color:#fff;
  padding:12px 20px;border-radius:var(--r-ctl);font-weight:500;opacity:0;pointer-events:none;
  transition:.25s;z-index:60;box-shadow:0 12px 30px -8px rgba(0,0,0,.4);}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0);}
.toast.success{background:var(--ok);}
.toast.error{background:var(--danger);}

/* ---------- naptárrács (foglalás) ---------- */
.grid7{display:grid;grid-template-columns:repeat(7,1fr);gap:5px;}
.grid7 .wl{text-align:center;font-weight:600;color:var(--muted);padding:3px 0;}
.dcell{position:relative;aspect-ratio:1;border:none;background:transparent;border-radius:50%;font:inherit;
  cursor:pointer;color:var(--ink);transition:background .14s,color .14s;font-variant-numeric:tabular-nums;}
.dcell:hover{background:var(--surface);}
.dcell.avail{background:var(--blush);color:var(--terra-deep);font-weight:700;}
.dcell.avail:hover{background:#f5d0c3;}
.dcell.sel,.dcell.sel:hover{background:var(--terra-deep);color:#fff;font-weight:700;box-shadow:var(--glow);}
.dcell:disabled{color:var(--faint);cursor:default;background:none;}
.dcell.today::after{content:"";position:absolute;left:50%;bottom:4px;width:4px;height:4px;border-radius:50%;background:var(--clay);transform:translateX(-50%);}
.dcell.sel.today::after{background:#fff;}

/* ---------- alkalmazás-keret (foglalás) ---------- */
.deskstage{min-height:100vh;min-height:100dvh;padding:var(--pad-page);background:
  radial-gradient(1200px 480px at 80% -8%,#fdeee6 0%,rgba(253,238,230,0) 60%),var(--cream);
  display:flex;flex-direction:column;align-items:center;gap:16px;}
.shell{width:100%;max-width:1060px;background:var(--card);border:1px solid var(--line);border-radius:24px;
  overflow:hidden;box-shadow:var(--sh-lg);display:grid;grid-template-columns:308px 1fr;
  height:calc(100vh - var(--pad-page)*2);height:calc(100dvh - var(--pad-page)*2);min-height:560px;}
.side{background:linear-gradient(180deg,#f7ede4,#f3e5da);border-right:1px solid var(--line);
  display:flex;flex-direction:column;min-height:0;}
.main{display:flex;flex-direction:column;min-width:0;min-height:0;position:relative;}
.screen{display:none;flex-direction:column;flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;
  scrollbar-width:thin;scrollbar-color:var(--line2) transparent;}
.screen.active{display:flex;animation:fade .24s ease;}

/* ---------- animáció ---------- */
@keyframes fade{from{opacity:0;transform:translateY(6px);}to{opacity:1;transform:none;}}
@media (prefers-reduced-motion:reduce){
  *{transition:none !important;animation:none !important;}
}

/* ---------- mobil ---------- */
@media (max-width:860px){
  .iconbtn{width:44px;height:44px;}
  .formgrid{grid-template-columns:1fr;}
  .shell{grid-template-columns:1fr;grid-template-rows:auto 1fr;border-radius:20px;min-height:0;}
  .side{border-right:none;border-bottom:1px solid var(--line);}
}

/* Tailwind font-size scale — https://tailwindcss.com/docs/font-size */
.text-xs   { font-size: 0.75rem;  line-height: calc(1 / 0.75); }
.text-sm   { font-size: 0.875rem; line-height: calc(1.25 / 0.875); }
.text-base { font-size: 1rem;     line-height: calc(1.5 / 1); }
.text-lg   { font-size: 1.125rem; line-height: calc(1.75 / 1.125); }
.text-xl   { font-size: 1.25rem;  line-height: calc(1.75 / 1.25); }
.text-2xl  { font-size: 1.5rem;   line-height: calc(2 / 1.5); }
.text-3xl  { font-size: 1.875rem; line-height: calc(2.25 / 1.875); }
.text-4xl  { font-size: 2.25rem;  line-height: calc(2.5 / 2.25); }
.text-5xl  { font-size: 3rem;     line-height: 1; }
.text-6xl  { font-size: 3.75rem;  line-height: 1; }
.text-7xl  { font-size: 4.5rem;   line-height: 1; }
.text-8xl  { font-size: 6rem;     line-height: 1; }
.text-9xl  { font-size: 8rem;     line-height: 1; }

/* Reszponzív variánsok — a teljes Tailwind font-size skála minden töréspontnál (sm · md · lg) */
@media (min-width: 640px) {
  .sm\:text-xs  { font-size: 0.75rem; line-height: calc(1 / 0.75); }
  .sm\:text-sm  { font-size: 0.875rem; line-height: calc(1.25 / 0.875); }
  .sm\:text-base{ font-size: 1rem; line-height: calc(1.5 / 1); }
  .sm\:text-lg  { font-size: 1.125rem; line-height: calc(1.75 / 1.125); }
  .sm\:text-xl  { font-size: 1.25rem; line-height: calc(1.75 / 1.25); }
  .sm\:text-2xl { font-size: 1.5rem; line-height: calc(2 / 1.5); }
  .sm\:text-3xl { font-size: 1.875rem; line-height: calc(2.25 / 1.875); }
  .sm\:text-4xl { font-size: 2.25rem; line-height: calc(2.5 / 2.25); }
  .sm\:text-5xl { font-size: 3rem; line-height: 1; }
  .sm\:text-6xl { font-size: 3.75rem; line-height: 1; }
  .sm\:text-7xl { font-size: 4.5rem; line-height: 1; }
  .sm\:text-8xl { font-size: 6rem; line-height: 1; }
  .sm\:text-9xl { font-size: 8rem; line-height: 1; }
}
@media (min-width: 768px) {
  .md\:text-xs  { font-size: 0.75rem; line-height: calc(1 / 0.75); }
  .md\:text-sm  { font-size: 0.875rem; line-height: calc(1.25 / 0.875); }
  .md\:text-base{ font-size: 1rem; line-height: calc(1.5 / 1); }
  .md\:text-lg  { font-size: 1.125rem; line-height: calc(1.75 / 1.125); }
  .md\:text-xl  { font-size: 1.25rem; line-height: calc(1.75 / 1.25); }
  .md\:text-2xl { font-size: 1.5rem; line-height: calc(2 / 1.5); }
  .md\:text-3xl { font-size: 1.875rem; line-height: calc(2.25 / 1.875); }
  .md\:text-4xl { font-size: 2.25rem; line-height: calc(2.5 / 2.25); }
  .md\:text-5xl { font-size: 3rem; line-height: 1; }
  .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
  .md\:text-7xl { font-size: 4.5rem; line-height: 1; }
  .md\:text-8xl { font-size: 6rem; line-height: 1; }
  .md\:text-9xl { font-size: 8rem; line-height: 1; }
}
@media (min-width: 1024px) {
  .lg\:text-xs  { font-size: 0.75rem; line-height: calc(1 / 0.75); }
  .lg\:text-sm  { font-size: 0.875rem; line-height: calc(1.25 / 0.875); }
  .lg\:text-base{ font-size: 1rem; line-height: calc(1.5 / 1); }
  .lg\:text-lg  { font-size: 1.125rem; line-height: calc(1.75 / 1.125); }
  .lg\:text-xl  { font-size: 1.25rem; line-height: calc(1.75 / 1.25); }
  .lg\:text-2xl { font-size: 1.5rem; line-height: calc(2 / 1.5); }
  .lg\:text-3xl { font-size: 1.875rem; line-height: calc(2.25 / 1.875); }
  .lg\:text-4xl { font-size: 2.25rem; line-height: calc(2.5 / 2.25); }
  .lg\:text-5xl { font-size: 3rem; line-height: 1; }
  .lg\:text-6xl { font-size: 3.75rem; line-height: 1; }
  .lg\:text-7xl { font-size: 4.5rem; line-height: 1; }
  .lg\:text-8xl { font-size: 6rem; line-height: 1; }
  .lg\:text-9xl { font-size: 8rem; line-height: 1; }
}
