/* Mádi Kúria — Online kaszinó útmutatók */
:root {
  --burgundy: #570804;
  --burgundy-light: #8b1a1a;
  --gold: #b79347;
  --gold-light: #d4b06a;
  --cream: #f8f5f0;
  --cream-dark: #ede8df;
  --text: #2c2419;
  --text-muted: #5c5348;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(44, 36, 25, 0.08);
  --radius: 12px;
  --header-h: 72px;
  --max-w: 1200px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
}

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

a { color: var(--burgundy-light); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold); }

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 9999;
  padding: 0.6rem 1rem;
  background: var(--burgundy);
  color: var(--white);
  border-radius: 6px;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--cream-dark);
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-link { flex-shrink: 0; }
.logo-link img { width: 160px; height: auto; }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--cream-dark);
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  cursor: pointer;
  color: var(--burgundy);
  font-size: 1.25rem;
  line-height: 1;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.main-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--burgundy);
  border-bottom-color: var(--gold);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--burgundy) 0%, #3d0503 100%);
  color: var(--white);
  padding: 3.5rem 1.25rem 4rem;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 400;
  line-height: 1.2;
  max-width: 800px;
  margin: 0 auto 1rem;
}

.hero p {
  max-width: 640px;
  margin: 0 auto;
  color: rgba(255,255,255,0.88);
  font-size: 1.05rem;
}

/* Layout */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section { padding: 3rem 0; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  color: var(--burgundy);
  margin: 0 0 0.5rem;
}
.section-sub {
  color: var(--text-muted);
  margin: 0 0 2rem;
  max-width: 600px;
}

/* Hub cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.hub-card {
  display: block;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}
.hub-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(87, 8, 4, 0.12);
  color: inherit;
}

.hub-card__img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.hub-card__body { padding: 1.15rem 1.25rem 1.35rem; }

.hub-card__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.hub-card__title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--burgundy);
  margin: 0 0 0.35rem;
  line-height: 1.35;
}

.hub-card__desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.hub-card__cta {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--burgundy-light);
}

/* Featured list */
.featured-list {
  display: grid;
  gap: 1rem;
}

.featured-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s;
}
.featured-item:hover { transform: translateX(4px); color: inherit; }

.featured-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 90px;
}

.featured-item__body { padding: 1rem 1rem 1rem 0; }
.featured-item__title {
  font-weight: 600;
  color: var(--burgundy);
  margin: 0 0 0.25rem;
  font-size: 0.98rem;
}
.featured-item__meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Tags */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.tag-cloud a {
  padding: 0.35rem 0.85rem;
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: 999px;
  font-size: 0.82rem;
  text-decoration: none;
  color: var(--text);
}
.tag-cloud a:hover {
  border-color: var(--gold);
  background: var(--cream);
}

/* Article layout */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  align-items: start;
}

.article-content {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
  box-shadow: var(--shadow);
}

.article-content h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  color: var(--burgundy);
  margin: 0 0 1rem;
  line-height: 1.25;
}

.article-hero {
  margin: 0 0 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--cream-dark);
}

.article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-content h2 {
  font-size: 1.25rem;
  color: var(--burgundy);
  margin: 2rem 0 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--cream-dark);
}

.article-content h3 {
  font-size: 1.05rem;
  color: var(--burgundy-light);
  margin: 1.5rem 0 0.5rem;
}

.article-content p { margin: 0 0 1rem; }
.article-content ul, .article-content ol { margin: 0 0 1rem; padding-left: 1.4rem; }
.article-content li { margin-bottom: 0.35rem; }

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.88rem;
  overflow-x: auto;
  display: block;
}

.article-content th,
.article-content td {
  border: 1px solid var(--cream-dark);
  padding: 0.6rem 0.75rem;
  text-align: left;
}

.article-content th {
  background: var(--burgundy);
  color: var(--white);
  font-weight: 600;
}

.article-content tr:nth-child(even) td { background: var(--cream); }

.article-note {
  background: var(--cream);
  border-left: 4px solid var(--gold);
  padding: 0.85rem 1rem;
  margin: 1rem 0;
  font-size: 0.9rem;
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.sidebar-block {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.25rem;
}

.sidebar-block h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--burgundy);
  margin: 0 0 0.85rem;
}

.sidebar-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidebar-links li { margin-bottom: 0.5rem; }
.sidebar-links a {
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--text);
  display: block;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--cream-dark);
}
.sidebar-links a:hover { color: var(--burgundy); }

/* Author badge */
.author-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: inherit;
  margin: 1.5rem 0;
  transition: border-color 0.2s;
}
.author-badge:hover { border-color: var(--gold); color: inherit; }

.author-badge img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-badge__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.author-badge__name {
  font-weight: 600;
  color: var(--burgundy);
  font-size: 0.92rem;
}

/* Author page */
.author-hero {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
}
.author-hero img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--gold);
}

/* Footer */
.site-footer {
  background: var(--burgundy);
  color: rgba(255,255,255,0.9);
  padding: 3rem 0 1.5rem;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer h3 {
  color: var(--gold-light);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 1rem;
}

.site-footer a { color: rgba(255,255,255,0.85); text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }

.footer-contact p { margin: 0 0 0.5rem; font-size: 0.92rem; }

.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 0.4rem; }

.contact-form label {
  display: block;
  font-size: 0.82rem;
  margin-bottom: 0.25rem;
  color: rgba(255,255,255,0.8);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-family: inherit;
  font-size: 0.9rem;
  margin-bottom: 0.65rem;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,0.45); }

.contact-form textarea { min-height: 80px; resize: vertical; }

.btn {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  background: var(--gold);
  color: var(--burgundy);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}
.btn:hover { background: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--white);
  border-top: 1px solid var(--cream-dark);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.1);
  padding: 1rem 1.25rem;
  display: none;
}
.cookie-banner.is-visible { display: block; }

.cookie-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}

.cookie-inner p {
  margin: 0;
  font-size: 0.88rem;
  flex: 1;
  min-width: 200px;
}

.cookie-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }

.btn-outline {
  background: transparent;
  border: 2px solid var(--cream-dark);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--burgundy); background: var(--cream); }

/* 404 */
.error-page {
  text-align: center;
  padding: 4rem 1.25rem;
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.error-page h1 {
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--burgundy);
  margin: 0;
  line-height: 1;
}
.error-page p { color: var(--text-muted); max-width: 400px; }

/* FAQ */
.faq-item { margin-bottom: 1.25rem; }
.faq-item h3 { font-size: 1rem; margin: 0 0 0.35rem; color: var(--burgundy); }
.faq-item p { margin: 0; font-size: 0.95rem; }

/* Responsive */
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .author-hero { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--cream-dark);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow);
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { display: block; padding: 0.65rem 0; border-bottom: 1px solid var(--cream-dark); }

  .featured-item { grid-template-columns: 90px 1fr; }
  .article-content { padding: 1.25rem; }
  .hero { padding: 2.5rem 1.25rem 3rem; }
  .cookie-inner { flex-direction: column; align-items: stretch; }
  .cookie-actions { justify-content: stretch; }
  .cookie-actions .btn { flex: 1; text-align: center; }
}

@media (max-width: 480px) {
  .card-grid { grid-template-columns: 1fr; }
  .logo-link img { width: 130px; }
}
