/* =========================================================
   kohaneczadam.hu – Design System
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;600&display=swap');

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --bg:          #0b0f1a;
  --bg-2:        #111827;
  --bg-3:        #1a2235;
  --surface:     rgba(255,255,255,0.04);
  --surface-h:   rgba(255,255,255,0.07);
  --border:      rgba(255,255,255,0.08);
  --border-h:    rgba(255,255,255,0.15);

  --accent:      #4f8ef7;
  --accent-2:    #7c5cf6;
  --accent-glow: rgba(79,142,247,0.25);

  --text-1:  #f0f4ff;
  --text-2:  #94a3b8;
  --text-3:  #64748b;

  --tag-bg:    rgba(79,142,247,0.12);
  --tag-color: #7eb8ff;

  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm:  6px;
  --radius:     12px;
  --radius-lg:  20px;

  --shadow-card: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 40px rgba(79,142,247,0.12);

  --nav-h: 64px;
  --max-w: 1100px;
  --transition: 0.22s cubic-bezier(0.4,0,0.2,1);
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text-1);
  font-family: var(--font-sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }

/* ── Layout helpers ─────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
/* nav container must stretch full width so space-between works */
.nav .container {
  width: 100%;
}
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

/* ── Gradient text ──────────────────────────────────────── */
.grad {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── NAV ────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(11,15,26,0.82);
  backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: border-color var(--transition);
}
.nav__inner {
  display: flex; align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav__logo {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: opacity var(--transition);
}
.nav__logo:hover { opacity: 0.8; }
.nav__links {
  display: flex; align-items: center; gap: 8px;
}
.nav__link {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color var(--transition), background var(--transition);
}
.nav__link:hover {
  color: var(--text-1);
  background: var(--surface-h);
}
.nav__link.disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}
.nav__link--active { color: var(--text-1); }
.nav__badge {
  font-size: 0.65rem;
  font-weight: 600;
  background: var(--tag-bg);
  color: var(--tag-color);
  padding: 1px 6px;
  border-radius: 99px;
  margin-left: 4px;
  vertical-align: middle;
  letter-spacing: 0.04em;
}
/* hamburger – hidden on desktop, shown on mobile */
.nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-1);
  cursor: pointer;
  padding: 6px 10px;
  transition: background var(--transition), border-color var(--transition);
}
.nav__toggle:hover {
  background: var(--surface-h);
  border-color: var(--border-h);
}

/* ── HERO ───────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 30%, rgba(79,142,247,0.10) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 20% 70%, rgba(124,92,246,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 64px;
}
.hero__eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.hero__eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.hero__title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}
.hero__sub {
  font-size: 1.15rem;
  color: var(--text-2);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.75;
}
.hero__cta {
  display: flex; gap: 14px; flex-wrap: wrap;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 0.925rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}
.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 4px 20px rgba(79,142,247,0.35);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(79,142,247,0.5);
}
.btn--ghost {
  background: var(--surface);
  color: var(--text-1);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  background: var(--surface-h);
  border-color: var(--border-h);
  transform: translateY(-2px);
}
.hero__avatar {
  position: relative;
}
.hero__avatar-ring {
  width: 220px; height: 220px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  padding: 3px;
  box-shadow: 0 0 60px rgba(79,142,247,0.25);
  flex-shrink: 0;
}
.hero__avatar-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.hero__scroll {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-3);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}
.hero__scroll svg { opacity: 0.4; }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ── ABOUT ──────────────────────────────────────────────── */
.about { background: var(--bg-2); }
.section__label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section__title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 20px;
  line-height: 1.2;
}
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  margin-top: 56px;
}
.about__text p {
  color: var(--text-2);
  margin-bottom: 16px;
  font-size: 1.02rem;
}
.about__text p:last-child { margin-bottom: 0; }
.about__text strong { color: var(--text-1); font-weight: 600; }
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.skill-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  background: var(--tag-bg);
  color: var(--tag-color);
  border: 1px solid rgba(79,142,247,0.15);
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition);
}
.skill-tag:hover {
  background: rgba(79,142,247,0.2);
  border-color: rgba(79,142,247,0.3);
  transform: translateY(-1px);
}
.skills-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 20px;
  letter-spacing: -0.2px;
}

/* ── BLOG PREVIEW ──────────────────────────────────────── */
.blog-preview { background: var(--bg); }
.blog-preview__header {
  display: flex; align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 16px;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-card);
}
.card:hover {
  background: var(--surface-h);
  border-color: var(--border-h);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}
.card__tags {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.card__tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 99px;
  background: var(--tag-bg);
  color: var(--tag-color);
}
.card__tag--purple {
  background: rgba(124,92,246,0.15);
  color: #b299ff;
}
.card__tag--green {
  background: rgba(52,211,153,0.13);
  color: #6ee7b7;
}
.card__tag--red {
  background: rgba(239,68,68,0.13);
  color: #fca5a5;
}
.card__tag--blue {
  background: rgba(59,130,246,0.13);
  color: #93c5fd;
}
.card__tag--orange {
  background: rgba(249,115,22,0.13);
  color: #fdba74;
}
.card__tag--yellow {
  background: rgba(234,179,8,0.13);
  color: #fde047;
}
.card__title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
  transition: color var(--transition);
}
.card:hover .card__title { color: var(--accent); }
.card__excerpt {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 20px;
}
.card__meta {
  display: flex; align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-3);
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.card__date { display: flex; align-items: center; gap: 6px; }
.card__read-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.82rem;
  display: flex; align-items: center; gap: 4px;
  transition: gap var(--transition);
}
.card:hover .card__read-link { gap: 8px; }

/* ── CONTACT BAR ─────────────────────────────────────────── */
.contact-bar {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.contact-bar__inner {
  display: flex; align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.contact-bar__text h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}
.contact-bar__text p { color: var(--text-2); font-size: 0.95rem; }
.social-links {
  display: flex; gap: 12px;
}
.social-link {
  width: 44px; height: 44px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2);
  transition: all var(--transition);
}
.social-link:hover {
  background: var(--surface-h);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
  background: var(--bg);
  padding: 40px 0;
  border-top: 1px solid var(--border);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__copy {
  color: var(--text-3);
  font-size: 0.85rem;
}
.footer__copy span { color: var(--text-2); }
.footer__links {
  display: flex; gap: 24px;
}
.footer__link {
  color: var(--text-3);
  font-size: 0.85rem;
  transition: color var(--transition);
}
.footer__link:hover { color: var(--text-2); }

/* ── BLOG PAGE ───────────────────────────────────────────── */
.page-header {
  padding: calc(var(--nav-h) + 64px) 0 64px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.page-header__label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.page-header__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 14px;
}
.page-header__sub {
  color: var(--text-2);
  font-size: 1.05rem;
  max-width: 560px;
}

/* filters */
.filters {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin: 40px 0 32px;
}
.filter-btn {
  padding: 7px 16px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  background: var(--surface);
  color: var(--text-2);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--tag-bg);
  color: var(--tag-color);
  border-color: rgba(79,142,247,0.3);
}

/* ── BLOG POST ───────────────────────────────────────────── */
.post-header {
  padding: calc(var(--nav-h) + 64px) 0 56px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.post-header__back {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-2);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 32px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.post-header__back:hover {
  background: var(--surface-h);
  color: var(--text-1);
  transform: translateX(-2px);
}
.post-header__tags { display: flex; gap: 8px; margin-bottom: 20px; }
.post-header__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 20px;
}
.post-header__meta {
  display: flex; align-items: center; gap: 20px;
  color: var(--text-3);
  font-size: 0.85rem;
}
.post-header__meta span { display: flex; align-items: center; gap: 6px; }

/* post content */
.post-content { padding: 72px 0; }
.post-body { max-width: 720px; margin: 0 auto; }
.post-body h2 {
  font-size: 1.5rem; font-weight: 700; letter-spacing: -0.5px;
  margin: 48px 0 16px;
  color: var(--text-1);
}
.post-body h3 {
  font-size: 1.15rem; font-weight: 600;
  margin: 32px 0 12px;
  color: var(--text-1);
}
.post-body p {
  color: var(--text-2);
  margin-bottom: 20px;
  font-size: 1.02rem;
  line-height: 1.8;
}
.post-body p strong { color: var(--text-1); }
.post-body a { color: var(--accent); text-decoration: underline; text-decoration-color: transparent; transition: text-decoration-color var(--transition); }
.post-body a:hover { text-decoration-color: var(--accent); }
.post-body ul, .post-body ol {
  margin: 0 0 20px 0;
  padding-left: 20px;
}
.post-body ul li, .post-body ol li {
  color: var(--text-2);
  margin-bottom: 8px;
  line-height: 1.7;
  list-style: disc;
  font-size: 1.02rem;
}
.post-body ol li { list-style: decimal; }

/* code */
.post-body pre {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 28px 0;
  overflow-x: auto;
  position: relative;
}
.pre-label {
  position: absolute; top: 10px; right: 14px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-3);
  letter-spacing: 0.06em;
}
.post-body code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: #7eb8ff;
  line-height: 1.7;
}
.post-body p code, .post-body li code {
  background: rgba(79,142,247,0.1);
  padding: 2px 7px;
  border-radius: 4px;
  color: #7eb8ff;
  font-size: 0.88em;
}
.post-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 16px 24px;
  margin: 28px 0;
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-2);
  font-style: italic;
  font-size: 1.05rem;
}

.post-footer {
  max-width: 720px; margin: 0 auto;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; gap: 16px;
}

/* ── Divider ─────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 840px) {
  .hero__inner { display: flex; flex-direction: column-reverse; text-align: center; gap: 32px; }
  .hero__avatar { display: block; margin: 0 auto; }
  .hero__avatar-ring { width: 160px; height: 160px; }
  .hero__eyebrow { justify-content: center; }
  .hero__cta { justify-content: center; }
  .hero__sub { margin-left: auto; margin-right: auto; }
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .blog-preview__header { flex-direction: column; align-items: flex-start; }
  .contact-bar__inner { flex-direction: column; align-items: flex-start; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 768px) {
  /* logo left, hamburger right */
  .nav__inner { justify-content: space-between; }

  /* show hamburger button */
  .nav__toggle { display: flex; }

  /* hide desktop nav links by default */
  .nav__links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px;
    background: rgba(11,15,26,0.98);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    animation: navSlideIn 0.22s cubic-bezier(0.4,0,0.2,1);
  }
  @keyframes navSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* open state: show the list */
  .nav__links--open {
    display: flex;
  }

  .nav__links li { width: 100%; }

  .nav__link {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: var(--radius-sm);
  }
  .nav__link:hover {
    background: var(--surface-h);
  }
}
@media (max-width: 560px) {
  .section { padding: 64px 0; }
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: 1000;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
  background-color: #0b0f1a; 
}

.cookie-banner--show {
  transform: translateY(0);
}

.cookie-banner__text {
  color: var(--text-2);
  font-size: 0.9rem;
  text-align: center;
  max-width: 800px;
}

.cookie-banner__text a {
  color: var(--accent);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: 12px;
}

@media (min-width: 768px) {
  .cookie-banner {
    flex-direction: row;
    justify-content: space-between;
    padding: 20px 40px;
  }
  .cookie-banner__text {
    text-align: left;
  }
}
