/* ── Google Fonts ──────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Playfair+Display:wght@700;900&family=DM+Sans:wght@400;500;600&display=swap');

/* ── Reset ───────────────────────────────── */
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }

/* ── Tokens ──────────────────────────────── */
:root {
  --header-bg:       #445f77;          /* marad */
  --header-text:     #c8d6e5;          /* marad */
  --accent:          #4a749c;          /* infografika kékje (#4fa3d1 helyett) */
  --accent-hover:    #5a8ab0;
  --accent-amber:    #e8a24a;          /* infografika amber — új token */
  --content-bg:      #faf6f0;          /* meleg krém (#f5f7f9 helyett) */
  --text:            #1e2b3a;          /* infografika sötétje (#1c2b38 helyett) */
  --text-muted:      #4a5a6a;
  --border:          #ddd8d0;          /* enyhén meleg tónus */
  --font-mono:       'DM Mono', ui-monospace, Menlo, monospace;
  --font-serif:      'Playfair Display', ui-serif, Georgia, serif;
  --font-sans:       'DM Sans', ui-sans-serif, system-ui, sans-serif;
}

/* ── Body layout ─────────────────────────── */
body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--content-bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Header ──────────────────────────────── */
.site-header {
  width: 100%;
  background: var(--header-bg);
  color: var(--header-text);
  display: flex;
  flex-direction: column;
}

/* Top row: title + language switcher */
.site-header h1 {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.site-header .indented {
  margin-left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0rem 0.5rem 0.25rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.site-header .page-header {
  padding: 0.5rem 1.5rem 0rem;
}

/* Language switcher */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: 1.5rem;
}

.btn-icon-en,
.btn-icon-hu {
  display: inline-block;
  width: 28px;
  height: 28px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 2px solid transparent;
  cursor: pointer;
  border-radius: 4px;
  transition: border-color 0.15s;
  padding: 0.25rem;
}

.btn-icon-en { background-image: url('/assets/images/icon-en.jpg'); }
.btn-icon-hu { background-image: url('/assets/images/icon-hu.jpg'); }

.btn-icon-en:hover,
.btn-icon-hu:hover { border-color: var(--accent); }

.lang-switch button.active { border-color: var(--accent) !important; }

/* Bottom row: nav links with pipe separators */
nav {
  display: flex;
  align-items: center;
  margin-top: 0;
}

nav a {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--header-text);
  text-decoration: none;
  padding: 0.45rem 0.75rem;
  transition: color 0.15s;
  margin-right: 0;
}

nav a:hover {
  color: var(--accent-hover);
}

nav a + a::before {
  content: '|';
  margin-right: 0.75rem;
  color: var(--header-text);
  pointer-events: none;
}

/* ── Main content ────────────────────────── */
.content {
  flex: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 4rem; 
  padding: 2rem;
}

/* ── Content headings ── */
.content h1,
.content h2 {
  font-family: var(--font-serif);  /* Playfair Display — infografika stílus */
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  border-bottom: 2px solid var(--accent-amber);  /* amber vonal, nem szürke */
  padding-bottom: 0.4rem;
  margin-top: 2.5rem;
  letter-spacing: 0;
  text-transform: none;            /* uppercase helyett természetes */
}

.content p {
  color: var(--text);
  max-width: 62ch;
}

.content a {
  color: var(--accent);
  text-decoration: none;
}

.content a:hover {
  text-decoration: underline;
  color: var(--text);
}

blockquote {
    border-left: 2px solid #e6e6e6;
    margin: 0;
    padding: 0 0 0 20px;
    font-style: italic
}

code,pre {
    font-family: var(--font-mono);
    color: #333
}

pre {
    padding: 8px 15px;
    background: #e6e6e6;
    border-radius: 5px;
    border: 1px solid #333;
    overflow-x: auto
}

/* ── Post list ───────────────────────────── */
.post-list {
  list-style: none;
  padding-left: 0;
}

.post-list li {
  margin-bottom: 0.5rem;
  padding: 0.6rem 0.8rem;
  border-left: 3px solid var(--border);
  transition: border-color 0.15s;
}

.post-list li:hover {
  border-left-color: var(--accent);
}

.post-list a {
  color: var(--accent);
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 0.97rem;
}

.post-list a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* ── Footer ──────────────────────────────── */
.site-footer {
  width: 100%;
  padding: 0.85rem 2rem;
  background: var(--header-bg);
  border-top: 1px solid rgba(255,255,255,0.07);
  font-size: 0.75rem;
  color: var(--header-text);
  font-family: var(--font-mono);
}

.site-footer .indented { margin-left: 0; }
.site-footer p { margin: 0; }

/* ── Lang content ────────────────────────── */
.lang-content { display: none; }
.lang-content:first-of-type { display: block; }

/* ── Lang grid (about/other pages) ──────── */
.lang-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.lang-col h2 {
  margin-top: 0;
  font-size: 1rem;
  color: var(--text-muted);
}

/* ── Responsive ──────────────────────────── */
@media (max-width: 600px) {
  .site-header .indented {
    padding: 0.65rem 1rem;
    border-bottom: 2px solid var(--accent-amber); 
  }

  .site-header h1 {
    font-size: 0.85rem;
  }

  nav {
    padding: 0 1rem;
    flex-wrap: wrap;
  }

  pre,code {
    word-wrap: normal
  }

  .content {
    margin: 0;
    padding: 1.5rem 1rem;
  }

  .lang-grid { grid-template-columns: 1fr; }
}

.header-links {
    display: flex;
    width: 100%;
    gap: 6px;
    justify-content: flex-end;
    padding: 0 10px;
}

#forkme_banner {
    display: inline-block;
    padding: 10px 50px 10px 10px;
    color: #fff;
    background: url(../images/blacktocat.png) #0090ff no-repeat 95% 50%;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    border-bottom-left-radius: 2px;
    border-bottom-right-radius: 2px;
    white-space: nowrap;
    text-decoration: none;
    font-size: 0.85rem;
}

#linked_ref {
    display: inline-block;
    padding: 10px 50px 10px 10px;
    color: #fff;
    background: url(../icons/InBug-White.png) #0072B1 no-repeat 95% 50%;
    background-size: auto 65%;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    border-bottom-left-radius: 2px;
    border-bottom-right-radius: 2px;
    white-space: nowrap;
    text-decoration: none;
    font-size: 0.85rem;
}

/* ── Post index ──────────────────────────── */
.post-index-section {
  margin-bottom: 2.5rem;
}

.series-group {
  margin-bottom: 1.75rem;
}

.series-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}

.series-stripe {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: var(--series-color, var(--accent));
  flex-shrink: 0;
}

.series-name {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.series-post-list {
  list-style: none;
  padding-left: 0;
}

.series-post-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.8rem;
  border-left: 3px solid var(--series-color, var(--border));
  margin-bottom: 0.3rem;
  transition: background 0.15s;
}

.series-post-list li:hover {
  background: rgba(30, 43, 58, 0.03);
}

.part-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  min-width: 1.8rem;
  flex-shrink: 0;
}

.series-post-list a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.97rem;
}

.series-post-list a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* ── Cert cards (post_licensAndCerts) ───────── */

.cert-categories {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.cert-category {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.cert-cat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 0.75rem;
}

.cert-card {
  background: #ffffff;
  border-left: 4px solid var(--cert-color, var(--accent));
  border-radius: 0 8px 8px 0;
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.1rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.cert-platform {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 3px;
  align-self: flex-start;
}

.cert-platform--udemy {
  background: rgba(232, 162, 74, 0.12);
  color: #9a6510;
}

.cert-platform--coursera {
  background: rgba(74, 116, 156, 0.12);
  color: #2d5a7a;
}

.cert-title {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  line-height: 1.35;
}

.cert-skills {
  display: block;
  flex-wrap: wrap;
  gap: 0.3rem;
  flex: 1;
}

.cert-tag {
  font-family: var(--font-mono);
  font-size: 0.67rem;
  color: var(--text-muted);
  background: rgba(30, 43, 58, 0.04);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 2px 7px;
  white-space: nowrap;
  box-sizing: unset;
}

.cert-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.cert-link {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--cert-color, var(--accent));
  text-decoration: none;
  transition: opacity 0.15s;
}

.cert-link:hover {
  opacity: 0.7;
  text-decoration: underline;
}

@media (max-width: 600px) {
  .cert-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Compact cert note (post_licensAndCerts, foundational tooling) ── */
.cert-compact-note {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 62ch;
  margin-top: 0.6rem;
  padding-top: 0.85rem;
}

.cert-compact-note a {
  color: var(--accent);
  text-decoration: none;
}

.cert-compact-note a:hover {
  color: var(--text);
  text-decoration: underline;
}