﻿/* ============================================================
   Családi Szakácskönyv – stíluslap v2
   Kategória-színek · Animációk · Cooking mode · Dark toggle
   ============================================================ */

/* ── CSS változók (light mód alapértelmezett) ── */
:root {
  --clr-primary:    #FF6B35;
  --clr-primary-d:  #E5521B;
  --clr-secondary:  #2C3E50;
  --clr-accent:     #27AE60;
  --clr-warn:       #E74C3C;
  --clr-gold:       #F39C12;

  --bg:             #F7F3EE;
  --bg-card:        #FFFFFF;
  --bg-input:       #F0EBE3;
  --bg-nav:         #FFFFFF;
  --text:           #2C3E50;
  --text-muted:     #7F8C8D;
  --border:         #E0D8CE;
  --shadow:         0 2px 12px rgba(0,0,0,.08);
  --shadow-lg:      0 6px 28px rgba(0,0,0,.13);
  --radius:         16px;
  --radius-sm:      10px;
  --nav-h:          64px;
  --header-h:       56px;
  --transition:     .2s ease;
  --page-anim:      .25s cubic-bezier(.4,0,.2,1);
}

/* ── Sötét mód – system ── */
@media (prefers-color-scheme: dark) {
  :root:not([data-scheme="light"]) {
    --bg:        #0F0F0F;
    --bg-card:   #1C1C1E;
    --bg-input:  #2C2C2E;
    --bg-nav:    #1C1C1E;
    --text:      #F2F2F7;
    --text-muted:#8E8E93;
    --border:    #38383A;
    --shadow:    0 2px 12px rgba(0,0,0,.5);
    --shadow-lg: 0 6px 28px rgba(0,0,0,.6);
  }
}
/* ── Sötét mód – manuális ── */
:root[data-scheme="dark"] {
  --bg:        #0F0F0F;
  --bg-card:   #1C1C1E;
  --bg-input:  #2C2C2E;
  --bg-nav:    #1C1C1E;
  --text:      #F2F2F7;
  --text-muted:#8E8E93;
  --border:    #38383A;
  --shadow:    0 2px 12px rgba(0,0,0,.5);
  --shadow-lg: 0 6px 28px rgba(0,0,0,.6);
}
/* ── Világos mód – manuális (system dark felülírása) ── */
:root[data-scheme="light"] {
  --bg:        #F7F3EE;
  --bg-card:   #FFFFFF;
  --bg-input:  #F0EBE3;
  --bg-nav:    #FFFFFF;
  --text:      #2C3E50;
  --text-muted:#7F8C8D;
  --border:    #E0D8CE;
  --shadow:    0 2px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 6px 28px rgba(0,0,0,.13);
}

/* ── Szecessziós téma (Art Nouveau – FR-16) ── */
:root[data-theme="secession"] {
  --bg:             #F5F0E8;
  --bg-card:        #FBF8F2;
  --bg-input:       #EDE6D6;
  --bg-nav:         #2A1A0E;
  --text:           #3D2B1F;
  --text-muted:     #8B7355;
  --border:         #C9A84C;
  --shadow:         0 2px 12px rgba(61,43,31,.1);
  --shadow-lg:      0 6px 28px rgba(61,43,31,.18);
  --clr-primary:    #8B2635;
  --clr-primary-d:  #6B1A28;
  --clr-accent:     #2D5016;
  --clr-gold:       #C9A84C;
  --clr-warn:       #8B2635;
  --radius:         20px;
  --radius-sm:      14px;
  --cat-leves-bg:    #EAE0D0; --cat-leves-acc:   #8B2635;
  --cat-főétel-bg:   #F0E8D8; --cat-főétel-acc:  #C9A84C;
  --cat-köret-bg:    #E0EAD8; --cat-köret-acc:   #2D5016;
  --cat-desszert-bg: #EAD8D8; --cat-desszert-acc:#8B2635;
  --cat-reggeli-bg:  #F0E8D0; --cat-reggeli-acc: #8B5E1A;
  --cat-egyéb-bg:    #E8E0D8; --cat-egyéb-acc:   #5C4A2A;
}

/* Szeci: Playfair Display betűkészlet minden fontosabb szövegen */
[data-theme="secession"] .app-title,
[data-theme="secession"] .recipe-card-title,
[data-theme="secession"] .detail-title,
[data-theme="secession"] .detail-section-title,
[data-theme="secession"] .settings-section h3,
[data-theme="secession"] .modal-title,
[data-theme="secession"] .page-header h2,
[data-theme="secession"] .cook-step-text,
[data-theme="secession"] h1, [data-theme="secession"] h2,
[data-theme="secession"] h3, [data-theme="secession"] h4 {
  font-family: 'Playfair Display', Georgia, serif;
  letter-spacing: .01em;
}

/* Szeci app header – sötét mahagóni alapon arany */
[data-theme="secession"] .app-header {
  background: linear-gradient(135deg, #2A1A0E 0%, #3D2B1F 100%);
  border-bottom: 2px solid #C9A84C;
  color: #F5E6C8;
}
[data-theme="secession"] .app-header::before {
  content: '❧';
  position: absolute; left: 50%; transform: translateX(-50%) translateY(-50%);
  top: 100%; font-size: 1.4rem; color: #C9A84C; z-index: 10;
  text-shadow: 0 1px 4px rgba(0,0,0,.3);
}
[data-theme="secession"] .app-title,
[data-theme="secession"] .greeting {
  color: #F5E6C8;
}
[data-theme="secession"] #btn-theme-toggle,
[data-theme="secession"] #btn-sync-drive {
  color: #C9A84C;
}

/* Szeci bottom nav – sötét mahagóni */
[data-theme="secession"] .bottom-nav {
  background: #2A1A0E;
  border-top: 2px solid #C9A84C;
}
[data-theme="secession"] .nav-btn { color: rgba(245,230,200,.45); }
[data-theme="secession"] .nav-btn.active { color: #C9A84C; }
[data-theme="secession"] .nav-btn.active .nav-icon {
  background: rgba(201,168,76,.15);
}

/* Szeci kártyák – arany border, lekerekített sarok, virág dekoráció */
[data-theme="secession"] .recipe-card {
  border: 1.5px solid #C9A84C;
  border-radius: var(--radius);
  background: var(--bg-card);
  position: relative;
  overflow: hidden;
}
[data-theme="secession"] .recipe-card::before {
  content: '✿';
  position: absolute; top: 8px; right: 10px;
  font-size: .95rem; color: rgba(201,168,76,.35);
  pointer-events: none;
}

/* Szeci section cím – ornamentális keret előtt/után */
[data-theme="secession"] .detail-section-title::before,
[data-theme="secession"] .settings-section h3::before {
  content: '✦ ';
  color: #C9A84C;
}
[data-theme="secession"] .detail-section-title::after,
[data-theme="secession"] .settings-section h3::after {
  content: ' ✦';
  color: #C9A84C;
}

/* Szeci gombok – bordó átmenet arany árnyékkal */
[data-theme="secession"] .btn-primary {
  background: linear-gradient(135deg, #8B2635 0%, #6B1A28 100%);
  box-shadow: 0 3px 12px rgba(139,38,53,.35), inset 0 1px 0 rgba(255,255,255,.1);
  border: 1px solid #A03040;
}
[data-theme="secession"] .btn-primary:hover {
  background: linear-gradient(135deg, #A03040 0%, #8B2635 100%);
}
[data-theme="secession"] .btn-secondary {
  border-color: #C9A84C;
  color: #3D2B1F;
}

/* Szeci inputok – arany fókusz */
[data-theme="secession"] .form-input:focus,
[data-theme="secession"] .form-select:focus,
[data-theme="secession"] textarea:focus {
  border-color: #C9A84C;
  box-shadow: 0 0 0 3px rgba(201,168,76,.2);
}

/* Szeci detail title – ornamentális aláhúzás */
[data-theme="secession"] .detail-title {
  font-size: 1.7rem; font-style: italic;
  background: linear-gradient(135deg, #8B2635, #C9A84C);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Szeci főzési mód header – sötét mahagóni */
[data-theme="secession"] #page-cook .cook-header {
  background: #2A1A0E;
  border-bottom: 2px solid #C9A84C;
  color: #F5E6C8;
}
[data-theme="secession"] #page-cook .cook-close { color: #C9A84C; }
[data-theme="secession"] .cook-progress-fill {
  background: linear-gradient(90deg, #8B2635, #C9A84C);
}

/* Szeci chip-ek és tagek */
[data-theme="secession"] .tag-chip {
  border-color: #C9A84C;
  color: #3D2B1F;
  font-family: 'Playfair Display', serif;
  font-size: .78rem;
}

/* Szeci card separator ornament – csak a home listában */
[data-theme="secession"] .recipe-list-item + .recipe-list-item::before {
  content: '· · ·';
  display: block; text-align: center;
  color: #C9A84C; font-size: .7rem; letter-spacing: .5em;
  opacity: .5; margin: 0 0 4px;
}

/* ── Sötét mód + Görög téma kombináció ── */
:root[data-theme="greek"][data-scheme="dark"] {
  --bg:        #06111F;
  --bg-card:   #0D1E30;
  --bg-input:  #122640;
  --bg-nav:    #040D18;
  --text:      #D8E8F4;
  --text-muted:#5A8AAA;
  --border:    #1A3A5C;
  --shadow:    0 2px 12px rgba(0,0,0,.6);
  --shadow-lg: 0 6px 28px rgba(0,0,0,.7);
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="greek"]:not([data-scheme="light"]) {
    --bg:        #06111F;
    --bg-card:   #0D1E30;
    --bg-input:  #122640;
    --bg-nav:    #040D18;
    --text:      #D8E8F4;
    --text-muted:#5A8AAA;
    --border:    #1A3A5C;
    --shadow:    0 2px 12px rgba(0,0,0,.6);
    --shadow-lg: 0 6px 28px rgba(0,0,0,.7);
  }
}

/* ── Sötét mód + Szeci téma kombináció ── */
:root[data-theme="secession"][data-scheme="dark"] {
  --bg:        #160D07;
  --bg-card:   #1E1108;
  --bg-input:  #26160A;
  --bg-nav:    #0F0905;
  --text:      #EEE0C8;
  --text-muted:#8B7355;
  --border:    #3A2010;
  --shadow:    0 2px 12px rgba(0,0,0,.65);
  --shadow-lg: 0 6px 28px rgba(0,0,0,.75);
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="secession"]:not([data-scheme="light"]) {
    --bg:        #160D07;
    --bg-card:   #1E1108;
    --bg-input:  #26160A;
    --bg-nav:    #0F0905;
    --text:      #EEE0C8;
    --text-muted:#8B7355;
    --border:    #3A2010;
    --shadow:    0 2px 12px rgba(0,0,0,.65);
    --shadow-lg: 0 6px 28px rgba(0,0,0,.75);
  }
}

/* ── Görög/Mediterrán téma (FR-16) ── */
:root[data-theme="greek"] {
  --bg:             #F0F4F8;
  --bg-card:        #FFFFFF;
  --bg-input:       #E8EEF4;
  --bg-nav:         #1A3A5C;
  --text:           #1A3A5C;
  --text-muted:     #5A7A9C;
  --border:         #B8CCE0;
  --shadow:         0 2px 12px rgba(26,58,92,.1);
  --shadow-lg:      0 6px 28px rgba(26,58,92,.18);
  --clr-primary:    #00B2CA;
  --clr-primary-d:  #0090A8;
  --clr-secondary:  #1A3A5C;
  --clr-accent:     #E07A5F;
  --clr-gold:       #E07A5F;
  --clr-warn:       #D64045;
  --nav-icon-color: #FFFFFF;
  --cat-leves-bg:   #D6EEF4; --cat-leves-acc:   #00B2CA;
  --cat-főétel-bg:  #FAE8E0; --cat-főétel-acc:  #E07A5F;
  --cat-köret-bg:   #D8EED8; --cat-köret-acc:   #2E8B57;
  --cat-desszert-bg:#EEE0F0; --cat-desszert-acc:#8B6BAE;
  --cat-reggeli-bg: #FFF0D6; --cat-reggeli-acc: #D4860A;
  --cat-egyéb-bg:   #E8EEF4; --cat-egyéb-acc:   #5A7A9C;
}

/* Görög header – tenger kék */
[data-theme="greek"] .app-header {
  background: #1A3A5C;
  color: #FFFFFF;
}
[data-theme="greek"] .app-header .app-title,
[data-theme="greek"] .app-header .greeting {
  color: #FFFFFF;
}
[data-theme="greek"] #btn-theme-toggle,
[data-theme="greek"] #btn-sync-drive {
  color: rgba(255,255,255,.85);
}

/* Görög bottom nav */
[data-theme="greek"] .bottom-nav {
  background: #1A3A5C;
  border-top: 2px solid #00B2CA;
}
[data-theme="greek"] .nav-btn {
  color: rgba(255,255,255,.55);
}
[data-theme="greek"] .nav-btn.active {
  color: #00B2CA;
}
[data-theme="greek"] .nav-btn.active .nav-icon {
  background: rgba(0,178,202,.15);
}

/* Görög kártya: fehér + azúr felső border */
[data-theme="greek"] .recipe-card {
  border-top: 3px solid #00B2CA;
  border-radius: var(--radius-sm);
}

/* Görög dekoráció: meander/görög kulcsos minta a headerben */
[data-theme="greek"] .app-header::after {
  content: '';
  display: block;
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    #00B2CA 0px, #00B2CA 8px,
    transparent 8px, transparent 12px,
    #E07A5F 12px, #E07A5F 20px,
    transparent 20px, transparent 24px
  );
}

/* Görög section divider: turquoise vonal csillaggal */
[data-theme="greek"] .settings-section h3::after,
[data-theme="greek"] .detail-section-title::after {
  content: ' ✦';
  color: #00B2CA;
  font-size: .8em;
}

/* Görög gombok */
[data-theme="greek"] .btn-primary {
  background: linear-gradient(135deg, #00B2CA, #0090A8);
  box-shadow: 0 3px 12px rgba(0,178,202,.35);
}
[data-theme="greek"] .btn-primary:hover {
  background: linear-gradient(135deg, #0090A8, #00778A);
}

/* Görög szezon chips */
[data-theme="greek"] .tag-chip {
  border-color: #B8CCE0;
  color: #1A3A5C;
}

/* ── Kategória-színek ── */
:root {
  --cat-leves-bg:    #EBF5FB; --cat-leves-acc:   #2E86C1;
  --cat-főétel-bg:   #FEF9E7; --cat-főétel-acc:  #D4AC0D;
  --cat-köret-bg:    #EAFAF1; --cat-köret-acc:   #1E8449;
  --cat-desszert-bg: #F9EBF8; --cat-desszert-acc:#8E44AD;
  --cat-reggeli-bg:  #FEF5E7; --cat-reggeli-acc: #CA6F1E;
  --cat-egyéb-bg:    #F2F3F4; --cat-egyéb-acc:   #707B7C;
}
[data-scheme="dark"] {
  --cat-leves-bg:    rgba(46,134,193,.2);  --cat-leves-acc:   #5DADE2;
  --cat-főétel-bg:   rgba(212,172,13,.15); --cat-főétel-acc:  #F4D03F;
  --cat-köret-bg:    rgba(30,132,73,.2);   --cat-köret-acc:   #58D68D;
  --cat-desszert-bg: rgba(142,68,173,.2);  --cat-desszert-acc:#C39BD3;
  --cat-reggeli-bg:  rgba(202,111,30,.2);  --cat-reggeli-acc: #F0B27A;
  --cat-egyéb-bg:    rgba(112,123,124,.15);--cat-egyéb-acc:   #AAB7B8;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-scheme="light"]) {
    --cat-leves-bg:    rgba(46,134,193,.2);  --cat-leves-acc:   #5DADE2;
    --cat-főétel-bg:   rgba(212,172,13,.15); --cat-főétel-acc:  #F4D03F;
    --cat-köret-bg:    rgba(30,132,73,.2);   --cat-köret-acc:   #58D68D;
    --cat-desszert-bg: rgba(142,68,173,.2);  --cat-desszert-acc:#C39BD3;
    --cat-reggeli-bg:  rgba(202,111,30,.2);  --cat-reggeli-acc: #F0B27A;
    --cat-egyéb-bg:    rgba(112,123,124,.15);--cat-egyéb-acc:   #AAB7B8;
  }
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background .3s, color .3s;
}
img { max-width: 100%; display: block; }
a { color: var(--clr-primary); text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

/* ── Segédosztályok ── */
.hidden    { display: none !important; }
.flex      { display: flex; }
.flex-col  { display: flex; flex-direction: column; }
.gap-8     { gap: 8px; }
.gap-12    { gap: 12px; }
.gap-16    { gap: 16px; }
.mt-8      { margin-top: 8px; }
.mt-16     { margin-top: 16px; }
.mt-24     { margin-top: 24px; }
.mb-16     { margin-bottom: 16px; }
.text-muted{ color: var(--text-muted); font-size: .875rem; }
.text-sm   { font-size: .875rem; }
.bold      { font-weight: 600; }
.center    { text-align: center; }
.full-w    { width: 100%; }

/* ── Betöltési képernyő ── */
#loading-screen {
  position: fixed; inset: 0;
  background: linear-gradient(135deg, #FF6B35 0%, #C0392B 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  z-index: 9999; color: white; gap: 16px;
  transition: opacity .4s;
}
#loading-screen .logo { font-size: 3.5rem; animation: logoPulse 1.5s ease infinite; }
@keyframes logoPulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.08)} }
#loading-screen h1 { font-size: 1.5rem; font-weight: 800; }
#loading-screen p  { font-size: .9rem; opacity: .85; }
.spinner {
  width: 36px; height: 36px;
  border: 4px solid rgba(255,255,255,.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Processing overlay ── */
#processing-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  display: flex; align-items: center; justify-content: center;
  z-index: 8888; backdrop-filter: blur(4px);
}
.processing-box {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 32px 40px; text-align: center; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  animation: scaleIn .2s ease;
}
.processing-box .spinner { border-color: rgba(255,107,53,.3); border-top-color: var(--clr-primary); }
.processing-box p { font-weight: 700; font-size: 1rem; }
@keyframes scaleIn { from{transform:scale(.9);opacity:0} to{transform:scale(1);opacity:1} }

/* ── Toast – tetejére tolva hogy ne takarja a cook vezérlőket ── */
#toast-container {
  position: fixed; top: calc(var(--header-h) + 8px); left: 50%;
  transform: translateX(-50%); z-index: 9000;
  display: flex; flex-direction: column; gap: 8px; align-items: center;
  pointer-events: none; width: 90vw; max-width: 420px;
}
.toast {
  background: var(--clr-secondary); color: white;
  padding: 11px 20px; border-radius: 20px;
  font-size: .9rem; font-weight: 600;
  box-shadow: var(--shadow-lg);
  animation: slideDown .3s ease;
  pointer-events: all;
  white-space: normal; text-align: center;
  width: auto; max-width: 100%;
}
.toast.success { background: var(--clr-accent); }
.toast.error   { background: var(--clr-warn); }
.toast.warning { background: var(--clr-gold); color: #333; }
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── BUG-13: Auth reconnect banner ── */
.auth-reconnect-banner {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%);
  z-index: 9000;
  display: flex; align-items: center; gap: 12px;
  background: #1A3A5C; color: white;
  padding: 12px 20px; border-radius: 32px;
  box-shadow: 0 4px 20px rgba(0,0,0,.35);
  font-size: .88rem; font-weight: 600;
  white-space: nowrap;
}
.auth-reconnect-banner.hidden { display: none; }
.auth-reconnect-banner #btn-reconnect {
  background: white; color: #1A3A5C;
  border: none; border-radius: 20px;
  padding: 6px 14px; font-weight: 800; font-size: .83rem;
  cursor: pointer;
}

/* ── Update banner – frissítés elérhető értesítő ── */
.update-banner {
  box-sizing: border-box; width: 100%; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 9px 16px;
  background: linear-gradient(90deg, #1A3A5C, #00B2CA);
  color: white; font-size: .85rem; font-weight: 700;
  flex-wrap: wrap; text-align: center;
}
.update-banner > span {
  min-width: 0; word-break: break-word;
}
.update-now-btn {
  background: white; color: #1A3A5C;
  border: none; border-radius: 20px;
  padding: 5px 14px; font-size: .82rem; font-weight: 800;
  cursor: pointer; white-space: nowrap;
  transition: transform .1s, box-shadow .1s;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.update-now-btn:active { transform: scale(.95); }

/* ── Header dropdown (scheme picker + theme picker) ── */
.header-dropdown {
  position: fixed; top: 60px; right: 10px; /* top JS-ből frissül nyitáskor */
  z-index: 8000;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  min-width: 150px;
  animation: dropdownIn .18s cubic-bezier(.4,0,.2,1);
}
@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-8px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.header-dropdown-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 12px 18px;
  background: none; border: none;
  font-size: .92rem; font-weight: 600; color: var(--text);
  cursor: pointer; text-align: left;
  transition: background .13s;
  -webkit-tap-highlight-color: transparent;
}
.header-dropdown-item:hover { background: var(--bg-input); }
.header-dropdown-item + .header-dropdown-item {
  border-top: 1px solid var(--border);
}
.header-dropdown-item.active {
  color: var(--clr-primary);
  background: rgba(255,107,53,.07);
}
.header-dropdown-item.active::after {
  content: '✓'; margin-left: auto; font-size: .85rem;
}
[data-theme="greek"] .header-dropdown { border-color: #00B2CA; }
[data-theme="greek"] .header-dropdown-item.active { color: #00B2CA; background: rgba(0,178,202,.08); }
[data-theme="secession"] .header-dropdown { border-color: #C9A84C; }
[data-theme="secession"] .header-dropdown-item.active { color: #8B2635; background: rgba(201,168,76,.1); }

/* ── PWA Install banner ── */
#install-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 16px 20px 20px;
  z-index: 6000;
  box-shadow: 0 -8px 32px rgba(0,0,0,.15);
  display: flex; flex-direction: column; gap: 12px;
  animation: slideUpBanner .3s ease;
  border-radius: var(--radius) var(--radius) 0 0;
}
@keyframes slideUpBanner {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.install-banner-row {
  display: flex; align-items: center; gap: 14px;
}
.install-banner-icon {
  width: 56px; height: 56px; border-radius: 12px;
  overflow: hidden; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.install-banner-icon img { width: 100%; height: 100%; object-fit: cover; }
.install-banner-text h3 { font-size: 1rem; font-weight: 700; }
.install-banner-text p  { font-size: .85rem; color: var(--text-muted); margin-top: 2px; }
.install-banner-actions { display: flex; gap: 10px; }
.install-banner-actions .btn { flex: 1; }

/* ── Bejelentkezési képernyő ── */
#login-screen {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 32px 24px; text-align: center;
  background: linear-gradient(160deg, #FF6B35 0%, #C0392B 100%);
  color: white;
}
#login-screen .logo { font-size: 4.5rem; margin-bottom: 16px; animation: logoPulse 2s ease infinite; }
#login-screen h1 { font-size: 2rem; font-weight: 800; margin-bottom: 6px; }
#login-screen .subtitle { font-size: 1.1rem; opacity: .85; margin-bottom: 8px; font-weight: 600; }
#login-screen p { font-size: .95rem; opacity: .8; margin-bottom: 40px; line-height: 1.7; max-width: 300px; }
.btn-google {
  display: flex; align-items: center; gap: 14px;
  background: white; color: #333;
  padding: 14px 28px; border-radius: 32px;
  font-size: 1rem; font-weight: 700;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn-google:hover, .btn-google:active { transform: translateY(-2px) scale(1.02); }

/* ── App wrapper ── */
#app {
  display: flex; flex-direction: column;
  min-height: 100vh;
  padding-bottom: var(--nav-h);
}

/* ── Header ── */
.app-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px;
  box-shadow: var(--shadow);
  transition: background .3s;
}
.header-title {
  font-size: 1.05rem; font-weight: 800;
  flex: 1; text-align: center;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
}
.header-back {
  display: flex; align-items: center; gap: 4px;
  font-size: .9rem; color: var(--clr-primary); font-weight: 700;
  padding: 8px 4px; min-width: 70px;
}
.header-actions { display: flex; gap: 2px; min-width: 70px; justify-content: flex-end; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text); font-size: 1.1rem;
  transition: background var(--transition), transform .15s;
}
.icon-btn:active { transform: scale(.9); background: var(--bg-input); }

/* ── Bottom Nav ── */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--nav-h); background: var(--bg-nav);
  border-top: 1px solid var(--border);
  display: flex; align-items: stretch; z-index: 200;
  box-shadow: 0 -2px 16px rgba(0,0,0,.08);
  transition: background .3s;
}
.nav-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2px; font-size: .62rem; font-weight: 700;
  color: var(--text-muted);
  transition: color var(--transition);
  padding: 8px 4px;
  -webkit-tap-highlight-color: transparent;
  letter-spacing: .01em;
}
.nav-item .nav-icon { font-size: 1.35rem; line-height: 1; transition: transform .2s; }
.nav-item.active { color: var(--clr-primary); }
.nav-item.active .nav-icon { transform: scale(1.1); }

/* ── Oldalak (animációval) ── */
.page {
  flex: 1; padding: 16px; padding-bottom: 24px;
  animation: pageFadeIn var(--page-anim) both;
}
.page-no-pad { padding: 0; }
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Keresősáv ── */
.search-wrap { position: relative; margin-bottom: 10px; }
.search-bar {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-input); border-radius: 32px;
  padding: 11px 18px;
  border: 2px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.search-bar:focus-within {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(255,107,53,.15);
}
.search-bar input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text); font-size: 1rem;
}
.search-bar .icon { color: var(--text-muted); font-size: 1rem; }
/* Recent search dropdown */
.recent-search-dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: var(--bg-card); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); z-index: 50;
  overflow: hidden;
  animation: scaleIn .15s ease;
}
.recent-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; font-size: .9rem;
  cursor: pointer; color: var(--text-muted);
  transition: background .15s;
}
.recent-item:hover { background: var(--bg-input); }
.recent-item .icon { font-size: .9rem; }

/* ── Szűrő chipek ── */
.filter-chips {
  display: flex; gap: 8px; overflow-x: auto;
  padding-bottom: 4px; margin-bottom: 14px;
  scrollbar-width: none;
}
.filter-chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; padding: 7px 14px; border-radius: 20px;
  font-size: .82rem; font-weight: 700;
  background: var(--bg-input); color: var(--text-muted);
  border: 2px solid transparent;
  transition: all var(--transition); white-space: nowrap;
}
.chip.active {
  background: var(--clr-primary); color: white;
  border-color: var(--clr-primary-d);
  box-shadow: 0 2px 10px rgba(255,107,53,.3);
}
.chip-fav.active { background: #E74C3C; border-color: #C0392B; }

/* ── FR-10 + FR-14: Rendezés / nézet toolbar ── */
.list-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; gap: 8px;
}
.sort-group {
  display: flex; align-items: center;
  background: var(--bg-input); border-radius: 22px;
  border: 1.5px solid var(--border);
  overflow: hidden;
}
.sort-select {
  background: transparent; color: var(--text);
  border: none; border-right: 1.5px solid var(--border);
  padding: 7px 10px 7px 14px;
  font-size: .82rem; font-weight: 600;
  outline: none; cursor: pointer;
  max-width: 130px;
}
.sort-dir-btn {
  background: transparent; color: var(--text-muted);
  border: none; padding: 7px 12px;
  font-size: .95rem; font-weight: 800; cursor: pointer;
  transition: color .15s, background .15s;
  line-height: 1;
}
.sort-dir-btn:active { background: var(--clr-primary); color: white; border-radius: 0 20px 20px 0; }
.view-toggle-btn {
  background: var(--bg-input); color: var(--text-muted);
  border: 1.5px solid var(--border); border-radius: 22px;
  padding: 7px 14px; font-size: 1rem; cursor: pointer;
  transition: all .15s; font-weight: 700; line-height: 1;
}
.view-toggle-btn:active, .view-toggle-btn.active {
  background: var(--clr-primary); color: white;
  border-color: var(--clr-primary-d);
}

/* ── Recept rács ── */
.recipe-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (min-width: 480px) { .recipe-grid { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 768px) { .recipe-grid { grid-template-columns: repeat(4,1fr); } }

/* ── FR-14: Lista nézet ── */
.recipe-list { display: flex; flex-direction: column; gap: 6px; }
.recipe-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-card); border-radius: var(--radius-sm);
  padding: 10px 12px; cursor: pointer;
  box-shadow: var(--shadow);
  transition: background .15s;
  animation: fadeInUp .25s ease both;
}
.recipe-row:active { background: var(--bg-input); }
.recipe-row-emoji { font-size: 1.3rem; flex-shrink: 0; }
.recipe-row-title {
  flex: 1; font-weight: 600; font-size: .95rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.recipe-row-meta { display: flex; gap: 5px; flex-shrink: 0; }

/* ── Recept kártya ── */
.recipe-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
  animation: cardFadeIn .35s ease both;
  position: relative;
}
@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.recipe-card:active { transform: scale(.96); }
.recipe-card:hover  { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* Kategória fejléc-sáv */
.recipe-card-header {
  padding: 18px 14px 12px;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 6px;
}
.recipe-card-header .cat-emoji { font-size: 2rem; line-height: 1; }
.recipe-card-fav {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: 1rem;
  transition: transform .2s;
  flex-shrink: 0; margin-top: -4px;
}
.recipe-card-fav:active { transform: scale(1.3); }

/* Kategória szín osztályok */
.cat-leves    { background: var(--cat-leves-bg); }
.cat-főétel   { background: var(--cat-főétel-bg); }
.cat-köret    { background: var(--cat-köret-bg); }
.cat-desszert { background: var(--cat-desszert-bg); }
.cat-reggeli  { background: var(--cat-reggeli-bg); }
.cat-egyéb    { background: var(--cat-egyéb-bg); }

.recipe-card-body { padding: 0 12px 12px; }
.recipe-card-title {
  font-size: .9rem; font-weight: 800; line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.recipe-card-meta { display: flex; gap: 5px; flex-wrap: wrap; }

/* ── Badge-ek ── */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 8px; border-radius: 10px;
  font-size: .7rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .03em;
}
.badge-diff { background: var(--bg-input); color: var(--text-muted); }
.badge-time { background: var(--bg-input); color: var(--text-muted); }
.badge-white { background: rgba(255,255,255,.25); color: white; backdrop-filter: blur(4px); }

/* ── Üres állapot ── */
.empty-state {
  text-align: center; padding: 60px 24px;
  color: var(--text-muted);
}
.empty-state .emoji { font-size: 4.5rem; margin-bottom: 16px; animation: logoPulse 2s ease infinite; }
.empty-state h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 8px; color: var(--text); }
.empty-state p { font-size: .9rem; line-height: 1.7; }

/* ── Recept detail header ── */
.recipe-detail-header {
  padding: 28px 20px 36px;
  color: white; position: relative;
  min-height: 180px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.recipe-detail-header::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(0,0,0,.1) 0%, rgba(0,0,0,.35) 100%);
}
.recipe-detail-header > * { position: relative; z-index: 1; }
.detail-header-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 12px;
}
.detail-emoji { font-size: 3rem; }
#detail-title {
  overflow-wrap: break-word;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: clamp(1.2rem, 5vw, 1.8rem);
  line-height: 1.3;
}
.fav-detail-btn {
  font-size: 1.8rem; padding: 4px;
  transition: transform .2s;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.3));
}
.fav-detail-btn:active { transform: scale(1.3); }
.recipe-detail-header h1 {
  font-size: 1.5rem; font-weight: 900; line-height: 1.25;
  margin-bottom: 10px;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.recipe-meta-row { display: flex; gap: 6px; flex-wrap: wrap; }

/* Kategória gradiensek */
.cat-leves-grad    { background: linear-gradient(160deg, #2E86C1, #1ABC9C); }
.cat-főétel-grad   { background: linear-gradient(160deg, #FF6B35, #F39C12); }
.cat-köret-grad    { background: linear-gradient(160deg, #27AE60, #1ABC9C); }
.cat-desszert-grad { background: linear-gradient(160deg, #8E44AD, #E74C3C); }
.cat-reggeli-grad  { background: linear-gradient(160deg, #CA6F1E, #F39C12); }
.cat-egyéb-grad    { background: linear-gradient(160deg, #2C3E50, #7F8C8D); }

/* ── Recept detail tartalom ── */
.recipe-detail-body { padding: 16px; }
.section-title {
  font-size: .85rem; font-weight: 800;
  color: var(--text-muted); margin-bottom: 12px;
  display: flex; align-items: center; gap: 6px;
  text-transform: uppercase; letter-spacing: .07em;
}

/* ── Adagszámozó ── */
.serving-adjuster {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-card); border-radius: var(--radius);
  padding: 14px 18px; box-shadow: var(--shadow); margin-bottom: 18px;
}
.serving-adjuster .label { flex: 1; font-weight: 700; font-size: .95rem; }
.adj-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-primary), #C0392B);
  color: white; font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(255,107,53,.4);
  transition: transform .15s;
}
.adj-btn:active { transform: scale(.88); }
.adj-value { font-size: 1.4rem; font-weight: 900; min-width: 36px; text-align: center; }

/* ── Sütési kártya ── */
.bake-card {
  background: linear-gradient(135deg, #FF6B35 0%, #F39C12 100%);
  color: white; border-radius: var(--radius);
  padding: 18px 20px; margin-bottom: 18px;
  box-shadow: var(--shadow); display: flex; gap: 8px;
}
.bake-card-item { text-align: center; flex: 1; }
.bake-card-item .icon { font-size: 1.5rem; margin-bottom: 4px; }
.bake-card-item .val { font-size: 1.25rem; font-weight: 900; }
.bake-card-item .lbl { font-size: .7rem; opacity: .9; font-weight: 700; text-transform: uppercase; }

/* ── Hozzávalók (checkbox-okkal) ── */
.ingredient-list { list-style: none; }
.ingredient-item {
  display: flex; align-items: center;
  padding: 9px 12px; border-radius: var(--radius-sm);
  margin-bottom: 4px; background: var(--bg-card);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  transition: all .2s; cursor: pointer;
  gap: 10px;
  -webkit-tap-highlight-color: transparent;
}
.ingredient-item.checked { opacity: .5; }
.ingredient-item.checked .name { text-decoration: line-through; }
.ingredient-item.missing { border-left: 3px solid var(--clr-warn); }
.ingredient-item.missing .name { color: var(--clr-warn); }
.ingredient-check {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--border); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; transition: all .15s;
  background: var(--bg-input);
}
.ingredient-item.checked .ingredient-check {
  background: var(--clr-accent); border-color: var(--clr-accent); color: white;
}
.ingredient-item .name { flex: 1; font-weight: 600; font-size: .92rem; }
.ingredient-item .amount { color: var(--clr-primary); font-weight: 800; font-size: .88rem; white-space: nowrap; }

/* ── Felszerelés ── */
.equipment-list {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px;
}
.equipment-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 11px; border-radius: 12px;
  background: var(--bg-input); color: var(--text-muted);
  font-size: .8rem; font-weight: 600;
}

/* ── FR-12: Hozzávaló kategória fejléc ── */
.ingredient-category-header {
  font-size: .78rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text-muted);
  padding: 14px 12px 4px; list-style: none;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2px;
}

/* ── Lépések ── */
.steps-list { list-style: none; }
.step-item {
  display: flex; gap: 14px;
  padding: 16px; background: var(--bg-card);
  border-radius: var(--radius); margin-bottom: 10px;
  box-shadow: var(--shadow); transition: all .2s;
  cursor: pointer;
}
.step-item.step-done { opacity: .5; }
.step-item.step-done .step-text { text-decoration: line-through; }
.step-num {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-primary), #C0392B);
  color: white; display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: .95rem;
  box-shadow: 0 2px 8px rgba(255,107,53,.3);
}
.step-item.step-done .step-num { background: var(--clr-accent); }
.step-text { font-size: 1rem; line-height: 1.7; padding-top: 5px; }

/* ── FR-13: Lépés szekció fejléc ── */
.step-section-header {
  list-style: none;
  font-size: .8rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .07em; color: var(--clr-primary);
  padding: 18px 4px 6px; border-bottom: 2px solid var(--clr-primary);
  margin-bottom: 8px;
}

/* ── FR-12 Enrich progress bar ── */
.enrich-progress { margin-top: 12px; }
.enrich-bar-wrap {
  background: var(--bg-input); border-radius: 8px;
  height: 8px; overflow: hidden;
}
.enrich-bar-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-accent));
  transition: width .4s ease; border-radius: 8px;
}
.enrich-status {
  font-size: .8rem; color: var(--text-muted);
  margin-top: 6px; text-align: center;
}

/* ── Kártyák ── */
.card {
  background: var(--bg-card); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow); margin-bottom: 14px;
}

/* ── Gombok ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 32px;
  font-size: .95rem; font-weight: 800;
  transition: all .15s; -webkit-tap-highlight-color: transparent;
}
.btn-primary   { background: linear-gradient(135deg, var(--clr-primary), #C0392B); color: white; box-shadow: 0 4px 16px rgba(255,107,53,.4); }
.btn-primary:active { transform: scale(.96); }
.btn-secondary { background: var(--bg-input); color: var(--text); }
.btn-secondary:active { transform: scale(.96); }
.btn-danger    { background: var(--clr-warn); color: white; }
.btn-danger:active { transform: scale(.96); }
.btn-success   { background: var(--clr-accent); color: white; }
.btn-success:active { transform: scale(.96); }
.btn-outline   { border: 2px solid var(--clr-primary); color: var(--clr-primary); background: transparent; }
.btn-sm        { padding: 8px 16px; font-size: .85rem; }
.btn-full      { width: 100%; }
.btn:disabled  { opacity: .5; pointer-events: none; }

/* ── Akció sor ── */
.action-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.action-row .btn { flex: 1; min-width: 110px; }

/* ── Megfőztem gomb státusz ── */
#btn-mark-cooked.cooked { background: var(--clr-accent); color: white; border-color: transparent; }

/* ── Formok ── */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block; font-size: .8rem; font-weight: 800;
  margin-bottom: 6px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .05em;
}
.form-input, .form-select, .form-textarea {
  width: 100%; background: var(--bg-input); color: var(--text);
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px; outline: none;
  transition: border-color .2s, box-shadow .2s;
  appearance: none; -webkit-appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(255,107,53,.12);
}
.form-textarea { resize: vertical; min-height: 90px; }
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
.form-row { display: flex; gap: 10px; }
.form-row .form-group { flex: 1; }

/* ── Checkbox csoport ── */
.checkbox-group { display: flex; flex-wrap: wrap; gap: 8px; }
.checkbox-label {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 20px;
  background: var(--bg-input); color: var(--text-muted);
  font-size: .85rem; font-weight: 700; cursor: pointer;
  transition: all .2s; border: 2px solid transparent;
}
.checkbox-label input { display: none; }
.checkbox-label:has(input:checked) {
  background: rgba(255,107,53,.12);
  color: var(--clr-primary); border-color: var(--clr-primary);
}

/* ── Dinamikus lista ── */
.dyn-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.dyn-item {
  display: flex; align-items: flex-start; gap: 8px;
  background: var(--bg-input); border-radius: var(--radius-sm); padding: 10px;
}
.dyn-item .dyn-fields { flex: 1; display: flex; gap: 6px; flex-wrap: wrap; }
.dyn-item .form-input { background: var(--bg-card); }
.dyn-item .remove-btn {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--clr-warn); color: white;
  font-size: 1.1rem; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.add-dyn-btn {
  display: flex; align-items: center; gap: 6px;
  color: var(--clr-primary); font-weight: 800; font-size: .9rem;
  padding: 8px 0;
}

/* ── Import képernyő ── */
.import-option {
  display: flex; align-items: center; gap: 16px;
  background: var(--bg-card); border-radius: var(--radius);
  padding: 18px 20px; margin-bottom: 10px;
  box-shadow: var(--shadow); cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.import-option:active { transform: scale(.98); box-shadow: var(--shadow-lg); }
.import-option .icon { font-size: 2rem; width: 48px; text-align: center; }
.import-option .info h3 { font-size: 1rem; font-weight: 800; }
.import-option .info p { font-size: .83rem; color: var(--text-muted); margin-top: 3px; }

/* ── Kamra ── */
.pantry-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: var(--bg-card);
  border-radius: var(--radius-sm); box-shadow: 0 1px 4px rgba(0,0,0,.06);
  margin-bottom: 6px;
}
.pantry-item .name { flex: 1; font-weight: 700; }
.pantry-item .amount { color: var(--clr-primary); font-weight: 800; font-size: .88rem; white-space: nowrap; }
.pantry-item .del-btn { color: var(--text-muted); font-size: 1rem; padding: 4px 8px; }

/* ── Ajánló ── */
.recommend-section { margin-bottom: 24px; }
.recommend-section h3 {
  font-size: .9rem; font-weight: 800;
  padding: 8px 14px; border-radius: var(--radius-sm);
  margin-bottom: 10px; display: flex; align-items: center; gap: 8px;
}
.recommend-section.all h3    { background: var(--cat-köret-bg);    color: var(--cat-köret-acc); }
.recommend-section.almost h3 { background: var(--cat-reggeli-bg);  color: var(--cat-reggeli-acc); }
.recommend-section.inspo h3  { background: var(--cat-leves-bg);    color: var(--cat-leves-acc); }

/* ── Beállítások ── */
.settings-section { margin-bottom: 28px; }
.settings-section h3 {
  font-size: .75rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px;
}
.settings-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; background: var(--bg-card);
  border-radius: var(--radius-sm); margin-bottom: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.settings-item .lbl { font-weight: 700; }
.settings-item .val { color: var(--text-muted); font-size: .88rem; }
.user-selector { display: flex; gap: 12px; }
.user-option {
  flex: 1; padding: 14px; border-radius: var(--radius);
  background: var(--bg-input); text-align: center;
  border: 2px solid transparent; cursor: pointer;
  transition: all .2s; font-weight: 800; font-size: .95rem;
}
.user-option.active {
  border-color: var(--clr-primary);
  background: rgba(255,107,53,.1); color: var(--clr-primary);
}

/* ── Szinkron banner ── */
.sync-banner {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-input); color: var(--text-muted);
  border-radius: var(--radius-sm); padding: 10px 14px;
  margin-bottom: 14px; font-size: .85rem; font-weight: 700;
  border-left: 3px solid var(--clr-primary);
}
.sync-banner.error   { border-left-color: var(--clr-warn);   background: rgba(231,76,60,.08);  color: var(--clr-warn); }
.sync-banner.success { border-left-color: var(--clr-accent);  background: rgba(39,174,96,.08);  color: var(--clr-accent); }

/* ── Divider ── */
.divider { height: 1px; background: var(--border); margin: 20px 0; }

/* ── Tagek ── */
.tags-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tag {
  padding: 4px 10px; border-radius: 12px;
  background: var(--bg-input); color: var(--text-muted);
  font-size: .78rem; font-weight: 700;
}

/* ── Modal ── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.65);
  z-index: 7000; display: flex; align-items: flex-end; justify-content: center;
  backdrop-filter: blur(3px);
}
@media (min-width: 600px) { .modal-overlay { align-items: center; } }
.modal {
  background: var(--bg-card); border-radius: var(--radius) var(--radius) 0 0;
  padding: 24px; width: 100%; max-width: 520px;
  box-shadow: var(--shadow-lg); animation: slideModal .25s ease;
}
@media (min-width: 600px) { .modal { border-radius: var(--radius); } }
@keyframes slideModal {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.modal h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 14px; }
.modal-actions { display: flex; gap: 10px; margin-top: 20px; }
.modal-actions .btn { flex: 1; }

/* ── Utolsó főzés ── */
.last-cooked {
  display: flex; align-items: center; gap: 8px;
  font-size: .85rem; color: var(--text-muted); padding: 10px 0;
}

/* ── Photo pick ── */
.photo-pick-row {
  display: flex; gap: 10px; margin-bottom: 16px;
}
.photo-pick-row .btn { flex: 1; }

/* ── Photo preview ── */
.photo-preview {
  width: 100%; border-radius: var(--radius);
  margin-bottom: 16px; overflow: hidden;
  max-height: 260px; object-fit: cover;
}

/* ══════════════════════════════════════════
   FŐZÉSI MÓD (Cooking Mode)
══════════════════════════════════════════ */
#page-cook {
  position: fixed; inset: 0;
  z-index: 5000; padding: 0;
  display: flex; flex-direction: column;
  background: var(--bg);
}
.cook-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; gap: 12px;
  background: var(--bg-card); border-bottom: 1px solid var(--border);
}
.cook-close {
  font-size: 1.5rem; padding: 4px;
  color: var(--text-muted);
}
.cook-progress-wrap { flex: 1; }
.cook-step-count {
  font-size: .8rem; font-weight: 800; color: var(--text-muted);
  text-align: right; margin-bottom: 4px;
}
.cook-progress-bar {
  height: 6px; background: var(--bg-input); border-radius: 6px; overflow: hidden;
}
.cook-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--clr-primary), #F39C12);
  border-radius: 6px; transition: width .4s cubic-bezier(.4,0,.2,1);
}

/* BUG-03: scroll wrapper takes all remaining height and scrolls internally */
.cook-scroll-area {
  flex: 1; overflow-y: auto; min-height: 0;
  display: flex; flex-direction: column;
}

.cook-body {
  flex: 1; /* push timer to bottom when content is short */
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 32px 24px;
  text-align: center;
}
.cook-step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-primary), #C0392B);
  color: white; font-size: 1.4rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px; box-shadow: 0 4px 16px rgba(255,107,53,.4);
}
.cook-step-text {
  font-size: 1.35rem; font-weight: 600; line-height: 1.7;
  max-width: 480px; animation: pageFadeIn .3s ease;
}

.cook-nav {
  padding: 16px 20px 24px;
  display: flex; gap: 12px;
  background: var(--bg-card); border-top: 1px solid var(--border);
}
.cook-nav .btn { flex: 1; }

/* Kézifelszerelés a cook mode-ban */
.cook-ingredients-panel {
  background: var(--bg-input); border-top: 1px solid var(--border);
  padding: 16px 20px; max-height: 220px; overflow-y: auto;
}
.cook-ingredients-panel h4 {
  font-size: .8rem; font-weight: 800; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .07em; margin-bottom: 10px;
}
.cook-ing-item {
  display: flex; justify-content: space-between;
  padding: 5px 0; font-size: .88rem; border-bottom: 1px solid var(--border);
}
.cook-ing-item:last-child { border-bottom: none; }

/* ── Megjegyzések (törlés gombbal) ── */
.note-card {
  background: var(--bg-card); border-radius: var(--radius-sm);
  padding: 14px 16px; margin-bottom: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  border-left: 3px solid var(--clr-primary);
  position: relative;
}
.note-card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.note-card-meta { font-size: .8rem; color: var(--text-muted); font-weight: 700; }
.note-delete-btn { font-size: .85rem; color: var(--clr-warn); padding: 4px; }
.note-card-text { font-size: .92rem; line-height: 1.6; }

/* ── Szinkron FAB ── */
.sync-fab {
  position: fixed; bottom: calc(var(--nav-h) + 16px); right: 16px;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--clr-secondary); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; box-shadow: var(--shadow-lg); z-index: 300;
  transition: transform .2s;
}
.sync-fab.spinning { animation: spin .8s linear infinite; }

/* ── v2.0 Globális Timer Panel ── */

/* FAB – lebegő gomb */
.timer-fab {
  position: fixed;
  bottom: calc(72px + env(safe-area-inset-bottom, 0px) + 12px);
  right: 16px;
  z-index: 190;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--primary); color: white;
  border: 2.5px solid rgba(255,255,255,.55);
  font-size: 1.45rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  /* Erős árnyék + opacity:1 – mindig jól látható */
  box-shadow: 0 4px 20px rgba(0,0,0,.45), 0 2px 6px rgba(0,0,0,.3);
  transition: transform .15s, box-shadow .15s, background .2s;
  -webkit-tap-highlight-color: transparent;
  /* Badge overlay-hez kell a relative */
  position: fixed;
}
.timer-fab:active { transform: scale(.9); }
.timer-fab.timer-fab-alarm {
  background: #E74C3C;
  border-color: rgba(255,255,255,.7);
  animation: fab-alarm-pulse .6s ease-in-out infinite alternate;
}
@keyframes fab-alarm-pulse {
  from { box-shadow: 0 4px 16px rgba(231,76,60,.5); }
  to   { box-shadow: 0 6px 28px rgba(231,76,60,.85); transform: scale(1.07); }
}
/* Badge: position absolute overlay, az emoji NEM csúszik */
.fab-badge {
  position: absolute;
  top: -3px; right: -3px;
  min-width: 18px; height: 18px;
  font-size: .68rem; font-weight: 800;
  background: white; color: var(--primary);
  border-radius: 9px; padding: 0 4px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--primary);
  line-height: 1;
}

/* Timer panel – bottom sheet stílusú, fixed */
.timer-panel {
  position: fixed;
  bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  left: 0; right: 0;
  z-index: 195;
  max-height: 72vh;
  background: var(--bg-card);
  border-top: 1.5px solid var(--border);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -4px 24px rgba(0,0,0,.18);
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: slideUpPanel .2s ease;
}
@keyframes slideUpPanel {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.timer-panel.hidden { display: none; }

.timer-panel-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px 8px;
  font-weight: 700; font-size: 1rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

/* Recept javaslatok szekció */
.timer-suggestions {
  padding: 8px 12px 4px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.timer-sugg-title {
  font-size: .78rem; font-weight: 700;
  color: var(--text-muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em;
}
.timer-sugg-list {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.timer-sugg-chip {
  padding: 5px 11px; border-radius: 14px;
  background: var(--bg-input); border: 1.5px solid var(--primary);
  color: var(--primary); font-size: .78rem; font-weight: 700;
  cursor: pointer; transition: background .12s, color .12s;
  -webkit-tap-highlight-color: transparent;
}
.timer-sugg-chip:active { background: var(--primary); color: white; }

/* Futó timerek lista */
.timer-list {
  flex: 1; overflow-y: auto;
  padding: 8px 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.timer-empty {
  font-size: .85rem; color: var(--text-muted); text-align: center;
  padding: 8px 0;
}
.timer-card {
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  transition: border-color .2s, box-shadow .2s;
}
.timer-card.timer-done { opacity: .62; }
.timer-card.timer-paused {
  border-style: dashed;
  opacity: .88;
}
.timer-card.timer-alarming {
  border-color: #E74C3C;
  box-shadow: 0 2px 12px rgba(231,76,60,.3);
  animation: card-alarm-pulse .7s ease-in-out infinite alternate;
}
@keyframes card-alarm-pulse {
  from { box-shadow: 0 2px 8px  rgba(231,76,60,.3); }
  to   { box-shadow: 0 4px 18px rgba(231,76,60,.6); }
}
.timer-card-top {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 4px;
}
.timer-card-emoji {
  font-size: 1.2rem; flex-shrink: 0; line-height: 1;
}
.timer-card-name {
  font-size: .88rem; font-weight: 700; color: var(--text);
  flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.timer-card-actions {
  display: flex; align-items: center; gap: 5px; flex-shrink: 0;
}
.btn-timer-play {
  background: var(--primary); color: white;
  border: none; border-radius: 8px;
  width: 30px; height: 30px;
  font-size: .95rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.btn-timer-dismiss {
  background: #E74C3C; color: white;
  border: none; border-radius: 8px;
  padding: 3px 8px; font-size: .74rem; font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.btn-timer-del {
  background: none; border: none;
  color: var(--text-muted); font-size: .9rem;
  cursor: pointer; padding: 2px 4px;
  -webkit-tap-highlight-color: transparent;
}
.timer-card-time {
  font-size: 1.25rem; font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--primary); margin-bottom: 6px;
}
.timer-card-time-paused {
  color: var(--text-muted);
  font-size: 1.05rem;
}
.timer-bar {
  height: 5px; background: var(--border);
  border-radius: 3px; overflow: hidden;
}
.timer-bar-fill {
  height: 100%; background: var(--primary);
  border-radius: 3px; transition: width .9s linear;
}
.timer-card.timer-alarming .timer-bar-fill { background: #E74C3C; }

/* Gyors hozzáadás szekció */
.timer-add-section {
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 8px;
  flex-shrink: 0;
  background: var(--bg-card);
}
.timer-name-input {
  width: 100%; box-sizing: border-box;
  padding: 8px 10px; border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--bg-input); color: var(--text);
  font-size: .9rem;
}
.timer-name-input:focus { outline: none; border-color: var(--primary); }
.timer-chips {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.timer-chip {
  flex: 1; min-width: 44px;
  padding: 7px 0; border-radius: 10px;
  background: var(--bg-input); border: 1.5px solid var(--border);
  color: var(--text); font-size: .85rem; font-weight: 700;
  cursor: pointer; text-align: center;
  transition: background .12s, border-color .12s;
  -webkit-tap-highlight-color: transparent;
}
.timer-chip:active { background: var(--primary); color: white; border-color: var(--primary); }
.timer-custom-row {
  display: flex; gap: 8px;
}
.timer-custom-mins {
  flex: 1; padding: 8px 10px; border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--bg-input); color: var(--text);
  font-size: .9rem;
}
.timer-custom-mins:focus { outline: none; border-color: var(--primary); }

/* FR-23: Lépés áttekintő overlay */
.step-overview-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.55);
  display: flex; align-items: flex-end;
  animation: fadeIn .15s ease;
}
.step-overview-sheet {
  width: 100%; max-height: 75vh;
  background: var(--bg-card);
  border-radius: 18px 18px 0 0;
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -4px 24px rgba(0,0,0,.2);
}
.step-overview-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px 10px;
  font-weight: 700; font-size: 1rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.step-overview-list {
  overflow-y: auto; padding: 8px 0;
}
.step-overview-item {
  display: flex; gap: 12px; align-items: flex-start;
  width: 100%; text-align: left;
  padding: 11px 16px;
  background: none; border: none;
  color: var(--text);
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background .12s;
}
.step-overview-item:hover { background: var(--bg-input); }
.step-ov-active { background: var(--bg-input) !important; }
.step-ov-active .step-ov-num {
  background: var(--primary); color: #fff;
}
.step-ov-num {
  flex-shrink: 0; width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--border); color: var(--text-muted);
  font-size: .8rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.step-ov-text {
  font-size: .88rem; line-height: 1.45;
  text-align: left;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }


/* FR-15: Kocka animáció – pörgő fázis */
.rdm-spinning {
  display: inline-block;
  animation: rdm-spin-emoji .18s steps(1) infinite;
}
@keyframes rdm-spin-emoji {
  0%   { opacity: .7; }
  50%  { opacity: 1; }
  100% { opacity: .7; }
}

/* FR-15: Kocka animáció – felfedés fázis */
.rdm-reveal {
  animation: rdm-reveal-bounce .45s cubic-bezier(.34,1.56,.64,1) forwards;
}
@keyframes rdm-reveal-bounce {
  from { opacity: 0; transform: scale(.6) rotate(-8deg); }
  to   { opacity: 1; transform: scale(1) rotate(0deg); }
}

/* ── Print ── */
@media print {
  .bottom-nav, .app-header, .sync-fab, .action-row { display: none !important; }
  .step-text { font-size: 1.3rem; }
}

/* ── FR-20: Offline banner ── */
.offline-banner {
  background: #E67E22;
  color: white;
  text-align: center;
  padding: 8px 16px;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .01em;
}

/* ── FR-15: Random dinner gomb ── */
.random-dinner-wrap {
  display: flex; justify-content: center;
  margin: 4px 0 12px;
}
