/* nexcear games — shared styles */

:root {
  --bg-deep: #0a0e1a;
  --bg-card: #12182a;
  --bg-card-hover: #1a2238;
  --text-primary: #e8ecf4;
  --text-muted: #8b95a8;
  --accent: #f57c00;
  --accent-hover: #ff9800;
  --border: #1e2a42;
  --max-width: 960px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(245, 124, 0, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(30, 60, 120, 0.15) 0%, transparent 60%);
  color: var(--text-primary);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1,
h2,
h3,
.logo {
  font-family: "Orbitron", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
}

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

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

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

/* Layout */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

main {
  flex: 1;
  padding: 2.5rem 0 4rem;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  background: rgba(10, 14, 26, 0.92);
  backdrop-filter: blur(8px);
  z-index: 100;
}

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

.logo {
  font-size: 1.25rem;
  color: var(--text-primary);
  text-decoration: none;
}

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

.site-nav {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.site-nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
}

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

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: auto;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
}

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

.copyright {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Hero */

.hero {
  text-align: center;
  padding: 3rem 0 2rem;
}

.hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  margin-bottom: 1rem;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto;
}

/* Section */

.section-title {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Game card */

.games-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 600px) {
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

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

.game-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(245, 124, 0, 0.3);
  transform: translateY(-2px);
}

.game-card__image {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}

.game-card__body {
  padding: 1.25rem;
}

.game-card__title {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.game-card__desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: var(--accent);
  color: #0a0e1a;
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: #0a0e1a;
}

.btn--outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--disabled {
  background: var(--bg-card-hover);
  color: var(--text-muted);
  cursor: not-allowed;
  opacity: 0.7;
}

.btn--disabled:hover {
  background: var(--bg-card-hover);
  color: var(--text-muted);
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Breadcrumb */

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

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

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

.breadcrumb span {
  margin: 0 0.4rem;
}

/* Game detail */

.game-hero {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 2rem;
}

.game-hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.game-detail h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 1rem;
}

.game-detail p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.game-detail .game-links {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* Content pages */

.content-page h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 0.5rem;
}

.content-page .meta {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.content-page .placeholder {
  color: var(--text-muted);
  font-style: italic;
  padding: 2rem;
  border: 1px dashed var(--border);
  border-radius: 8px;
  text-align: center;
}

/* Support */

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-list .label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-list a {
  font-size: 1.1rem;
}

/* Privacy policy */

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

.policy-body > p:first-of-type {
  margin-bottom: 2rem;
}

.policy-body h2 {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 2rem 0 0.75rem;
  letter-spacing: normal;
}

.policy-body h3 {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 1.25rem 0 0.5rem;
  letter-spacing: normal;
}

.policy-body p {
  margin-bottom: 1rem;
}

.policy-body ul {
  margin: 0 0 1rem 1.25rem;
}

.policy-body li {
  margin-bottom: 0.35rem;
}

.policy-body a {
  word-break: break-all;
}

.policy-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.9rem;
}

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

.policy-table th {
  background: var(--bg-card);
  color: var(--text-primary);
  font-weight: 600;
  white-space: nowrap;
}

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