/* ========================================================================== 
   Variables
   ========================================================================== */

:root {
  /* Colors */
  --color-background: #05060a; /* deep black */
  --color-surface: #0a0c12;
  --color-surface-elevated: #101320;
  --color-text: #f5f7ff; /* clean white */
  --color-text-muted: #9ca3c7;
  --color-primary: #0d6efd; /* PlayStation blue-esque */
  --color-primary-soft: rgba(13, 110, 253, 0.16);
  --color-accent-cyan: #13e8ff; /* electric cyan */
  --color-accent-purple: #a855ff; /* neon purple */
  --color-success: #22c55e;
  --color-warning: #facc15;
  --color-danger: #ef4444;

  /* Neutral grays (cool, for dark UI) */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2933;
  --gray-900: #111827;

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif, "Noto Sans";
  --font-display: "Rajdhani", "Orbitron", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;

  --font-size-xs: 0.75rem;   /* 12px */
  --font-size-sm: 0.875rem;  /* 14px */
  --font-size-md: 1rem;      /* 16px */
  --font-size-lg: 1.125rem;  /* 18px */
  --font-size-xl: 1.25rem;   /* 20px */
  --font-size-2xl: 1.5rem;   /* 24px */
  --font-size-3xl: 1.875rem; /* 30px */
  --font-size-4xl: 2.25rem;  /* 36px */
  --font-size-5xl: 3rem;     /* 48px */

  --line-height-tight: 1.1;
  --line-height-snug: 1.3;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;

  /* Spacing scale (0–96px) */
  --space-0: 0;
  --space-1: 0.25rem;  /* 4px */
  --space-2: 0.5rem;   /* 8px */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1rem;     /* 16px */
  --space-5: 1.25rem;  /* 20px */
  --space-6: 1.5rem;   /* 24px */
  --space-8: 2rem;     /* 32px */
  --space-10: 2.5rem;  /* 40px */
  --space-12: 3rem;    /* 48px */
  --space-16: 4rem;    /* 64px */
  --space-20: 5rem;    /* 80px */
  --space-24: 6rem;    /* 96px */

  /* Radius */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows (cinematic, soft glows) */
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.5);
  --shadow-strong: 0 22px 60px rgba(0, 0, 0, 0.7);
  --shadow-glow-primary: 0 0 25px rgba(13, 110, 253, 0.7);

  /* Transitions */
  --transition-fast: 120ms ease-out;
  --transition-base: 200ms ease;
  --transition-slow: 320ms ease;
}

/* Respect prefers-reduced-motion */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ========================================================================== 
   Reset / Normalize
   ========================================================================== */

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

html,
body {
  margin: 0;
  padding: 0;
}

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

body {
  min-height: 100vh;
}

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

a {
  text-decoration: none;
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

button {
  cursor: pointer;
}

button:disabled,
[aria-disabled="true"] {
  cursor: not-allowed;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

/* ========================================================================== 
   Base Styles
   ========================================================================== */

body {
  font-family: var(--font-sans);
  font-size: var(--font-size-md);
  line-height: var(--line-height-normal);
  background: radial-gradient(circle at top, #141b2f 0, #05060a 52%, #000000 100%);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

main {
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--line-height-tight);
  margin: 0 0 var(--space-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1 {
  font-size: var(--font-size-5xl);
}

h2 {
  font-size: var(--font-size-4xl);
}

h3 {
  font-size: var(--font-size-3xl);
}

h4 {
  font-size: var(--font-size-2xl);
}

h5 {
  font-size: var(--font-size-xl);
}

h6 {
  font-size: var(--font-size-lg);
}

p {
  margin-bottom: var(--space-4);
  color: var(--color-text-muted);
}

strong,
b {
  font-weight: 600;
}

code,
pre {
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
}

/* Links */

a {
  color: var(--color-primary);
  transition: color var(--transition-base), text-shadow var(--transition-base);
}

a:hover {
  color: var(--color-accent-cyan);
  text-shadow: 0 0 12px rgba(19, 232, 255, 0.8);
}

a:focus-visible {
  outline: 2px solid var(--color-accent-purple);
  outline-offset: 3px;
}

/* ========================================================================== 
   Accessibility
   ========================================================================== */

:focus-visible {
  outline: 2px solid var(--color-accent-cyan);
  outline-offset: 3px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* Screen reader only */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========================================================================== 
   Utilities
   ========================================================================== */

/* Layout containers */

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--space-4);
}

@media (min-width: 1280px) {
  .container {
    max-width: 1320px;
  }
}

.section {
  padding-block: var(--space-12);
}

.section--compact {
  padding-block: var(--space-8);
}

/* Flex helpers */

.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.gap-xs {
  gap: var(--space-2);
}

.gap-sm {
  gap: var(--space-3);
}

.gap-md {
  gap: var(--space-4);
}

.gap-lg {
  gap: var(--space-6);
}

/* Grid helpers for game catalog / cards */

.grid {
  display: grid;
}

.grid-auto-fit-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .grid-auto-fit-cards {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.muted {
  color: var(--color-text-muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding-inline: var(--space-2);
  padding-block: 2px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(148, 163, 184, 0.18);
  color: var(--color-text);
}

.badge--primary {
  background: radial-gradient(circle at 0 0, rgba(19, 232, 255, 0.5), rgba(13, 110, 253, 0.6));
}

.badge--accent {
  background: radial-gradient(circle at 0 0, rgba(168, 85, 255, 0.6), rgba(13, 110, 253, 0.6));
}

/* ========================================================================== 
   Components
   ========================================================================== */

/* Buttons - Futuristic pill style */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding-inline: var(--space-4);
  padding-block: 0.65rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.7));
  color: var(--color-text);
  font-size: var(--font-size-sm);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition:
    background var(--transition-base),
    border-color var(--transition-base),
    transform var(--transition-fast),
    box-shadow var(--transition-base),
    color var(--transition-base);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0 0, rgba(19, 232, 255, 0.35), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.btn:hover::before {
  opacity: 1;
}

.btn:hover {
  border-color: rgba(19, 232, 255, 0.9);
  box-shadow: var(--shadow-glow-primary);
  transform: translateY(-1px) scale(1.01);
}

.btn:active {
  transform: translateY(0) scale(0.99);
  box-shadow: none;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent-cyan));
  border-color: rgba(19, 232, 255, 0.85);
  color: #020617 !important;
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--color-accent-cyan), var(--color-primary));
}

.btn--ghost {
  background: rgba(15, 23, 42, 0.5);
  border-color: rgba(148, 163, 184, 0.45);
}

.btn--icon-only {
  padding-inline: var(--space-2);
  width: 2.5rem;
  aspect-ratio: 1 / 1;
}

/* Inputs - search bars, filters */

.input,
.select,
.textarea {
  width: 100%;
  padding-inline: var(--space-3);
  padding-block: 0.65rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.85);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  outline: none;
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    background var(--transition-base);
}

.input::placeholder,
.textarea::placeholder {
  color: rgba(148, 163, 184, 0.7);
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--color-accent-cyan);
  box-shadow: 0 0 0 1px rgba(19, 232, 255, 0.7);
  background: rgba(15, 23, 42, 1);
}

.input[disabled],
.select[disabled],
.textarea[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Cards - Game cards, collections, trailers */

.card {
  position: relative;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, rgba(19, 232, 255, 0.04), transparent 60%),
    radial-gradient(circle at bottom right, rgba(168, 85, 255, 0.06), transparent 60%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(5, 6, 10, 0.98));
  padding: var(--space-4);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.28);
  overflow: hidden;
  transition:
    transform var(--transition-slow),
    box-shadow var(--transition-slow),
    border-color var(--transition-base),
    background var(--transition-slow);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 10% 0, rgba(19, 232, 255, 0.18), transparent 55%);
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-strong);
  border-color: rgba(19, 232, 255, 0.7);
}

.card:hover::before {
  opacity: 1;
}

.card__media {
  border-radius: calc(var(--radius-lg) - 4px);
  overflow: hidden;
  margin-bottom: var(--space-3);
}

.card__media img,
.card__media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.card:hover .card__media img,
.card:hover .card__media video {
  transform: scale(1.05);
}

.card__title {
  font-family: var(--font-display);
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-1);
}

.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  margin-bottom: var(--space-2);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

.card__actions {
  margin-top: var(--space-3);
  display: flex;
  gap: var(--space-3);
  align-items: center;
}

/* Cinematic banner / hero section helpers */

.hero {
  position: relative;
  padding-block: var(--space-16);
  color: var(--color-text);
}

.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -1;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 0, rgba(19, 232, 255, 0.2), transparent 55%),
    radial-gradient(circle at 80% 0, rgba(168, 85, 255, 0.2), transparent 55%),
    linear-gradient(to bottom, rgba(5, 6, 10, 0.8), rgba(5, 6, 10, 1));
}

.hero__content {
  position: relative;
  max-width: 640px;
}

.hero__eyebrow {
  font-size: var(--font-size-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent-cyan);
  margin-bottom: var(--space-3);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw + 1rem, 3.5rem);
  line-height: var(--line-height-tight);
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.hero__subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  max-width: 34rem;
}

/* Tagline / small accent text for Hungarian labels (e.g., "Exkluzív", "Új megjelenés") */

.label-accent {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-accent-purple);
}

/* Trailer thumbnail / video overlay helper */

.trailer-thumb {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}

.trailer-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.2), rgba(5, 6, 10, 0.95));
}

.trailer-thumb__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.trailer-thumb__play-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0, rgba(19, 232, 255, 0.6), rgba(13, 110, 253, 0.95));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 22px rgba(19, 232, 255, 0.9);
}

/* Navigation bar base styles */

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(5, 6, 10, 0.92), rgba(5, 6, 10, 0.75));
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-3);
}

.navbar__link {
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  padding-inline: var(--space-2);
  padding-block: var(--space-1);
  border-radius: var(--radius-full);
  transition:
    color var(--transition-base),
    background var(--transition-base);
}

.navbar__link:hover {
  color: var(--color-text);
  background: rgba(15, 23, 42, 0.9);
}

.navbar__link--active {
  color: var(--color-accent-cyan);
  background: rgba(19, 232, 255, 0.12);
}

/* Genre chip / filter pill */

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: var(--space-3);
  padding-block: 0.4rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.85);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  transition:
    background var(--transition-base),
    color var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base);
}

.chip--active,
.chip:hover {
  color: var(--color-text);
  border-color: rgba(19, 232, 255, 0.9);
  background: radial-gradient(circle at 0 0, rgba(19, 232, 255, 0.45), rgba(15, 23, 42, 0.9));
  box-shadow: 0 0 16px rgba(19, 232, 255, 0.7);
}

/* Rating / meta info */

.rating {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: var(--font-size-sm);
}

.rating__value {
  font-weight: 600;
  color: var(--color-accent-cyan);
}

.rating__label {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
}

/* Simple slider base (for showcases) - structural only */

.slider {
  position: relative;
  overflow: hidden;
}

.slider__track {
  display: flex;
  gap: var(--space-4);
  scroll-snap-type: x mandatory;
  overflow-x: auto;
  padding-bottom: var(--space-2);
  -webkit-overflow-scrolling: touch;
}

.slider__slide {
  scroll-snap-align: start;
  flex: 0 0 auto;
}

.slider::-webkit-scrollbar {
  height: 6px;
}

.slider::-webkit-scrollbar-track {
  background: transparent;
}

.slider::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.6);
  border-radius: 999px;
}

/* Helper for Hungarian section titles (e.g., "Legnépszerűbb", "Új megjelenések") */

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.section-title__heading {
  font-size: var(--font-size-3xl);
}

.section-title__meta {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* End of base.css */
