/* ============================================================
   SHADOW STEP GAMES - Base Stylesheet
   Shared variables, reset, navigation, footer, components
   ============================================================ */

/* --- Variables --- */
:root {
  /* Company brand */
  --color-primary: #e8e4df;
  --color-primary-light: #9a9a9a;
  --color-accent: #c4956a;
  --color-accent-hover: #d4a87a;

  /* Backgrounds */
  --color-bg: #0e0e14;
  --color-bg-alt: #141420;
  --color-bg-dark: #0a0a0f;

  /* Text */
  --color-text: #c8c4bf;
  --color-text-light: #7a7a7a;
  --color-text-on-dark: #e8e4df;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  /* Typography */
  --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-heading: Georgia, 'Times New Roman', serif;

  /* Layout */
  --max-width: 1100px;
  --border-radius: 8px;
}

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* --- Base --- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

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

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.2;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

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

/* --- Navigation --- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg-dark);
  padding: 0 var(--space-md);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-text-on-dark);
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.nav-brand:hover {
  color: var(--color-accent);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--space-md);
  align-items: center;
}

.nav-links a {
  color: var(--color-text-on-dark);
  font-size: 0.95rem;
  opacity: 0.85;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  opacity: 1;
  color: var(--color-accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
  color: var(--color-text-on-dark);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* --- Play Badge --- */
.play-badge {
  display: inline-block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.play-badge:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.play-badge img {
  height: 60px;
  width: auto;
}

/* --- Phone Frame --- */
.phone-frame {
  width: 280px;
  background: linear-gradient(145deg, #2a2a35, #1e1e28);
  border-radius: 24px;
  padding: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.screenshot-img {
  width: 100%;
  border-radius: 16px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: var(--color-bg-alt);
}

/* Screenshot placeholder */
.screenshot-placeholder {
  width: 100%;
  border-radius: 16px;
  aspect-ratio: 9 / 16;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-md);
  font-size: 0.9rem;
  color: var(--color-text-light);
  font-style: italic;
}

[data-game-theme="zen-breaker"] .screenshot-placeholder {
  background: linear-gradient(135deg, #a8c5ab 0%, #c4d4a0 100%);
  color: #3a5a3c;
}

[data-game-theme="zen-hexagon"] .screenshot-placeholder {
  background: linear-gradient(135deg, #8eb9e6 0%, #a8d4f0 100%);
  color: #2a4a6a;
}

/* --- Social Icons --- */
.social-icons {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  color: var(--color-primary);
  transition: color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.social-icons a:hover {
  color: #fff;
  background: var(--color-accent);
  transform: scale(1.1);
}

/* --- Footer --- */
.site-footer {
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark);
  padding: var(--space-md);
  text-align: center;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-company {
  font-size: 1rem;
  margin-bottom: var(--space-xs);
}

.footer-company a {
  color: var(--color-text-on-dark);
  font-weight: 600;
}

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

.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
}

.footer-links a {
  color: var(--color-text-on-dark);
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--color-accent);
}

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

  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--color-bg-dark);
    flex-direction: column;
    padding: var(--space-sm) 0 var(--space-md);
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

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

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: var(--space-sm) var(--space-md);
  }

  .phone-frame {
    width: 220px;
  }
}
