/* === FONTS === */
@font-face {
  font-family: 'Special Elite';
  src: url('../assets/fonts/SpecialElite-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Courier Prime';
  src: url('../assets/fonts/CourierPrime-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Courier Prime';
  src: url('../assets/fonts/CourierPrime-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Courier Prime';
  src: url('../assets/fonts/CourierPrime-Italic.ttf') format('truetype');
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

/* === CUSTOM PROPERTIES === */
:root {
  --bg-dark: #1a1a2e;
  --bg-surface: #22223a;
  --bg-card: #2a2a45;
  --text-primary: #f0ece4;
  --text-muted: #a09aae;
  --accent-orange: #e87a2e;
  --accent-orange-bright: #f5923a;
  --accent-purple: #6c3fa0;
  --accent-purple-bright: #8b5fd0;
  --accent-gold: #e87a2e;
  --accent-gold-dim: #c46520;
  --accent-red: #6c3fa0;
  --accent-red-bright: #8b5fd0;
  --redaction-black: #111;
  --font-heading: 'Special Elite', 'Courier New', monospace;
  --font-body: 'Courier Prime', 'Courier New', monospace;
  --max-width: 1100px;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 5rem;
}

/* === RESET & BASE === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-dark);
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(240, 236, 228, 0.008) 2px,
      rgba(240, 236, 228, 0.008) 4px
    );
  min-height: 100vh;
}

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

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

a:hover {
  color: var(--text-primary);
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.3;
  color: var(--text-primary);
}

h1 { font-size: 2.5rem; letter-spacing: 2px; }
h2 { font-size: 1.75rem; letter-spacing: 1px; }
h3 { font-size: 1.25rem; }

p {
  margin-bottom: var(--spacing-sm);
}

/* === LAYOUT === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-xl) 0;
}

/* === REDACTION BAR DIVIDER === */
.redaction-divider {
  height: 4px;
  background: var(--redaction-black);
  border: none;
  margin: var(--spacing-lg) 0;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.redaction-divider::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 5%;
  right: 10%;
  height: 6px;
  background: var(--redaction-black);
  opacity: 0.5;
}

/* === HEADER / NAV === */
.site-header {
  padding: var(--spacing-sm) 0;
  border-bottom: 2px solid var(--bg-card);
  position: sticky;
  top: 0;
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(8px);
  z-index: 100;
}

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

.site-logo {
  height: 50px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: var(--spacing-md);
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-gold);
}

/* Hamburger menu (mobile) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-xs);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* === HERO === */
.hero {
  text-align: center;
  padding: var(--spacing-xl) 0;
}

.hero h1 {
  margin-bottom: var(--spacing-sm);
}

.hero .tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* === GAME CARDS === */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--spacing-md);
  padding: var(--spacing-md) 0;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid #333;
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  border-color: var(--accent-gold-dim);
}

.game-card img {
  width: 100%;
  aspect-ratio: 460 / 215;
  object-fit: cover;
}

.game-card-body {
  padding: var(--spacing-sm) var(--spacing-md);
}

.game-card-body h3 {
  font-family: var(--font-heading);
  margin-bottom: var(--spacing-xs);
}

.game-card-body .card-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: var(--spacing-sm);
}

.game-card-body .card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.game-card-body .price {
  font-weight: bold;
  color: var(--accent-gold);
  font-size: 1.1rem;
}

.game-card-body .card-link {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 1px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s, transform 0.1s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent-gold);
  color: var(--bg-dark);
}

.btn-primary:hover {
  background: var(--text-primary);
  color: var(--bg-dark);
}

.btn-steam {
  background: #1b2838;
  color: #c7d5e0;
  border: 1px solid #4a6741;
  font-family: var(--font-body);
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
}

.btn-steam:hover {
  background: #2a475e;
  color: #fff;
}

.btn-secondary {
  background: var(--accent-purple);
  color: var(--text-primary);
}

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

/* === GAME PAGE === */
.game-hero {
  position: relative;
  overflow: hidden;
  padding: var(--spacing-xl) 0;
  background-size: cover;
  background-position: center;
}

.game-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(26, 26, 26, 0.7), var(--bg-dark));
}

.game-hero .container {
  position: relative;
  z-index: 1;
}

.game-title {
  font-size: 3rem;
  margin-bottom: var(--spacing-sm);
}

.game-title .redacted-bar {
  background: var(--redaction-black);
  padding: 0.1em 0.3em;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
}

/* Game showcase / key art */
.game-showcase {
  padding-top: 0;
  padding-bottom: 0;
}

.showcase-image {
  max-width: 800px;
  margin: 0 auto;
  border: 2px solid #333;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  border-radius: 3px;
}

.float-art {
  float: right;
  width: 260px;
  margin: 0 0 var(--spacing-md) var(--spacing-md);
  border: 1px solid #333;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  border-radius: 2px;
}

.game-description {
  max-width: 850px;
}

.game-description::after {
  content: '';
  display: table;
  clear: both;
}

.game-description h2 {
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
  color: var(--accent-gold);
  font-size: 1.5rem;
}

.game-description p {
  color: var(--text-primary);
  line-height: 1.8;
}

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

.game-description strong {
  color: var(--text-primary);
}

.game-description ul {
  list-style: none;
  padding: 0;
  margin-bottom: var(--spacing-md);
}

.game-description ul li {
  padding: var(--spacing-xs) 0;
  padding-left: 1.5rem;
  position: relative;
}

.game-description ul li::before {
  content: '█';
  position: absolute;
  left: 0;
  color: var(--accent-red);
  font-size: 0.7rem;
  top: 0.7rem;
}

.cta-section {
  text-align: center;
  padding: var(--spacing-lg) 0;
}

.cta-section .price-tag {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--accent-gold);
  margin-bottom: var(--spacing-sm);
}

.sys-requirements {
  background: var(--bg-surface);
  padding: var(--spacing-md);
  border-radius: 4px;
  border: 1px solid #333;
  margin-top: var(--spacing-lg);
}

.sys-requirements h3 {
  margin-bottom: var(--spacing-sm);
  color: var(--accent-gold);
}

.sys-requirements table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.sys-requirements td {
  padding: 0.4rem 0;
  border-bottom: 1px solid #333;
}

.sys-requirements td:first-child {
  color: var(--text-muted);
  width: 140px;
}

/* === FEEDBACK FORM === */
.feedback-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  margin-bottom: var(--spacing-xs);
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid #444;
  border-radius: 3px;
  transition: border-color 0.2s;
}

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

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a09a8e' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

.form-group .optional {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

.form-status {
  text-align: center;
  padding: var(--spacing-md);
  border-radius: 4px;
  margin-top: var(--spacing-md);
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(108, 63, 160, 0.15);
  border: 1px solid var(--accent-purple);
  color: var(--accent-purple-bright);
}

.form-status.error {
  display: block;
  background: rgba(139, 37, 0, 0.2);
  border: 1px solid var(--accent-red);
  color: var(--accent-red-bright);
}

/* === FOOTER === */
.site-footer {
  border-top: 2px solid var(--bg-card);
  padding: var(--spacing-lg) 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.site-footer .footer-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
}

.site-footer .footer-links a {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
}

.site-footer .footer-links a:hover {
  color: var(--accent-gold);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.35rem; }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(26, 26, 46, 0.98);
    flex-direction: column;
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: 2px solid var(--bg-card);
  }

  .nav-links.open {
    display: flex;
  }

  .game-grid {
    grid-template-columns: 1fr;
  }

  .game-title {
    font-size: 2rem;
  }

  .float-art {
    float: none;
    width: 100%;
    max-width: 300px;
    margin: 0 auto var(--spacing-md);
  }

  .site-footer .footer-links {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
}
