
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --text-main: #452a17;   /* NOVÁ EATA BARVA */
  --text-muted: #7a624f;  /* jemnější cappuccino pro sekundární text */
  --font-sans: "Josefin Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-sans);
  background: transparent;
  color: var(--text-main);
}

.app {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

.app-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
  color: #ffffff; /* kvůli lang-label, kterou necháváme */
}
 /* text - horní s eat blok */

.hero-text {
  max-width: 640px;


}

.hero-title {
  margin: 0 0 4px;
  font-size: clamp(1.4rem, 1.8vw, 1.9rem);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.hero-subtitle {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.6;
  font-weight: 400;
}

.lang-switcher {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-label {
  font-size: 1.1rem;
  /* barvu necháváme z app-header (bílá) */
}

.lang-select {
  border-radius: 8px;
  padding: 8px 22px;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  background: #ec4899;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lang-select:hover {
  background: #db2777;
}

.panel {
  background: transparent;
  border-radius: 8px;
  padding: 0 0 10px;
  box-shadow: none;
  border: none;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 10px;
 
}

.label {
  font-weight: 700;        /* ⬅ tučné – sjednocené s Chat s Eat… */
  font-size: 1.15rem;
  color: var(--text-main) !important;
}

.hint {
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--text-main) !important;
}

/* === HORNÍ TEXT - POSUN  === */

.hero-text,
.hint {
  margin-left: 10px;   /* ← uprav si hodnotu */
}

/* === BUBLINA – ZADÁVÁNÍ SUROVIN (SJEDNOCENO S CHATEM) === */

.textarea {
  resize: none;              /* ✅ zrušeno roztahování */
  width: 100%;               /* ✅ zarovnání s tlačítky */
  min-height: 90px;          /* ✅ sjednocení s chatem */
  margin-bottom: 10px;       /* ✅ prostor pro tlačítka */

  padding: 14px 16px;
  font-size: 0.96rem;
  font-family: var(--font-sans);

  border-radius: 12px;
  border: none;
  outline: none;

  background: rgba(255, 255, 255, 0.88);

  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.10),
    inset 0 0 0 1px rgba(255,255,255,0.6);

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  color: var(--text-main);
  text-shadow: none;

  margin-top: 8px;
}

.textarea:focus {
  background-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.65);
  transform: translateY(-1px);
}

.buttons-row {
  display: flex;
  gap: 8px;
}

.buttons-row .button {
  flex: 1;
  width: auto;
  padding: 10px 14px;
  font-size: 0.95rem;
}

.button {
  padding: 7px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex; justify-content: center;
  align-items: center;
  gap: 0.35rem;
  transition: background-color 150ms ease-out, transform 150ms ease-out,
    box-shadow 150ms ease-out, border-color 150ms ease-out, opacity 150ms ease-out;
}

.button-primary {
  border: none;
  background: radial-gradient(circle at 30% 0%, #38bdf8, #0ea5e9);
  color: #f9fafb;
  box-shadow: 0 14px 30px rgba(14, 165, 233, 0.55);
}

.button-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(14, 165, 233, 0.7);
}

.button-primary[disabled] {
  opacity: 0.65;
  cursor: default;
  box-shadow: none;
  transform: none;
}

.button-secondary {
  border: none;
  background: #22c55e;
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.4);
}

.button-secondary:hover {
  background: #16a34a;
}

.status {
  margin-top: 8px;
  font-size: 0.88rem;
  min-height: 1.2em;
  color: var(--text-main);
}

.status-error {
  color: #b91c1c;
}

.output {
  position: relative;
  z-index: 2;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin-top: 20px;
  padding: 14px 16px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.45)!important;
  border: none;
  min-height: 56px;
  font-size: 0.94rem;
  line-height: 1.5;
  max-height: none !important;
  min-height: 200px;
  overflow-y: visible !important;
  padding-bottom: 40px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.55);
  color: var(--text-main) !important;
  text-shadow: none !important;
}

.output-placeholder {
  margin: 0;
  color: var(--text-main);
}

.output-title {
  font-weight: 600;
  margin: 0 0 6px;
}

.output-text {
  margin: 0;
}

.output h3 {
  margin-top: 16px;
  margin-bottom: 4px;
  font-size: 1.02rem;
}

.output p {
  margin: 4px 0 6px;
}

.output ul {
  margin: 4px 0 10px;
  padding-left: 22px;
}

.output-error {
  color: #b91c1c;
}

.footer {
  display: none;
}

@media (min-width: 720px) {
  .app {
    padding-top: 40px;
  }
}

/* DEMO locked recipes */
.locked-recipe { position: relative !important; pointer-events:none; }

/* ===========================
   MOBILE OPTIMIZATION (Variant A)
   =========================== */
@media (max-width: 540px) {
  .app {
      max-width: none !important;
      width: calc(100vw - 32px) !important; /* téměř přes celý mobil */
      margin: 0 auto !important;
      padding: 16px 8px 30px;
  }
}

  .hero-title { font-size: 1.9rem; }
  .hero-subtitle { font-size: 1rem; line-height: 1.45; }
  .lang-switcher { flex-direction: row; gap: 4px; }
  .lang-select { padding: 8px 14px; font-size: 0.85rem; }
  .textarea { min-height: 90px; padding: 10px 12px; font-size: 0.92rem; }
  .buttons-row .button { flex: 1 1 100%; width: 100%; }
  .button { padding: 12px 18px; font-size: 1rem; }
  .output {
    position: relative;
    z-index: 2;
    padding: 14px 14px 16px;
    font-size: 0.92rem;
    max-height: calc(100vh - 260px);
  }
}


  .output h3 { font-size: 1rem; }
}

/* FIX: overlay always visible */
.locked-recipe { position: relative !important; }

.locked-recipe {
    position: relative !important;
    pointer-events: none;
}
.locked-blurred-content {
    filter: blur(6px);
    opacity: 0.6;
}

.locked-overlay {
  position: absolute !important;
  top: 40% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 9999 !important;
  background: rgba(255,255,255,0.92);
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  width: fit-content;
  max-width: 80%;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  text-align: center;
  pointer-events: none;
  color: var(--text-main);
}

/* === GLASS PREMIUM RECIPE BLOCK === */
.recipe-block {
    background: rgba(255,255,255,0.40) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
    border-radius: 8px !important;
    padding: 26px 30px !important;
    margin: 26px auto !important;
    max-width: 760px !important;
    box-shadow: 0 20px 45px rgba(0,0,0,0.28) !important;
    border: 1px solid rgba(255,255,255,0.35) !important;
}

.recipe-block h3 {
    font-size: 1.6rem !important;
    font-weight: 700 !important;
    margin-bottom: 10px !important;
    color: var(--text-main) !important;
}

.recipe-block p {
    font-size: 1.15rem !important;
    color: var(--text-main) !important;
    margin-bottom: 18px !important;
    line-height: 1.55 !important;
}

.recipe-block li {
    font-size: 1.1rem !important;
    color: var(--text-main) !important;
    margin-bottom: 10px !important;
    line-height: 1.5 !important;
}


html, body, main, .app { background: transparent !important; }


/* =========================================================
   📘 DESKTOP – KNIHA
   ========================================================= */
.book-app {
  width: 100%;
  position: relative;
  text-align: center;
  margin-top: -290px; /* upravíš podle potřeby jen pro PC */
  transform: translateX(-20px); /* - doleva, + doprava */
  pointer-events: none;
  z-index: 99999;
}

.book-img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 1130px !important;   /* 🔥 DŮLEŽITÉ */
  max-width: 100%;
  height: auto;
  pointer-events: none;
}


/* =========================================================
   📱 MOBIL – CENTROVÁNÍ + POSUN
   ========================================================= */
@media (max-width: 768px) {

  .book-app {
      width: 82% !important;
      margin-top: -160px !important;     /* POSUN NAHORU / DOLŮ NA MOBILU */
      position: relative !important;
      left: 50% !important;
      transform: translateX( -75%) !important;
      text-align: center !important;
  }

  .book-img {
      width: 125% !important;          /* velikost knihy na mobilu */
      max-width: none !important;
      height: auto !important;
      margin-left: auto !important;
      margin-right: auto !important;
      display: block !important;
      transform: translateX(0) !important;
  }
}

/* =========================================================
   📱 ULTRA MALÉ TELEFONY
   ========================================================= */
@media (max-width: 480px) {
  .book-img {
      width: 150% !important;
  }
}

/* === OSTŘEJŠÍ ZOBRAZENÍ TAPETY KUCHYNĚ === */
.app {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* === TAPETA KUCHYNĚ NA CELÉ EATĚ */
.app {
    background: url("https://47057a08b6.clvaw-cdnwnd.com/c4aa89400a1745afb47e5c18480b8d81/200000399-c1257c1259/450/max%201%20-%20PixelBin-AI-Editor-1765381995969%20%283%29-1.png")
                center top / cover no-repeat !important;
    border-radius: 18px;
    padding-top: 40px;
    padding-bottom: 40px;

    box-shadow:0 12px 28px rgba(0,0,0,0.20),
         inset 0 0 0 1px rgba(255,255,255,0.08);

}

/* === ODSTRANĚNÍ bílé vrstvy stránky === */
html, body, main {
    background: transparent !important;
}

/* Panel kolem formuláře necháme průhledný */
.panel {
    background: transparent !important;
}

/* Skleněný efekt uvnitř - rozmazání oken generátoru + zadávání potravin */
.output, .textarea {
    background: rgba(255, 255, 255, 0.45) !important;
    backdrop-filter: blur(4px) brightness(1.05);
    -webkit-backdrop-filter: blur(17px) !important;
}

/* Header bez modrého podkladu */
.app-header {
    background: transparent !important;
}

/* ============================================================
   🎨 STÍNOVÁNÍ TEXTŮ – PROFESIONÁLNÍ, ABY BYLY ČITELNÉ NA FOTCE
   ============================================================ */

/* 
   Tento blok přidává silnější dvojitý stín pro bílé texty,
   jako jsou nadpisy, popisky a placeholdery.
   Dvojitý stín = lepší čitelnost na světlé i tmavé části fotky.
*/
.hero-title,
.hero-subtitle,
.label,
.hint,
.output-title,
.output-placeholder {
    text-shadow:
        0 1px 2px rgba(0,0,0,0.15) !important; /* jemný stín */
}

/* 
   Tento blok přidává jemné stínování na všechny texty
   uvnitř panelu .app (běžné odstavce, text v receptech, ingredience).
   Dělá text příjemně čitelný bez rušení designu.
*/
.app * {
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

/* === FIX ROZMAZANÉHO TEXTU VE VÝSTUPU (OUTPUT PLACEHOLDER) === */
.output-placeholder {
    text-shadow: none !important;
    filter: none !important;
    color: var(--text-main) !important;
    font-weight: 500;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

/* =========================================================
   🔍 OSTRÝ TEXT UVNITŘ TEXTAREY — ODSTRANĚNÍ ROZMAZÁNÍ
   ========================================================= */

/* Ostrý text – zabrání rozmazání písma uvnitř textarea */
.textarea {
    position: relative;
    z-index: 5; /* text bude nad blur vrstvou */
    color: var(--text-main) !important;
    text-shadow: none !important;
}

/* Samotné pozadí textarea necháme rozmazat */
.textarea::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.45);   /* světle skleněný efekt */
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: inherit;
    z-index: -1; /* tato vrstva je pod textem */
}

/* =========================================================
   🔍 OSTRÝ TEXT UVNITŘ TEXTAREY — ODSTRANĚNÍ ROZMAZÁNÍ (DUPLIKÁT)
   ========================================================= */

.textarea {
    position: relative;
    z-index: 5;
    color: var(--text-main) !important;
    text-shadow: none !important;
}

/* Skleněné pozadí textarea */
.textarea::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: inherit;
    z-index: -1;
}


/* =========================================================
   🔍 OSTRÝ TEXT V OUTPUT BLOKU – recepty a odpovědi Eaty
   ========================================================= */

.output {
    position: relative;
    color: var(--text-main) !important;
    text-shadow: none !important;
}


/* =========================================================
   ✨ NADPISY A HLAVIČKA – ponechat BÍLOU barvu
   ========================================================= */

.hero-title,
.hero-subtitle,
.label,
.hint {
    color: var(--text-main) !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.15) !important;
}

/* Placeholder text také ztmavíme pro čitelnost */
.textarea::placeholder {
    color: var(--text-main) !important;
    opacity: 0.8;
}

/* ============================================
   DEMO: rozmazání receptů 2, 3, 4+
   Správná vrstvená struktura
   ============================================ */

/* Samotný receptový blok není rozmazaný */
.locked-recipe {
    position: relative;
}

/* POUZE obsah receptu se rozmaže */
.locked-blurred-content {
    filter: blur(5px);
    opacity: 0.55;
}

/* Overlay jde NAVRCHU a je ostrý */
.locked-overlay {
    position: absolute;
    inset: 0;
    z-index: 99999;

    display: flex;
    justify-content: center;
    align-items: center;

    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);

    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);

    border-radius: 12px;
    pointer-events: none;
}

/* ============================================
   DEMO: rozmazání receptů 2, 3, 4+
   Správná vrstvená struktura (DUPLIKÁT)
   ============================================ */

/* Samotný receptový blok není rozmazaný */
.locked-recipe {
    position: relative;
}

/* POUZE obsah receptu se rozmaže */
.locked-blurred-content {
    filter: blur(5px);
    opacity: 0.55;
}

/* Overlay jde NAVRCHU a je ostrý */
.locked-overlay {
    position: absolute;
    inset: 0;
    z-index: 99999;

    display: flex;
    justify-content: center;
    align-items: center;

    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);

    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);

    border-radius: 12px;
    pointer-events: none;
}



.app {
    position: relative;
}

.app::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0);
    backdrop-filter: blur(5px) saturate(130%) contrast(110%);
    -webkit-backdrop-filter: blur(10px) saturate(130%) contrast(110%);
    z-index: 0;
    border-radius: 18px;
}

/* aby vše nahoře bylo vidět */
.app * {
    position: relative;
    z-index: 1;
}

/* =======================================
   FINÁLNÍ OPRAVA SPACINGU + ZTENČENÍ TEXTU
   ======================================= */

.hero-subtitle,
.hint {
    font-size: 1.08rem !important;
    font-weight: 400 !important;
    line-height: 0.90 !important;
    margin-bottom: 6px !important;
    letter-spacing: 0 !important;
    color: #452a17 !important;
}

.label {
    font-size: 1.15rem !important;
    font-weight: 700 !important;     /* ✅ TUČNÉ */
    line-height: 1.2 !important;
    margin-bottom: -8px !important;
    letter-spacing: 0 !important;
    color: #452a17 !important;
}

/* aby titul Eat… měl správný rozestup */
.hero-title {
    margin-bottom: 16px !important;
}

/* poslední řádek pod Eat — malinko větší rozestup než ostatní */
.hint:last-of-type {
    margin-bottom: 8px !important;
}

/* Zjemnění tučných slov */
.hint strong,
.hint b {
    font-weight: 500 !important;
    opacity: 0.8 !important;
}

/* ============================================================
   📖 RECEPTOVÉ KARTY – JEMNĚJŠÍ GLASS + REALISTIČTĚJŠÍ PAPÍR
   ============================================================ */

.recipe-block {
    /* PAPÍR – teplý, ale ne vanilka */
    background: #f8f5ef !important;

    /* téměř rovné rohy = stránka */
    border-radius: 5px !important;

    padding: 34px 38px !important;
    margin: 34px auto !important;
    max-width: 740px !important;

    /* STÍN JAKO LIST NA STOLE */

    box-shadow:
        0 1px 0 rgba(255,255,255,0.8),
        0 8px 14px rgba(0,0,0,0.12),
        0 2px 4px rgba(0,0,0,0.05);


    /* jemný okraj stránky */
    border: 1px solid rgba(0,0,0,0.08) !important;

    /* žádný glass */
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;

    background-image:
    linear-gradient(to bottom, rgba(0,0,0,0.035), transparent 18%),
    linear-gradient(to top, rgba(0,0,0,0.06), transparent 22%);

}

.recipe-block {
    position: relative;
}

.recipe-block::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
    pointer-events: none;
}

/* 👇 SEM PŘESNĚ TO, NA CO SE PTÁŠ */

.recipe-block::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35);
    pointer-events: none;
}

.recipe-intro {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.10);
    font-size: 0.96rem;
}

/* Nadpis receptu */
.recipe-block h3 {
    font-size: 1.45rem !important;
    font-weight: 700 !important;
    margin-bottom: 14px !important;
    color: #452a17 !important;
    text-shadow: none !important;
}

/* Texty receptu */
.recipe-block p,
.recipe-block li {
    color: #4c3a24 !important;
    text-shadow: none !important;
    font-size: 1.03rem !important;
    line-height: 1.55 !important;
}

/* Odrážky */
.recipe-block ul {
    padding-left: 22px !important;
}

.recipe-block li {
    margin-bottom: 6px !important;
}

/* Sekční titulky */
.recipe-block strong {
    color: #3b2817 !important;
}

/* Zákaz kopírování textu receptů */
.no-copy {
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

/* ===========================
   CHAT INPUT + BUTTONS
=========================== */

.chat-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* textové pole – ROZTÁHNOUT */
#chat-input {
  flex: 1;
  padding: 12px 14px;
  border-radius: 10px;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 0.95rem;

  background: rgba(255,255,255,0.85);
  box-shadow:
    0 6px 16px rgba(0,0,0,0.12),
    inset 0 0 0 1px rgba(255,255,255,0.6);
}

/* společné tlačítko */
.chat-btn {
  padding: 10px 20px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  color: #fff;
  white-space: nowrap;
}

/* MODRÉ – ODESLAT */
.chat-btn-send {
  background: radial-gradient(circle at 30% 0%, #38bdf8, #0ea5e9);
  box-shadow: 0 10px 24px rgba(14,165,233,0.5);
}

/* ZELENÉ – VYMAZAT */
.chat-btn-clear {
  background: #22c55e;
  box-shadow: 0 10px 24px rgba(34,197,94,0.45);
}

.chat-btn:hover {
  transform: translateY(-1px);
}
/* ===========================
   CHAT – BAREVNÉ PROMĚNNÉ
   (ZMĚŇ JEN TADY 🎨)
=========================== */

:root {
  /* bublina UŽIVATEL */
  --chat-user-bg: rgba(56,189,248,0.65);   /* jemná modrá */
  --chat-user-text: #0f172a;

  /* bublina EATA */
  --chat-eata-bg: rgba(255,255,255,0.70);   /* jemná bílá */
  --chat-eata-text: #3a2a1a;
}

/* ===========================
   CHAT INPUT + BUTTONS
=========================== */

.chat-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* textové pole */
#chat-input {
  flex: 1;
  padding: 7px 14px;
  border-radius: 10px;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 0.95rem;

  background: rgba(255,255,255,0.85);
  box-shadow:
    0 6px 16px rgba(0,0,0,0.12),
    inset 0 0 0 1px rgba(255,255,255,0.6);
}

/* společné tlačítko */
.chat-btn {
  padding: 7px 20px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  color: #fff;
  white-space: nowrap;
  transition: transform 120ms ease;
}

.chat-btn:hover {
  transform: translateY(-1px);
}

/* ODESLAT */
.chat-btn-send {
  background: radial-gradient(circle at 30% 0%, #38bdf8, #0ea5e9);
  box-shadow: 0 7px 24px rgba(14,165,233,0.5);
}

/* VYMAZAT */
.chat-btn-clear {
  background: #22c55e;
  box-shadow: 0 7px 24px rgba(34,197,94,0.45);
}

/* ===========================
   CHAT – KONVERZACE
=========================== */

.chat {
  padding: 16px;
  margin-top: 12px;

  background: rgba(255,255,255,0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border-radius: 16px;

  box-shadow:
    0 12px 30px rgba(0,0,0,0.25),
    inset 0 0 0 1px rgba(255,255,255,0.35);
}

/* kontejner zpráv */
.chat-messages {
  max-height: 260px;
  overflow-y: auto;
  margin-bottom: 14px;
}

/* ===========================
   SJEDNOCENÍ FORM + CHAT
=========================== */

.form {
  border-radius: 16px;
}

/* ===========================
   BUBLINY – SPOLEČNÝ ZÁKLAD
=========================== */

.chat-message {
  max-width: 88%;
  padding: 10px 14px;
  margin-bottom: 10px;
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.45;

  box-shadow:
    0 6px 14px rgba(0,0,0,0.12),
    inset 0 0 0 1px rgba(255,255,255,0.45);
}

/* ===========================
   BUBLINA – EATA
=========================== */

.chat-message.eata {
  background: var(--chat-eata-bg);
  color: var(--chat-eata-text);

  margin-right: auto;
  border-top-left-radius: 6px;
}

/* ===========================
   BUBLINA – UŽIVATEL
=========================== */

.chat-message.user {
  background: var(--chat-user-bg);
  color: var(--chat-user-text);

  margin-left: auto;
  border-top-right-radius: 6px;
}

/* ===========================
   RECIPE CARD – ZÁKLAD
=========================== */

.recipe-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 16px;
  cursor: pointer;

  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);

  transition:
    box-shadow 0.25s ease,
    transform 0.2s ease,
    border-color 0.25s ease;
}

/* jemný hover – jen pocit, ne barva */
.recipe-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

/* ===========================
   VYBRANÝ RECEPT
=========================== */

.recipe-card.recipe-selected {
  border: 2px solid rgba(56, 189, 248, 1);

  box-shadow:
    0 14px 36px rgba(56, 189, 248, 0.18),
    0 0 0 2px rgba(56, 189, 248, 0.12);

  /* zůstává BÍLÝ */
  background: #ffffff;
}

/* jemná reakce na klik */
.recipe-card {
  transition:
    border 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.12s ease;
}

.recipe-card:active {
  transform: scale(0.995);
}

/* ===========================
    PŘEMÝŠLÍ BUBLINKA chat
=========================== */

.typing-indicator {
  display: flex;
  gap: 6px;
  margin: 8px 0 12px 6px;
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  background-color: #999;
  border-radius: 50%;
  opacity: 0.4;
  animation: typingWave 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) {
  animation-delay: 0s;
}
.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}
.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingWave {
  0% { opacity: 0.3; transform: translateY(0); }
  20% { opacity: 1; transform: translateY(-4px); }
  40% { opacity: 0.3; transform: translateY(0); }
  100% { opacity: 0.3; }
}

.hidden {
  display: none;
}

/* ===========================
   GENERÁTOR – VLNA JAKO CHAT (FIX)
=========================== */

.typing-dots::after {
  content: "";
  display: inline-block;

  /* mikrotečka – existuje, ale není vidět */
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: transparent;

  margin-left: 10px;

  animation: dotWave 1.4s infinite ease-in-out;
}

@keyframes dotWave {
  0% {
    box-shadow:
      6px 0 0 rgba(120,120,120,.4),
      20px 0 0 rgba(120,120,120,.4),
      34px 0 0 rgba(120,120,120,.4);
  }
  20% {
    box-shadow:
      6px -6px 0 rgba(120,120,120,1),
      20px 0 0 rgba(120,120,120,.4),
      34px 0 0 rgba(120,120,120,.4);
  }
  40% {
    box-shadow:
      6px 0 0 rgba(120,120,120,.4),
      20px -6px 0 rgba(120,120,120,1),
      34px 0 0 rgba(120,120,120,.4);
  }
  60% {
    box-shadow:
      6px 0 0 rgba(120,120,120,.4),
      20px 0 0 rgba(120,120,120,.4),
      34px -6px 0 rgba(120,120,120,1);
  }
  100% {
    box-shadow:
      6px 0 0 rgba(120,120,120,.4),
      20px 0 0 rgba(120,120,120,.4),
      34px 0 0 rgba(120,120,120,.4);
  }
}

/* ===========================
   CHAT – MOBILE FIX
=========================== */

@media (max-width: 540px) {

  .chat-form {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  #chat-input {
    width: 100%;
  }

  .chat-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ===========================
   MOBILE – ROZTAŽENÍ OBSAHU
=========================== */

@media (max-width: 840px) {

  .app-container,
  .content,
  .main-content {
    max-width: 100%;
    width: 100%;
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* ===========================
   GENERÁTOR – STEJNÝ VZHLED JAKO CHAT (PC + MOBIL)
=========================== */

.form {
  background: rgba(255,255,255,0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border-radius: 16px;
  padding: 16px;

  box-shadow:
    0 12px 30px rgba(0,0,0,0.25),
    inset 0 0 0 1px rgba(255,255,255,0.35);
}

/* ======================================
   SJEDNOCENÍ VÝŠKY TLAČÍTEK (LANG + FORM)
====================================== */

/* Odeslat / Vymazat – generátor jídel */
.buttons-row .button {
  padding: 8px 18px;       /* ↓ menší výška */
  font-size: 0.9rem;
  line-height: 1.2;
  border-radius: 8px;
}

/* Jazykové tlačítko – jen pro jistotu */
.lang-select {
  padding: 8px 18px;
  font-size: 0.9rem;
  line-height: 1.2;
  height: auto;
}

.label,
.chat h3 {
  padding-left: 12px;
}

.label,
.chat h3 {
  margin-top: 0;
  margin-bottom: 12px;
}

.generator-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
 }

@media (max-width: 768px) {
  html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
  }

  .app {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding-left: 12px;
    padding-right: 12px;
  }
}

@media (max-width: 768px) {
  .generator-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
}
/* ===========================
   GENERÁTOR – TLAČÍTKA JAKO CHAT (MOBIL)
=========================== */
@media (max-width: 768px) {

  .buttons-row {
    flex-direction: column;
    gap: 10px;
  }

  .buttons-row .button {
    width: 100%;
  }

  /* jazykové tlačítko jako poslední */
  .lang-switcher {
    width: 100%;
    justify-content: center;
  }

  .lang-select {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .language-select {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    line-height: 52px;
  }
}

@media (max-width: 768px) {

  .generator-buttons > * {
    height: 52px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
  }

}
/* ===========================
   MOBILE – LANG SELECT CENTER FIX
=========================== */
@media (max-width: 768px) {

  .lang-switcher {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .lang-select {
    display: block;
    text-align-last: center; /* 🔥 klíčové pro select */
    padding-left: 24px;
    padding-right: 24px;
  }
}
