/* ==========================================================================
   Variables
   ========================================================================== */
:root {
  /* Colors */
  --color-background: #050816;
  --color-surface: #0b1020;
  --color-surface-alt: #151a30;
  --color-text: #f7f7ff;
  --color-text-muted: #b5bed9;
  --color-primary: #ff3fb4; /* neon pink */
  --color-primary-soft: rgba(255, 63, 180, 0.18);
  --color-accent: #3ef3ff; /* cyan accent */
  --color-success: #30d158;
  --color-warning: #ffcc00;
  --color-danger: #ff453a;

  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2933;
  --color-gray-900: #111827;

  /* Gradients (arcade / neon) */
  --gradient-primary: linear-gradient(135deg, #ff3fb4 0%, #ff9b3f 45%, #3ef3ff 100%);
  --gradient-surface: radial-gradient(circle at top, rgba(62, 243, 255, 0.18), transparent 55%),
                      radial-gradient(circle at bottom, rgba(255, 63, 180, 0.16), transparent 55%),
                      #050816;

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Roboto", "Segoe UI", sans-serif;
  --font-display: "Rajdhani", "Russo One", system-ui, sans-serif;

  --font-size-xs: 0.75rem;  /* 12px */
  --font-size-sm: 0.875rem; /* 14px */
  --font-size-base: 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.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;

  /* Spacing scale (px) */
  --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: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* Shadows (neon / arcade feel) */
  --shadow-soft: 0 10px 30px rgba(5, 8, 22, 0.75);
  --shadow-strong: 0 18px 45px rgba(0, 0, 0, 0.85);
  --shadow-neon-primary: 0 0 18px rgba(255, 63, 180, 0.65);
  --shadow-neon-accent: 0 0 18px rgba(62, 243, 255, 0.55);

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

/* ==========================================================================
   Reset / Normalize
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

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

body {
  min-height: 100vh;
}

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

picture {
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  border-radius: 0;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

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

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

textarea {
  resize: vertical;
}

[hidden] {
  display: none !important;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background: var(--gradient-surface);
  -webkit-font-smoothing: antialiased;
}

main {
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--line-height-tight);
  letter-spacing: 0.03em;
  color: var(--color-text);
}

h1 {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  margin-bottom: var(--space-4);
}

h2 {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  margin-bottom: var(--space-3);
}

h3 {
  font-size: clamp(1.5rem, 2.3vw, 1.9rem);
  margin-bottom: var(--space-2);
}

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

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-base),
              text-shadow var(--transition-base),
              transform var(--transition-fast);
}

a:hover {
  color: #fff !important;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.7);
}

a:active {
  transform: translateY(1px) scale(0.99);
}

small {
  font-size: 0.875em;
}

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

hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin: var(--space-6) 0;
}

/* ==========================================================================
   Accessibility & Motion
   ========================================================================== */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

@media (min-width: 1024px) {
  .container {
    padding-left: var(--space-6);
    padding-right: var(--space-6);
  }
}

.section {
  padding-top: var(--space-10);
  padding-bottom: var(--space-10);
}

.section--tight {
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
}

/* Flex helpers */
.flex {
  display: flex;
}

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

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

.flex-row {
  flex-direction: row;
}

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

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

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

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

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

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

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

/* Grid helpers */
.grid {
  display: grid;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

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

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

.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }

.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }

.pt-6 { padding-top: var(--space-6); }
.pb-6 { padding-bottom: var(--space-6); }

/* 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;
}

/* ==========================================================================
   Components
   ========================================================================== */
/* Buttons – main CTA strongly oriented to Google Play download */
.btn {
  --btn-bg: var(--color-primary);
  --btn-bg-hover: #ff5fcc;
  --btn-color: #050816;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 0;
  font-weight: 700;
  font-size: var(--font-size-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--btn-bg);
  color: var(--btn-color);
  box-shadow: var(--shadow-neon-primary);
  transition: transform var(--transition-fast),
              box-shadow var(--transition-fast),
              background var(--transition-fast),
              color var(--transition-fast);
}

.btn:hover {
  background: var(--btn-bg-hover);
  color: #050816 !important;
  transform: translateY(-1px) scale(1.02);
  box-shadow: var(--shadow-neon-primary), 0 12px 24px rgba(0, 0, 0, 0.7);
}

.btn:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.7);
}

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

.btn--ghost {
  --btn-bg: transparent;
  --btn-bg-hover: rgba(255, 255, 255, 0.08);
  --btn-color: var(--color-text);
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow: none;
}

.btn--outline {
  --btn-bg: transparent;
  --btn-bg-hover: var(--color-primary-soft);
  --btn-color: var(--color-text);
  border: 1px solid var(--color-primary);
  box-shadow: var(--shadow-neon-primary);
}

.btn--google-play {
  --btn-bg: #00c853;
  --btn-bg-hover: #00e05e;
  --btn-color: #ffffff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.46), 0 12px 28px rgba(0, 0, 0, 0.7);
}

.btn--full {
  width: 100%;
}

/* Inputs */
.input,
.select,
.textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(11, 16, 32, 0.9);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  transition: border-color var(--transition-base),
              box-shadow var(--transition-base),
              background var(--transition-base);
}

.input::placeholder,
.textarea::placeholder {
  color: rgba(181, 190, 217, 0.7);
}

.input:focus-visible,
.select:focus-visible,
.textarea:focus-visible {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px rgba(62, 243, 255, 0.5);
}

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

/* Cards – for features, reviews, FAQ items, updates, etc. */
.card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.02), rgba(5, 8, 22, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(62, 243, 255, 0.18), transparent 55%);
  opacity: 0.7;
  pointer-events: none;
}

.card__content {
  position: relative;
  z-index: 1;
}

.card--highlight {
  border-color: rgba(255, 63, 180, 0.65);
  box-shadow: var(--shadow-neon-primary);
}

/* Tag / pill – e.g. for "Nowość", "Aktualizacja" */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text-muted);
}

.tag--primary {
  background: rgba(255, 63, 180, 0.22);
  color: #ffe8f6;
}

.tag--accent {
  background: rgba(62, 243, 255, 0.2);
  color: #e5fcff;
}

/* Arcade-style chip for ratings or categories */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  background: rgba(11, 16, 32, 0.9);
  border: 1px solid rgba(62, 243, 255, 0.4);
}

/* Basic badge for small notification counts */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.3rem;
  border-radius: var(--radius-pill);
  background: var(--color-danger);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
}

/* ==========================================================================
   Layout helpers specific to this project
   ========================================================================== */
/* Hero section typical structure – game cover + phone mockup */
.hero {
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}

.hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: var(--space-8);
  align-items: center;
}

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

.hero__title {
  text-shadow: 0 0 18px rgba(255, 63, 180, 0.75);
}

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

/* Screenshot grid – used in gallery / features */
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
}

.screenshot-grid img {
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-soft);
}

/* Review layout for player opinions */
.review-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-4);
}

.review {
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  background: rgba(11, 16, 32, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.review__author {
  font-weight: 600;
  margin-top: var(--space-3);
}

.review__rating {
  color: var(--color-warning);
  font-size: var(--font-size-sm);
}

/* FAQ accordion basic shell; JS can enhance */
.faq-item {
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(11, 16, 32, 0.95);
  padding: var(--space-4);
}

.faq-item + .faq-item {
  margin-top: var(--space-3);
}

.faq-item__question {
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-item__answer {
  margin-top: var(--space-2);
  color: var(--color-text-muted);
}

/* Updates / changelog list */
.update-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-4);
}

.update-item {
  border-radius: var(--radius-md);
  padding: var(--space-4);
  background: rgba(11, 16, 32, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.update-item__meta {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

/* Navigation bar shell */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(22px);
  background: linear-gradient(to bottom, rgba(5, 8, 22, 0.98), rgba(5, 8, 22, 0.8));
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.site-nav a {
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

.site-nav a:hover {
  color: #fff !important;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
  background: #050816;
}
