/* Aeron — modern hub layout inspired by editorial card grids */
:root {
  --bg: #f4f4f6;
  --bg-card: #ffffff;
  --bg-dark: #121218;
  --bg-muted: #ececf0;
  --text: #111118;
  --text-muted: #5c5c6e;
  --text-on-dark: #ffffff;
  --accent: #e63946;
  --accent-hover: #c42f3a;
  --accent-soft: #fde8ea;
  --border: #dddde6;
  --shadow: 0 2px 16px rgba(17, 17, 24, 0.08);
  --shadow-lg: 0 12px 40px rgba(17, 17, 24, 0.16);
  --radius: 10px;
  --radius-lg: 14px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI", system-ui, sans-serif;
  --max-width: 1240px;
  --header-h: 68px;
}

*,
*::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(--bg);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

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

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  height: var(--header-h);
}

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

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.logo span {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  cursor: pointer;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
}

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

.main-nav a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.25rem 0;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: #fff;
}

/* Main */
main {
  flex: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3.5rem;
}

/* Hero */
.hero {
  margin-bottom: 2.75rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.hero-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 3rem);
  line-height: 1.08;
  margin: 0 0 1rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.hero p {
  font-size: clamp(1.02rem, 2.5vw, 1.2rem);
  color: var(--text-muted);
  max-width: 720px;
  margin: 0;
  line-height: 1.6;
}

/* Section */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 800;
  margin: 0 0 1.5rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* PC Gamer–style hub cards */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.hub-card {
  position: relative;
  display: block;
  min-height: 260px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--text-on-dark);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hub-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: var(--text-on-dark);
}

.hub-card__media {
  position: absolute;
  inset: 0;
}

.hub-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hub-card:hover .hub-card__media img {
  transform: scale(1.05);
}

.hub-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(18, 18, 24, 0.15) 0%,
    rgba(18, 18, 24, 0.45) 45%,
    rgba(18, 18, 24, 0.92) 100%
  );
  transition: background 0.25s ease;
}

.hub-card:hover .hub-card__overlay {
  background: linear-gradient(
    180deg,
    rgba(18, 18, 24, 0.2) 0%,
    rgba(18, 18, 24, 0.55) 45%,
    rgba(18, 18, 24, 0.96) 100%
  );
}

.hub-card__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 260px;
  padding: 1.5rem;
}

.hub-card__tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.hub-card__content h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.hub-card__content p {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hub-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  padding: 0.5rem 0.9rem;
  background: var(--accent);
  border-radius: 6px;
  width: fit-content;
  transition: background 0.2s;
}

.hub-card:hover .hub-card__cta {
  background: var(--accent-hover);
}

/* Article list — editorial rows */
.article-list {
  display: grid;
  gap: 0;
  margin-bottom: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.article-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
  align-items: center;
}

.article-card__thumb {
  display: none;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--bg-dark);
}

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

.article-card__body {
  min-width: 0;
}

.article-card:last-child {
  border-bottom: none;
}

.article-card:hover {
  background: var(--bg-muted);
  color: inherit;
}

.article-card .meta {
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
  display: block;
}

.article-card h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.3;
  transition: color 0.2s;
}

.article-card:hover h3 {
  color: var(--accent);
}

.article-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Popular tags */
.popular-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  padding: 1.1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

.popular-links strong {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-right: 0.25rem;
}

.popular-links a {
  font-size: 0.82rem;
  text-decoration: none;
  padding: 0.35rem 0.8rem;
  background: var(--bg-muted);
  border-radius: 999px;
  color: var(--text);
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}

.popular-links a:hover {
  background: var(--accent);
  color: #fff;
}

/* Article page */
.breadcrumb {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent);
}
.sub-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 1.75rem;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.sub-nav a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
}

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


.article-hero {
  margin: 0 0 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1200 / 630;
  max-height: 400px;
  background: var(--bg-dark);
  box-shadow: var(--shadow);
}

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

.article-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.article-intro {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  line-height: 1.65;
}

.article-content h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 2.25rem 0 0.75rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.article-content h3 {
  font-size: 1.08rem;
  margin: 1.5rem 0 0.5rem;
  font-weight: 700;
}

.article-content p {
  margin: 0 0 1rem;
}

.article-content ul,
.article-content ol {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.35rem;
}

.article-content a {
  font-weight: 600;
}

.article-figure {
  margin: 2rem 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-dark);
  box-shadow: var(--shadow);
}

.article-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.article-table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0 2rem;
  -webkit-overflow-scrolling: touch;
}

.article-content table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: var(--bg-card);
}

.article-content th,
.article-content td {
  border: 1px solid var(--border);
  padding: 0.65rem 0.85rem;
  text-align: left;
  vertical-align: top;
}

.article-content th {
  background: var(--bg-muted);
  font-weight: 700;
}

.article-content tbody tr:nth-child(even) {
  background: rgba(236, 236, 240, 0.5);
}

/* Related */
.related-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

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

.related-card {
  padding: 1rem 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.related-card:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

/* FAQ */
.faq-section {
  margin-top: 2.5rem;
}

.faq-list {
  display: grid;
  gap: 0.65rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  padding: 1rem 1.25rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--accent);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item .faq-answer {
  padding: 0 1.25rem 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* 404 */
.error-page {
  text-align: center;
  padding: 4rem 1rem;
}

.error-page h1 {
  font-family: var(--font-display);
  font-size: clamp(4rem, 15vw, 7rem);
  margin: 0;
  color: var(--accent);
  font-weight: 800;
  line-height: 1;
}

.error-page h2 {
  margin: 0.5rem 0 1rem;
  font-size: 1.5rem;
  font-weight: 800;
}

.error-page p {
  color: var(--text-muted);
  max-width: 420px;
  margin: 0 auto 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.btn:hover {
  background: var(--accent-hover);
  color: #fff;
}

/* Footer */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.75);
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.75rem 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.footer-col h3 {
  font-size: 0.75rem;
  font-weight: 700;
  margin: 0 0 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.45);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.45rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #fff;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
  font-size: 0.9rem;
}

.contact-item a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.contact-item a:hover {
  color: #fff;
}

.contact-form {
  display: grid;
  gap: 0.75rem;
}

.contact-form label {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  transition: border-color 0.2s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

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

.form-message {
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.form-message.success {
  color: #6ee7a0;
}

.form-message.error {
  color: #f87171;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.25rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.25);
  padding: 1rem 1.25rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

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

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

.cookie-inner p {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  flex: 1;
  min-width: 200px;
}

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

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* Responsive */
@media (min-width: 900px) {
  .hub-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hub-card:nth-child(1),
  .hub-card:nth-child(2) {
    grid-column: span 1;
    min-height: 300px;
  }

  .hub-card__content {
    min-height: 300px;
    padding: 1.75rem;
  }
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr 1.2fr;
  }

  .article-card {
    grid-template-columns: 200px 1fr;
  }

  .article-card__thumb {
    display: block;
  }
}

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

  .hub-card,
  .hub-card__content {
    min-height: 220px;
  }
}

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

  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.75rem 1.25rem 1rem;
    display: none;
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  .main-nav a {
    display: block;
    padding: 0.5rem 0;
  }

  .cookie-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-actions {
    justify-content: stretch;
  }

  .cookie-actions .btn {
    flex: 1;
    text-align: center;
  }
}

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

  .hub-card,
  .hub-card__media img,
  .cookie-banner {
    transition: none;
  }
}
