/*
 * Blog Snippet Classes — SEO Optimized
 *
 * These classes are used by content editors in the WordPress editor.
 * They provide structured, styled blocks that improve SEO (E-E-A-T,
 * AI Overviews, FAQ schema, HowTo schema, etc.)
 *
 * Classes: .lenyeges-pontok, .tipp, .tip-box, .step-list,
 *          .summary-box, .faq-section, .inline-cta, .author-bio
 */

/* ── Article Body Typography ── */
.article-content h2 {
  font-size: 1.625rem;
  font-weight: 700;
  color: #004B8C;
  margin: 3rem 0 1rem;
  padding-top: 0.5rem;
}
.article-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  color: #1e293b;
}
.article-content p {
  margin-bottom: 1.125rem;
  color: #555;
  font-size: 1.03rem;
  line-height: 1.8;
}
.article-content ul,
.article-content ol {
  margin: 0 0 1.25rem 1.5rem;
  color: #555;
}
/* A Tailwind preflight list-style:none-t ad; a cikkben kellenek a pontok/számok. */
.article-content ul { list-style: disc outside; }
.article-content ol { list-style: decimal outside; }
.article-content li {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}
.article-content strong {
  color: #1e293b;
}
.article-content a {
  color: #004B8C;
  text-decoration: underline;
  text-decoration-color: #9fb8d3;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.article-content a:hover {
  color: #2D5C88;
}
.article-content img {
  border-radius: 0.75rem;
  margin: 2rem 0;
}
.article-content figcaption {
  text-align: center;
  font-size: 0.8125rem;
  color: #777;
  margin-top: -1rem;
  margin-bottom: 2rem;
  font-style: italic;
}

/* ── 1. Key Takeaways / Lenyeges Pontok ──
   Google AI Overviews & LLMs extract from this block */
.lenyeges-pontok {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 1px solid #bbf7d0;
  border-radius: 0.75rem;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}
.lenyeges-pontok h3 {
  color: #166534 !important;
  font-size: 1.125rem;
  margin: 0 0 0.875rem 0 !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.lenyeges-pontok h3::before {
  content: '\2713';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  background: #166534;
  color: #fff;
  border-radius: 50%;
  font-size: 0.75rem;
  flex-shrink: 0;
}
.lenyeges-pontok ul {
  margin: 0;
  padding-left: 1.25rem;
}
.lenyeges-pontok li {
  color: #166534;
  font-size: 0.9375rem;
  margin-bottom: 0.375rem;
}

/* ── 2. Tipp (blue left border highlight) ── */
.tipp {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-left: 4px solid #004B8C;
  padding: 1.25rem 1.5rem;
  border-radius: 0 0.5rem 0.5rem 0;
  margin: 1.75rem 0;
  font-size: 0.9375rem;
  color: #555;
}
.tipp strong {
  color: #004B8C;
}

/* ── 3. Tip Box (alternative tip with icon) ── */
.tip-box {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-left: 4px solid #004B8C;
  padding: 1.25rem 1.5rem;
  border-radius: 0 0.5rem 0.5rem 0;
  margin: 1.75rem 0;
}
.tip-box-title {
  font-weight: 700;
  font-size: 0.9375rem;
  color: #004B8C;
  margin-bottom: 0.375rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.tip-box p {
  margin-bottom: 0 !important;
  font-size: 0.9375rem;
}

/* ── 4. Numbered Steps (HowTo schema eligible) ── */
.article-content .step-list {
  list-style: none;
  margin: 0 0 1.5rem 0 !important;
  padding: 0 !important;
  counter-reset: steps;
}
.step-list li {
  counter-increment: steps;
  padding: 1rem 1.25rem 1rem 3.75rem;
  position: relative;
  margin-bottom: 0.75rem;
  background: #f8fafc;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
}
.step-list li::before {
  content: counter(steps);
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 2rem;
  height: 2rem;
  background: #004B8C;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.875rem;
}
.step-list li strong {
  display: block;
  margin-bottom: 0.25rem;
  color: #1e293b;
  font-size: 1rem;
}
.step-list li p {
  margin: 0 !important;
  font-size: 0.9rem;
}

/* ── 5. Summary Box ── */
.summary-box {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 1px solid #bbf7d0;
  border-radius: 0.75rem;
  padding: 1.75rem 2rem;
  margin: 2.25rem 0;
}
.summary-box h3 {
  color: #166534 !important;
  font-size: 1.125rem;
  margin: 0 0 0.875rem 0 !important;
}
.summary-box ul {
  margin-bottom: 0 !important;
}
.summary-box li {
  color: #166534;
  font-size: 0.9375rem;
}

/* ── 6. FAQ Section (FAQPage schema ready) ── */
.faq-section {
  margin: 3rem 0;
}
.faq-section h2 {
  margin-top: 0 !important;
}
.faq-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  margin-bottom: 0.625rem;
  overflow: hidden;
}
.faq-question {
  padding: 1.125rem 1.375rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.25s;
  color: #1e293b;
}
.faq-question:hover {
  background: #f1f5f9;
}
.faq-toggle {
  width: 1.625rem;
  height: 1.625rem;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  color: #004B8C;
  flex-shrink: 0;
  transition: transform 0.25s;
  border: 1px solid #e2e8f0;
}
.faq-item.open .faq-toggle {
  transform: rotate(45deg);
}
.faq-answer {
  padding: 0 1.375rem 1.125rem;
  color: #555;
  font-size: 0.9375rem;
  display: none;
  line-height: 1.7;
}
.faq-item.open .faq-answer {
  display: block;
}

/* ── 7. Inline CTA ── */
.inline-cta {
  background: linear-gradient(135deg, #004B8C, #002f59);
  color: #fff;
  border-radius: 0.75rem;
  padding: 2.25rem 2.5rem;
  margin: 3rem 0;
  text-align: center;
}
.inline-cta h3 {
  color: #fff !important;
  font-size: 1.5rem;
  margin: 0 0 0.625rem 0 !important;
}
.inline-cta p {
  color: rgba(255, 255, 255, 0.85) !important;
  margin-bottom: 1.25rem !important;
  font-size: 1rem;
}
.inline-cta .inline-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 0.875rem;
  flex-wrap: wrap;
}
.btn-cta-primary {
  background: #fff;
  color: #004B8C;
  padding: 0.875rem 1.75rem;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 0.9375rem;
  display: inline-block;
  transition: background 0.2s;
}
.btn-cta-primary:hover {
  background: #e8eff6;
  color: #004B8C;
}
.btn-cta-outline {
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  padding: 0.75rem 1.75rem;
  border-radius: 0.5rem;
  font-weight: 600;
  display: inline-block;
  transition: border-color 0.2s;
}
.btn-cta-outline:hover {
  border-color: #fff;
  color: #fff;
}

/* ── 8. Author Bio (E-E-A-T critical) ── */
.author-bio {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  margin: 3rem 0;
  align-items: center;
}
.author-bio-avatar {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  object-position: top;
}
.author-bio-avatar-placeholder {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, #004B8C, #002f59);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
}
.author-bio h4 {
  font-size: 1.125rem;
  margin-bottom: 0.125rem;
}
.author-bio .author-bio-title {
  font-size: 0.875rem;
  color: #2D5C88;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.author-bio p {
  font-size: 0.875rem !important;
  color: #555 !important;
  margin-bottom: 0 !important;
}
@media (max-width: 640px) {
  .author-bio {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================================================
   9. MW Blogger tartalom + fejléc meta + szerzői doboz
   MindWave átadás 2026-10-10 (handover-2026-10-10-csabi-blog-design.md).
   SZÁNDÉKOSAN sima CSS: a téma Tailwindje build időben fordul és be van
   ágyazva, a cikk törzsébe írt utility osztály nem létezne a stíluslapban.
   ========================================================================== */

/* --- the article column must be allowed to shrink -------------------------
   The single-post template puts <article> in `grid-cols-1 lg:grid-cols-[1fr_300px]`.
   A grid item defaults to `min-width:auto`, so it refuses to become narrower than
   its widest min-content - and a three-column table's min-content is wide. Without
   this the whole column blows out to ~500px inside a 390px phone and the PAGE
   scrolls sideways, which is the one thing a phone layout must never do.
   Verified: removing this line reintroduces the horizontal scroll.             */
.article-content { min-width: 0; }
.article-content p,
.article-content li,
.article-content td,
.article-content th { overflow-wrap: break-word; }

/* --- palette, taken from the theme's own compiled CSS ---------------------- */
.article-content {
  --sl-navy:        #002f59;
  --sl-blue:        #004b8c;
  --sl-blue-mid:    #2d5c88;
  --sl-text:        #1e293b;
  --sl-rule:        #e5e7eb;
  --sl-rule-strong: #cbd5e1;
  --sl-tint:        #f4f7fa;
  --sl-tint-2:      #fafbfc;
}

/* --- 9.1 KEY TAKEAWAYS (<div class="kt_block"> > span.kt_headline + ul.kt_post_list)
   A tinted card with ONE uniform hairline border. Keep `border` as a single
   shorthand: never add a `border-left` override, and never reintroduce a
   left-edge accent in any colour or width (owner, 2026-10-10).              */
.article-content .kt_block {
  margin: 2.25rem 0;
  padding: 1.5rem 1.75rem;
  background: var(--sl-tint);
  border: 1px solid #dbe4ee;
  border-radius: 10px;
}

/* kt_headline ships as an inline <span>, so it needs to be made a block */
.article-content .kt_headline {
  display: block;
  margin: 0 0 0.9rem;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--sl-navy);
  letter-spacing: -0.01em;
}

/* the blogger emits an empty <p> between the headline and the list */
.article-content .kt_block > p:empty { display: none; }

.article-content .kt_post_list {
  margin: 0;
  padding: 0;
  list-style: none;   /* each item already starts with its own emoji */
}

.article-content .kt_post_list > li {
  margin: 0 0 0.7rem;
  padding: 0;
  line-height: 1.65;
  color: var(--sl-text);
}

.article-content .kt_post_list > li:last-child { margin-bottom: 0; }

.article-content .kt_post_list > li > strong,
.article-content .kt_post_list > li strong:first-child {
  color: var(--sl-navy);
  font-weight: 700;
}

/* --- 9.2 TABLES (bare <table><thead><th> ... emitted by the blogger) ------ */
.article-content table {
  width: 100%;
  margin: 2rem 0;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--sl-text);
  /* a table with no border-radius on the cells needs the clip to round */
  border: 1px solid var(--sl-rule);
  border-radius: 10px;
  overflow: hidden;
}

.article-content table thead th {
  padding: 0.85rem 1rem;
  background: #eef3f8;
  color: var(--sl-navy);
  font-weight: 700;
  font-size: 0.875rem;
  text-align: left;
  vertical-align: bottom;
  letter-spacing: 0.01em;
  border-bottom: 2px solid var(--sl-blue);
  white-space: normal;
}

.article-content table td {
  padding: 0.8rem 1rem;
  vertical-align: top;
  border-bottom: 1px solid var(--sl-rule);
}

.article-content table tbody tr:last-child td { border-bottom: 0; }
.article-content table tbody tr:nth-child(even) { background: var(--sl-tint-2); }

/* the first column is the row's label, so give it weight */
.article-content table tbody td:first-child {
  font-weight: 600;
  color: var(--sl-navy);
}

/* --- mobile: scroll the table instead of crushing three columns ------------
   A comparison table loses its meaning if the columns are stacked without
   their headers (which column was FTL and which was LTL?), so the table
   scrolls sideways inside its own box and the page itself does not.
   display:block on <table> keeps the internal row/cell layout via an
   anonymous table box; the min-width on the cells is what forces the
   overflow rather than letting three columns squeeze to ~110px each.        */
@media (max-width: 680px) {
  .article-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 10px;
    /* No CSS scroll-shadow here on purpose: every cell has its own opaque
       background (header tint, zebra rows), so a gradient on the table
       background would never be seen. The cue is the third column being
       visibly clipped at the right edge.                                    */
  }
  .article-content table th,
  .article-content table td {
    min-width: 9.5rem;        /* forces the overflow that makes it scrollable */
    padding: 0.7rem 0.85rem;
  }
  .article-content table thead th { font-size: 0.8125rem; }
}

/* --- 9.3 SMALL SCREENS - the takeaways card -------------------------------- */
@media (max-width: 680px) {
  .article-content .kt_block {
    margin: 1.75rem 0;
    padding: 1.15rem 1.2rem;      /* even inset: nothing sits on a card edge */
    border-radius: 8px;
  }
  .article-content .kt_headline { font-size: 1rem; }
  .article-content .kt_post_list > li { font-size: 0.9375rem; line-height: 1.6; }
}

/* --- 9.4 Fejléc meta sor (post-header.php) --------------------------------
   Szerző (sima szöveg, félkövér), naptár/frissítés ikon + dátum, óra + olvasási idő.
   Az ikonok 16px-esek, stroke="currentColor", így a sor színét öröklik.    */
.meta { display: flex; gap: .5rem 1.35rem; flex-wrap: wrap; align-items: center;
        color: #5a6b7f; font-size: .875rem; }
.meta .mi-item { display: inline-flex; align-items: center; gap: .4rem; }
.meta .mi { flex: none; width: 16px; height: 16px; color: #8aa0b6; }
.meta .author { font-weight: 600; color: #334155; letter-spacing: .01em; }

/* --- 9.5 Szerzői doboz a cikk végén (author-bio.php) -----------------------
   Ugyanaz a doboz, mint a kt_block (háttér, 1px keret, lekerekítés).
   A belső elemek `.author-box ...` szelektorral, hogy erősebbek legyenek az
   `.article-content p` tipográfiai szabálynál (a doboz a cikk oszlopában ül). */
.author-box { display: flex; gap: 1.25rem; align-items: flex-start; max-width: 740px;
              margin: 3rem 0 0; padding: 1.5rem 1.75rem; background: #f4f7fa;
              border: 1px solid #dbe4ee; border-radius: 10px; }
.author-box .author-box__avatar { flex: none; width: 72px; height: 72px; border-radius: 50%;
                      background: #e2eaf3; color: #004b8c; display: flex;
                      align-items: center; justify-content: center;
                      font-size: 1.35rem; font-weight: 700; letter-spacing: .02em; }
.author-box .author-box__body { min-width: 0; }
.author-box .author-box__name { margin: 0; font-size: 1.0625rem; font-weight: 700; color: #0f2744;
                    letter-spacing: .01em; line-height: 1.35; }
.author-box .author-box__role { margin: .15rem 0 .7rem; font-size: .8125rem; font-weight: 600;
                    color: #004b8c; line-height: 1.4; }
.author-box .author-box__bio  { margin: 0; font-size: .9375rem; line-height: 1.7; color: #475569; }

@media (max-width: 680px) {
  .author-box { gap: 1rem; padding: 1.25rem; margin-top: 2.25rem; }
  .author-box .author-box__avatar { width: 56px; height: 56px; font-size: 1.1rem; }
  .author-box .author-box__bio { font-size: .9rem; }
}
