/*
  Template Cuțit — sursă: HEGJA_PAGINA_CUTIT_FUNCTIONALA_DINAMICA/HEGJA_LECTIE_FUNCTIONALA/styles.css
  Proporții/structură: neschimbate față de Cuțit.
  Paletă: negru + auriu + crem (cerință HEGJA).
  Activ doar pe body.cutit-mode (Politețe).
*/
body.cutit-mode{
  --gold:#e8c45a;
  --gold-bright:#f3d57a;
  --gold-deep:#d4a834;
  /* Auriu intens unic = „Lecțiile mele” active */
  --gold-active-start:#c98a00;
  --gold-active-end:#f2c45b;
  --cream:#f7f2e8;
  --card:#fffdf8;
  --ink:#1c1510;
  --muted:#8a7a66;
  --black:#0a0a0a;
  --line:rgba(232,196,90,.35);
  margin:0;
  background:#eee;
  font-family:Georgia,"Times New Roman",serif;
  color:var(--ink);
}
body.cutit-mode *{box-sizing:border-box}
body.cutit-mode button{font:inherit}

body.cutit-mode .app-shell{
  display:flex;
  min-height:100vh;
  max-width:1450px;
  margin:auto;
  background:var(--cream);
  box-shadow:0 0 35px #aaa;
}

/* Sidebar 220px — structură Cutit, fundal negru */
body.cutit-mode .sidebar{
  width:220px;
  background:var(--black);
  display:flex;
  flex-direction:column;
  min-height:100vh;
  position:relative;
  overflow:hidden;
  border-top-right-radius:18px;
  border-bottom-right-radius:18px;
  flex-shrink:0;
}
body.cutit-mode .sidebar::after{
  content:"";
  position:absolute;left:0;right:0;bottom:0;height:140px;
  pointer-events:none;opacity:.6;
  background:
    radial-gradient(ellipse 120% 80% at 20% 110%, rgba(243,213,122,.4), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 120' preserveAspectRatio='none'%3E%3Cpath d='M0 90 C40 70 80 110 120 85 S200 60 240 80' fill='none' stroke='%23e8c45a' stroke-width='1.2' opacity='.55'/%3E%3Cpath d='M0 100 C50 78 90 115 140 92 S210 70 240 95' fill='none' stroke='%23f3d57a' stroke-width='1' opacity='.4'/%3E%3C/svg%3E") bottom left/100% 110px no-repeat;
}
body.cutit-mode .brand{
  height:165px;
  background:transparent;
  color:var(--gold-bright);
  text-align:center;
  padding:18px;
  position:relative;z-index:1;
}
body.cutit-mode .brand .mark{
  font:700 58px/1 Georgia,"Times New Roman",serif;
  color:var(--gold-bright);
  margin-bottom:4px;
}
body.cutit-mode .chef{display:none}
body.cutit-mode .logo{font-size:34px;letter-spacing:3px;color:var(--gold-bright)}
body.cutit-mode .tagline{font-size:10px;margin-top:5px;color:var(--gold);letter-spacing:1.2px}
body.cutit-mode .sidebar nav{
  display:flex;flex-direction:column;padding-top:10px;flex:1;position:relative;z-index:1;
}
body.cutit-mode .sidebar nav a,
body.cutit-mode .logout{
  border:0;background:transparent;text-align:left;
  padding:17px 22px;color:var(--gold);font-size:16px;cursor:pointer;
  text-decoration:none;display:flex;align-items:center;gap:10px;font:inherit;
}
body.cutit-mode .sidebar nav a.active{
  background:linear-gradient(90deg,var(--gold-active-start),var(--gold-active-end));
  color:#fff;
  box-shadow:0 4px 10px #a66a0055;
}
body.cutit-mode .logout{
  margin-top:auto;width:100%;position:relative;z-index:1;
  border-top:1px solid rgba(232,196,90,.35);
}

body.cutit-mode .main{flex:1;padding-bottom:8px;min-width:0;background:var(--cream)}
body.cutit-mode .topbar{
  height:64px;display:flex;align-items:center;gap:18px;
  padding:6px 24px;border-bottom:1px solid var(--line);
  box-shadow:0 3px 9px #0000000f;background:var(--cream);
}
body.cutit-mode .back,
body.cutit-mode .profile{
  width:42px;height:42px;border-radius:50%;
  border:1px solid rgba(232,196,90,.55);background:white;color:#966000;
  font-size:24px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;
  text-decoration:none;flex-shrink:0;
}
body.cutit-mode .profile{background:var(--black);color:var(--gold-bright);border-color:var(--black)}
body.cutit-mode .current{flex:1;color:var(--ink);font-size:15px}
body.cutit-mode .current strong{color:#c48300}
body.cutit-mode .lesson-progress{
  display:grid;grid-template-columns:1fr 52px;gap:7px;align-items:center;
  width:310px;font-size:14px;color:var(--muted);
}
body.cutit-mode .lesson-progress span{grid-column:1/-1}
body.cutit-mode .bar{height:8px;border-radius:10px;background:#f1e5ce;overflow:hidden}
body.cutit-mode .bar > span,
body.cutit-mode .bar > div{height:100%;width:0;background:linear-gradient(90deg,var(--gold-active-start),var(--gold-active-end));transition:.3s;display:block}

/* Foto 46% / panou 54% — lățimi Cutit; înălțime foto compactată (pătrat) */
body.cutit-mode .lesson-grid{
  display:grid;grid-template-columns:46% 54%;column-gap:26px;row-gap:8px;padding:12px 30px 4px;
}
body.cutit-mode .image-panel{position:relative}
body.cutit-mode .image-panel img,
body.cutit-mode .image-panel .media-placeholder,
body.cutit-mode .image-panel .emoji-visual{
  width:min(100%,300px);max-height:300px;aspect-ratio:1/1;height:auto;
  object-fit:cover;border-radius:16px;display:block;
}
body.cutit-mode .image-panel .media-placeholder,
body.cutit-mode .image-panel .emoji-visual{
  display:flex;align-items:center;justify-content:center;flex-direction:column;
  background:#efe8dc;color:var(--muted);text-align:center;padding:16px;box-sizing:border-box;
  font-size:72px;line-height:1;min-height:0;
}
body.cutit-mode .image-panel .media-placeholder{font-size:15px}
body.cutit-mode .counter{
  position:absolute;right:12px;top:10px;z-index:2;
  background:#3a2419dd;color:white;border-radius:18px;padding:4px 10px;font-size:12px;
}

body.cutit-mode .content-panel{padding:0 8px 0}
body.cutit-mode .lang-label{
  font-weight:bold;margin-bottom:1px;color:var(--muted);font-size:14px;
  display:flex;align-items:center;gap:6px;line-height:1.2;
}
body.cutit-mode .lang-label .lang-flag{
  width:20px;height:15px;border-radius:2px;object-fit:cover;
  box-shadow:0 0 0 1px rgba(0,0,0,.08);flex-shrink:0;display:block;
}
body.cutit-mode .lang-label .lang-name{font-weight:bold}
body.cutit-mode .word-row{
  display:flex;align-items:center;justify-content:space-between;gap:18px;
}
body.cutit-mode .word-row h1,
body.cutit-mode .word-row h2,
body.cutit-mode .word-row .word-text{
  font-size:34px;margin:1px 0 2px;font-weight:700;color:var(--ink);line-height:1.15;
}
body.cutit-mode .audio{
  width:48px;height:48px;border-radius:50%;border:1px solid #e2c486;
  background:#fffaf0;cursor:pointer;font-size:22px;box-shadow:0 5px 12px #b8893040;
  flex-shrink:0;
}
body.cutit-mode .divider{height:1px;background:#ecd8b1;margin:3px 0 6px}

/* 4 butoane pe rând (Cutit avea 3; cerința HEGJA = 4) */
body.cutit-mode .actions{
  display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:8px;
}
body.cutit-mode .actions button{
  height:70px;border:1px solid #ead4a8;background:#fffaf2;border-radius:12px;
  font-size:26px;color:#9b6500;cursor:pointer;box-shadow:0 5px 13px #b8893027;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;
}
body.cutit-mode .actions button span{display:block;font-size:13px;color:#4b2d17;margin-top:0}
body.cutit-mode .actions button.on{background:#fff0bd}
body.cutit-mode .actions button:disabled{opacity:.45;cursor:not-allowed}

body.cutit-mode .learned{
  width:100%;margin-top:8px;height:46px;border:0;border-radius:10px;
  background:linear-gradient(90deg,var(--gold-active-start),var(--gold-active-end));
  color:white;font-size:18px;cursor:pointer;
  box-shadow:0 4px 10px #a66a0055;
}
body.cutit-mode .learned.done{
  background:linear-gradient(90deg,var(--gold-active-start),var(--gold-active-end));
  opacity:.85;
}
body.cutit-mode .learned:disabled{opacity:.78}

body.cutit-mode .navigation{
  display:grid;grid-template-columns:180px 1fr 180px;gap:28px;align-items:center;padding:4px 30px 2px;
}
body.cutit-mode .navigation > button{
  height:42px;border:1px solid #e8cf9c;background:white;border-radius:11px;
  color:#5b3517;font-weight:bold;cursor:pointer;
}
body.cutit-mode .navigation > button:disabled{opacity:.35}
body.cutit-mode .overall{
  display:grid;grid-template-columns:1fr 55px;gap:7px;align-items:center;text-align:center;color:var(--muted);
}
body.cutit-mode .overall span{grid-column:1/-1}
body.cutit-mode .overall strong{color:var(--gold-deep)}

/* Două carduri jos — egale, mai înalte (model final HEGJA) */
body.cutit-mode .cards-row{
  display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:4px 30px 0;align-items:stretch;
}
body.cutit-mode .example{
  margin:0;border:1px solid #ead5ad;background:#fffaf1;border-radius:12px;
  padding:14px 16px;min-height:168px;display:flex;gap:12px;align-items:flex-start;
  position:relative;overflow:hidden;height:100%;box-shadow:0 4px 14px rgba(60,40,10,.05);
}
body.cutit-mode .bulb{font-size:28px;flex-shrink:0;line-height:1}
body.cutit-mode .example strong{color:#bd7a00;display:block;margin-bottom:8px;font-size:15px}
body.cutit-mode .example p{margin:4px 0}
body.cutit-mode .italic{font-style:italic;color:var(--muted)}
body.cutit-mode .ex-row{
  display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;
  padding:7px 0;border-bottom:1px solid rgba(232,196,90,.28);
}
body.cutit-mode .ex-row:last-child{border-bottom:0}
body.cutit-mode .ex-row p{margin:0 0 2px;font-size:13.5px;line-height:1.35}
body.cutit-mode .ex-row .muted{font-size:12.5px}
body.cutit-mode .mini-play{
  width:34px;height:34px;border-radius:50%;border:1.5px solid var(--gold);
  background:#fff;color:var(--gold-deep);cursor:pointer;flex-shrink:0;
  display:inline-flex;align-items:center;justify-content:center;
}
body.cutit-mode .usage-text{margin:0;line-height:1.4;color:var(--ink);position:relative;z-index:1;font-size:13.5px}
body.cutit-mode .usage-lead{margin:0 0 8px;line-height:1.4}
body.cutit-mode .usage-points{
  list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:7px;
}
body.cutit-mode .usage-points li{
  display:flex;align-items:flex-start;gap:8px;margin:0;line-height:1.35;color:var(--ink);
}
body.cutit-mode .usage-points .check{
  color:var(--gold-deep);font-weight:700;flex-shrink:0;line-height:1.35;
}
body.cutit-mode .example.usage-card::after{
  content:"";position:absolute;right:8px;bottom:4px;width:110px;height:72px;opacity:.1;pointer-events:none;
  background:
    radial-gradient(circle at 30% 40%, var(--gold) 0 9px, transparent 10px),
    radial-gradient(circle at 70% 40%, var(--gold) 0 9px, transparent 10px),
    linear-gradient(135deg, transparent 40%, rgba(232,196,90,.2) 100%);
}
body.cutit-mode .cutit-footer{
  margin:4px 30px 2px;text-align:center;color:#a89884;font-size:11px;
}

/* Restaurant Lecția 1 / Polonic: același layout Cutit ca Politețe (fără override de dimensiuni).
   Doar headerul pe 2 linii + counter „Cuvânt n/10” (text din JS). */
body.cutit-mode.restaurant-lesson1-model .current{
  display:flex;flex-direction:column;gap:1px;line-height:1.15;
}
body.cutit-mode.restaurant-lesson1-model .current-kicker{
  font-size:12px;color:var(--muted);font-weight:600;letter-spacing:.02em;
}
body.cutit-mode.restaurant-lesson1-model .current strong{
  font-size:15px;color:#c48300;
}
body.cutit-mode.restaurant-lesson1-model .image-panel .word-emoji{
  width:min(100%,300px);max-height:300px;aspect-ratio:1/1;height:auto;
  object-fit:cover;border-radius:16px;display:flex;
  align-items:center;justify-content:center;flex-direction:column;
  background:#efe8dc;font-size:72px;line-height:1;box-sizing:border-box;
}

/* Shell Cutit vizibil doar în cutit-mode */
#cutitShell{display:none!important}
body.cutit-mode #cutitShell{display:flex!important}
/* Ascunde shell Restaurant când Cutit e activ */
body.cutit-mode #restaurantShell{display:none!important}
body.restaurant-mode #cutitShell{display:none!important}
body.cutit-mode .legacy-only,
body.cutit-mode .legacy-usage,
body.cutit-mode #extraMedia,
body.cutit-mode #audioRoHint,
body.cutit-mode #audioTargetHint{display:none!important}

@media(max-width:900px){
  body.cutit-mode .sidebar{width:78px}
  body.cutit-mode .sidebar span,
  body.cutit-mode .logo,
  body.cutit-mode .tagline,
  body.cutit-mode .brand .mark{display:none}
  body.cutit-mode .brand{height:95px;padding:14px 5px}
  body.cutit-mode .lesson-grid{grid-template-columns:1fr}
  body.cutit-mode .lesson-progress{display:none}
  body.cutit-mode .navigation{grid-template-columns:120px 1fr 120px}
  body.cutit-mode .cards-row{grid-template-columns:1fr;margin:10px 16px 0}
}
@media(max-width:620px){
  body.cutit-mode .app-shell{display:block}
  body.cutit-mode .sidebar{display:none}
  body.cutit-mode .topbar{height:auto;padding:12px}
  body.cutit-mode .lesson-grid{padding:16px}
  body.cutit-mode .navigation{padding:10px 16px;grid-template-columns:1fr 1fr}
  body.cutit-mode .overall{grid-column:1/-1;grid-row:1}
  body.cutit-mode .word-row h1,
  body.cutit-mode .word-row h2,
  body.cutit-mode .word-row .word-text{font-size:28px}
}
