/* Cikkgyűjtő hub — Principium sötétkék / arany */

:root {
  --navy-950: #0a1628;
  --navy-900: #0f1f35;
  --navy-800: #152a45;
  --gold-400: #c9a227;
  --gold-500: #b8922a;
  --gold-300: #e4c76a;
  --white: #fafbfc;
  --muted: rgba(250, 251, 252, 0.72);
  --font-sans: "Montserrat", system-ui, sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;
  --header-h: 4.25rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.hub-page {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--white);
  background: var(--navy-950);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--gold-300);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Header — főoldal stílus */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(10, 22, 40, 0.95) 0%, rgba(10, 22, 40, 0.65) 70%, transparent 100%);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201, 162, 39, 0.12);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--white);
  white-space: nowrap;
}

.logo:hover {
  color: var(--gold-300);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1.25rem;
  row-gap: 0.5rem;
}

.nav a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--gold-400);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold-400);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 0 1.5rem 1.25rem;
  gap: 0.75rem;
  background: rgba(10, 22, 40, 0.98);
  border-bottom: 1px solid rgba(201, 162, 39, 0.15);
}

.mobile-nav a {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.mobile-nav:not([hidden]) {
  display: flex;
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}

/* Hero */
.parallax-section {
  position: relative;
}

.parallax-bg {
  position: absolute;
  inset: 0;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  z-index: 0;
}

@media (max-width: 900px), (prefers-reduced-motion: reduce) {
  .parallax-bg {
    background-attachment: scroll;
  }
}

.hub-hero {
  min-height: clamp(16rem, 42vw, 24rem);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 2rem) 1.5rem 2.75rem;
  text-align: center;
}

.hub-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(10, 22, 40, 0.5) 0%,
    rgba(10, 22, 40, 0.82) 55%,
    rgba(10, 22, 40, 0.94) 100%
  );
}

.hub-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
}

.hub-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-400);
}

.hub-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.2;
  margin: 0 0 1rem;
}

.hub-lead {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.75;
}

/* Grid */
.hub-main {
  padding: 3.5rem 1.5rem 4rem;
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 40%);
  border-top: 1px solid rgba(201, 162, 39, 0.12);
}

.hub-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 1.75rem;
}

.article-card {
  margin: 0;
  height: 100%;
}

.article-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  background: rgba(21, 42, 69, 0.5);
  border: 1px solid rgba(201, 162, 39, 0.2);
  transition: border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
  overflow: hidden;
}

.article-card-link:hover {
  border-color: rgba(201, 162, 39, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  color: inherit;
}

.article-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--navy-800);
}

.article-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.article-card-link:hover .article-card-img {
  transform: scale(1.04);
}

.article-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem 1.35rem 1.35rem;
}

.article-card-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.65rem;
  color: var(--white);
  line-height: 1.3;
}

.article-card-desc {
  flex: 1;
  margin: 0 0 1.15rem;
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.7;
}

.article-card-cta {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-400);
}

.hub-empty,
.hub-error {
  text-align: center;
  color: var(--muted);
  font-weight: 300;
  padding: 2rem;
}

.hub-error {
  color: var(--gold-300);
}

/* Footer */
.hub-footer {
  padding: 2rem 1.5rem;
  text-align: center;
  border-top: 1px solid rgba(201, 162, 39, 0.12);
}

.btn-back {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: 0.65rem 1.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy-950);
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  border: 1px solid rgba(228, 199, 106, 0.65);
}

.btn-back:hover {
  background: var(--gold-300);
  color: var(--navy-950);
}

.hub-footer-copy {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(250, 251, 252, 0.38);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .article-card-link,
  .article-card-img {
    transition: none;
  }
}
