/* Futniszép Tudásbázis – modern, mobilbarát stílusok */

.kb-sr-only,
.kb-shell .sr-only,
.kb-help-cta .sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.kb-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 16px 56px;
}

.kb-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 55%, #1d4ed8 100%);
  color: #ffffff;
  border-radius: 20px;
  padding: 28px 24px;
  margin-bottom: 24px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
}

.kb-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #93c5fd;
  margin-bottom: 8px;
}

.kb-hero__title {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.18;
  text-wrap: balance;
  color: #ffffff;
}

.kb-hero__sub {
  margin: 0 0 18px;
  color: #dbeafe;
  font-size: 0.98rem;
  max-width: 68ch;
  line-height: 1.5;
}

/* Eseményválasztó fülek */
.kb-event-tabs {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  max-width: 100%;
  padding-bottom: 6px;
  margin-bottom: 16px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.kb-event-tabs::-webkit-scrollbar {
  display: none;
}

.kb-event-tab {
  flex: 0 0 auto;
  flex-shrink: 0;
  width: max-content;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.kb-event-tab:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.kb-event-tab.is-active {
  background: #ffffff;
  color: #0f172a;
  border-color: #ffffff;
}

/* Keresőmező */
.kb-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.kb-search-box__icon {
  position: absolute;
  left: 16px;
  color: #64748b;
  pointer-events: none;
  display: flex;
  align-items: center;
}

.kb-search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 46px 14px 46px;
  border-radius: 14px;
  border: 2px solid transparent;
  background: #ffffff;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.kb-search-input::-webkit-search-decoration,
.kb-search-input::-webkit-search-cancel-button,
.kb-search-input::-webkit-search-results-button,
.kb-search-input::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.kb-search-input:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.28);
}

.kb-search-clear {
  position: absolute;
  right: 10px;
  background: #f1f5f9;
  color: #475569;
  border: none;
  border-radius: 999px;
  width: 30px;
  height: 30px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.kb-search-clear[hidden] {
  display: none;
}

/* Kategória chipek */
.kb-cat-pills {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  max-width: 100%;
  padding: 4px 0 10px;
  margin-bottom: 20px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.kb-cat-pills::-webkit-scrollbar {
  display: none;
}

.kb-cat-pill {
  flex: 0 0 auto;
  flex-shrink: 0;
  width: max-content;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.kb-cat-pill:hover {
  border-color: #3498db;
  color: #1d4ed8;
}

.kb-cat-pill.is-active {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff;
}

.kb-cat-pill__count {
  font-size: 0.75rem;
  font-weight: 700;
  opacity: 0.78;
}

/* Kártyarács + container query */
.kb-section-title {
  margin: 0 0 14px;
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  text-wrap: balance;
}

.kb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.kb-card {
  container-type: inline-size;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.kb-card:hover {
  transform: translateY(-2px);
  border-color: #93c5fd;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.kb-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.kb-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: #eff6ff;
  color: #1d4ed8;
  text-decoration: none;
}

.kb-badge--link {
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.kb-badge--link:hover {
  background: #dbeafe;
  color: #1e40af;
}

.kb-badge--event {
  background: #f0fdf4;
  color: #15803d;
}

.kb-badge--warn {
  background: #fef3c7;
  color: #b45309;
}

.kb-card__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.32;
  color: #0f172a;
  text-wrap: balance;
}

.kb-card__title a {
  color: inherit;
  text-decoration: none;
}

.kb-card__title a:hover {
  color: #1d4ed8;
}

.kb-card__summary {
  margin: 0;
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.5;
  flex: 1;
}

.kb-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

.kb-copy-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.kb-copy-icon-btn:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.kb-card__readmore {
  font-size: 0.86rem;
  font-weight: 700;
  color: #1d4ed8;
  text-decoration: none;
}

/* Cikk részletező oldal */
.kb-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.86rem;
  color: #64748b;
  margin-bottom: 16px;
}

.kb-breadcrumb a {
  color: #1d4ed8;
  text-decoration: none;
  font-weight: 600;
}

.kb-article {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: clamp(20px, 4vw, 36px);
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.05);
}

.kb-article__header {
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 18px;
  margin-bottom: 22px;
}

.kb-article__title {
  margin: 10px 0 8px;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 800;
  line-height: 1.22;
  color: #0f172a;
  text-wrap: balance;
}

.kb-article__summary {
  margin: 0 0 14px;
  font-size: 1.02rem;
  color: #475569;
  line-height: 1.55;
}

.kb-share-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.kb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.kb-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.kb-btn--primary {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff;
}

.kb-btn--primary:hover {
  background: #1e40af;
  border-color: #1e40af;
}

.kb-btn--sm {
  padding: 6px 11px;
  font-size: 0.8rem;
}

/* Copy feedback */
.kb-copy-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.kb-copy-feedback {
  font-size: 0.82rem;
  font-weight: 700;
  color: #15803d;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 4px 10px;
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.kb-copy-feedback.is-visible {
  opacity: 1;
}

/* Cikk HTML törzs + reszponzív táblázat */
.kb-article__body {
  color: #1e293b;
  font-size: 1rem;
  line-height: 1.68;
}

.kb-article__body h2,
.kb-article__body h3 {
  color: #0f172a;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  text-wrap: balance;
}

.kb-article__body ul,
.kb-article__body ol {
  padding-left: 1.35em;
}

.kb-article__body li {
  margin-bottom: 0.45em;
}

.kb-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 16px 0;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  -webkit-overflow-scrolling: touch;
}

.kb-table-wrap:focus {
  outline: 2px solid #38bdf8;
  outline-offset: 2px;
}

.kb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 480px;
}

.kb-table th,
.kb-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.kb-table th {
  background: #f8fafc;
  font-weight: 700;
  color: #334155;
}

.kb-table tr:last-child td {
  border-bottom: none;
}

.kb-callout {
  background: #eff6ff;
  border-left: 4px solid #1d4ed8;
  border-radius: 10px;
  padding: 12px 16px;
  margin: 14px 0;
  color: #1e3a8a;
}

.kb-icon {
  flex: 0 0 auto;
  display: inline-block;
  vertical-align: middle;
}

/* Főoldali Tihany Arcai stílusú babakék Tudásbázis hero + kék glow */
.kb-home-hero {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin: 0 -50vw 44px;
  background: linear-gradient(125deg, #4db3ee 0%, #3498db 52%, #217dbb 100%);
  color: #ffffff;
  overflow: hidden;
  box-shadow: 0 10px 34px rgba(52, 152, 219, 0.34), 0 0 28px rgba(56, 189, 248, 0.28);
  transition: box-shadow 0.28s ease;
}

.kb-home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 28%, rgba(255, 255, 255, 0.26), transparent 56%);
  opacity: 0.6;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.kb-home-hero:hover {
  box-shadow: 0 18px 52px rgba(52, 152, 219, 0.52), 0 0 48px rgba(56, 189, 248, 0.42);
}

.kb-home-hero:hover::before {
  opacity: 0.95;
}

.kb-home-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(26px, 4vw, 40px) 24px;
}

.kb-home-hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.kb-home-hero__copy {
  flex: 1 1 420px;
  min-width: 0;
}

.kb-home-hero__eyebrow {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

.kb-home-hero h2 {
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 2.8vw, 2.05rem);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-wrap: balance;
}

.kb-home-hero__lead {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.95);
  max-width: 64ch;
}

.kb-home-hero__actions {
  flex: 0 0 auto;
}

.kb-home-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 12px;
  background: #ffffff;
  color: #166096;
  font-size: 0.94rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.14), 0 0 18px rgba(255, 255, 255, 0.3);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.22s ease;
}

.kb-home-hero__cta:hover {
  background: #f0f9ff;
  color: #0e4a75;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18), 0 0 28px rgba(255, 255, 255, 0.55);
}

.kb-home-hero__search {
  width: 100%;
}

.kb-home-hero__search .kb-search-input {
  width: 100%;
  padding: 15px 46px 15px 48px;
  font-size: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16);
}

.kb-home-hero__search .kb-search-input:focus {
  border-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.32), 0 12px 30px rgba(15, 23, 42, 0.18);
}

.kb-home-hero__results {
  margin-top: 14px;
  color: #0f172a;
}

.kb-home-hero__results .kb-card__readmore {
  color: #ffffff;
  text-decoration: underline;
}

.kb-home-hero__results .kb-btn--sm {
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  border-color: transparent;
}

/* Vékony főoldali és Fiókom CTA blokk */
.kb-help-cta {
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  border: 1px solid #bfdbfe;
  border-radius: 16px;
  padding: 20px 22px;
  margin: 20px auto;
}

.kb-help-cta--home-slim {
  max-width: 1120px;
  padding: 16px 22px;
  margin: 16px auto 8px;
}

.kb-help-cta__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.kb-help-cta--home-slim .kb-help-cta__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.kb-help-cta__heading {
  min-width: 0;
  flex: 1 1 260px;
}

.kb-help-cta__title {
  margin: 0 0 2px;
  font-size: 1.08rem;
  font-weight: 800;
  color: #0f172a;
}

.kb-help-cta__sub {
  margin: 0;
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.45;
}

.kb-help-cta__search {
  width: 100%;
}

.kb-help-cta--home-slim .kb-help-cta__search {
  flex: 1 1 380px;
  min-width: 260px;
  max-width: 560px;
}

.kb-help-cta__search .kb-search-input {
  width: 100%;
  padding: 13px 44px 13px 46px;
  font-size: 1rem;
  border: 1.5px solid #cbd5e1;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}

.kb-help-cta__search .kb-search-input:focus {
  border-color: #1d4ed8;
  box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.14);
}

.kb-live-results {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.kb-live-results[hidden] {
  display: none;
}

.kb-live-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  text-decoration: none;
  color: #0f172a;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.kb-live-item:hover {
  border-color: #1d4ed8;
  background: #f8fafc;
}

.kb-live-item__title {
  font-weight: 700;
  font-size: 0.95rem;
  display: block;
}

.kb-live-item__meta {
  font-size: 0.8rem;
  color: #64748b;
}

.kb-empty-state {
  background: #ffffff;
  border: 1px dashed #94a3b8;
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  color: #334155;
}

.kb-empty-state p {
  margin: 0 0 12px;
}

/* Modal dialog */
.kb-dialog {
  width: min(94vw, 520px);
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 0;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
  background: #ffffff;
  color: #0f172a;
}

.kb-dialog::backdrop {
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(3px);
}

.kb-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
}

.kb-dialog__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
}

.kb-dialog__close {
  background: #f1f5f9;
  border: none;
  border-radius: 999px;
  width: 34px;
  height: 34px;
  font-size: 1.1rem;
  cursor: pointer;
}

.kb-dialog__body {
  padding: 18px 20px 22px;
}

.kb-form-field {
  margin-bottom: 14px;
}

.kb-form-field label {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 5px;
}

.kb-form-field input,
.kb-form-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  box-sizing: border-box;
}

.kb-form-field input:focus,
.kb-form-field textarea:focus {
  outline: none;
  border-color: #1d4ed8;
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.16);
}

.kb-form-status {
  margin-top: 10px;
  font-size: 0.88rem;
  font-weight: 600;
}

.kb-form-status--ok {
  color: #15803d;
}

.kb-form-status--err {
  color: #b91c1c;
}

/* Touch target adaptation */
@media (pointer: coarse) {
  .kb-btn,
  .kb-cat-pill,
  .kb-event-tab,
  .kb-copy-icon-btn,
  .kb-search-clear,
  .kb-dialog__close {
    min-height: 44px;
    min-width: 44px;
  }
}

@media (max-width: 640px) {
  .kb-hero {
    padding: 20px 16px;
    border-radius: 16px;
  }
  .kb-help-cta__top {
    flex-direction: column;
    align-items: stretch;
  }
  .kb-help-cta__search {
    max-width: none;
  }
}
