/* ================================================================
   Mobile Gamer UT — Main Stylesheet
   "Professional" aesthetic: clean, organized, and reliable
   ================================================================ */

:root {
  --bg-dark:     #0d1117;
  --bg-card:     #161b22;
  --bg-hover:    #1c2330;
  --accent:      #00d4ff;
  --accent-dim:  rgba(0, 212, 255, 0.12);
  --accent-glow: rgba(0, 212, 255, 0.25);
  --accent-hover:#00b8e0;
  --purple:      #7c3aed;
  --purple-dim:  rgba(124, 58, 237, 0.15);
  --text:        #e6edf3;
  --text-muted:  #8b949e;
  --border:      #30363d;
  --border-soft: rgba(48, 54, 61, 0.6);
  --nav-h:       64px;
  --radius:      10px;
  --radius-lg:   14px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Layout ---- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

section { padding: 4rem 0; }

/* ---- Typography ---- */
h1 { font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.15; font-weight: 800; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.2; font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; }

.section-label {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

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

/* ---- Navigation ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(13, 17, 23, 0.93);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  height: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
}

.nav__logo-icon {
  width: 36px;
  height: 36px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 8px;
}

.nav__links {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 0.15rem;
}

.nav__link {
  display: block;
  padding: 0.4rem 0.7rem;
  color: var(--text-muted);
  border-radius: 6px;
  font-size: 0.875rem;
  transition: color 0.2s, background 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.nav__link:hover { color: var(--text); background: rgba(255,255,255,0.05); text-decoration: none; }
.nav__link.active { color: var(--accent); }

.nav__cta {
  padding: 0.45rem 1rem !important;
  background: var(--accent) !important;
  color: var(--bg-dark) !important;
  font-weight: 700;
  border-radius: 6px;
  transition: background 0.2s, transform 0.15s !important;
}

.nav__cta:hover { background: var(--accent-hover) !important; transform: translateY(-1px); text-decoration: none; }

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 700px) {
  .nav__hamburger { display: flex; }
  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(13, 17, 23, 0.98);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1rem;
    gap: 0.2rem;
  }
  .nav__links.open { display: flex; }
  .nav__link { padding: 0.65rem 0.75rem; font-size: 1rem; }
  .nav__cta { text-align: center; margin-top: 0.5rem; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.925rem;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s, color 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn:active { transform: translateY(0); }

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

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 24px var(--accent-glow);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}

.btn-outline:hover { background: var(--accent-dim); }

/* ---- Cards ---- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: rgba(0,212,255,0.35);
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(0,212,255,0.07);
}

/* ---- Badges ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.18rem 0.55rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.badge-category {
  background: var(--purple-dim);
  color: #a78bfa;
  border: 1px solid rgba(124, 58, 237, 0.3);
}

/* ---- Divider ---- */
hr { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }

/* ================================================================
   HERO
   ================================================================ */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 55% at 75% 45%, rgba(0,212,255,0.07) 0%, transparent 65%),
    radial-gradient(ellipse 45% 45% at 25% 65%, rgba(124,58,237,0.07) 0%, transparent 60%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 3rem;
}

@media (max-width: 820px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-glow);
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  margin-bottom: 1.2rem;
}

.hero__title { margin-bottom: 1rem; }
.hero__title em { font-style: normal; color: var(--accent); }

.hero__subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 500px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
}

/* Hero visual — decorative dice card */
.hero__visual {
  width: 260px;
  height: 300px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.hero__visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,212,255,0.08) 0%, transparent 70%);
}

.hero__dice {
  font-size: 6rem;
  position: relative;
  z-index: 1;
  animation: float 4s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(0,212,255,0.3));
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

/* Hero highlights */
.hero__highlights {
  display: flex;
  gap: 1rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.hero__highlight {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero__highlight-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ================================================================
   HOME — FEATURES / SERVICES PREVIEW
   ================================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: rgba(0,212,255,0.3);
  transform: translateY(-3px);
}

.feature-card__icon {
  font-size: 1.75rem;
  margin-bottom: 0.85rem;
  display: block;
}

.feature-card__title {
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.feature-card__desc { font-size: 0.875rem; color: var(--text-muted); }

/* ================================================================
   SERVICES PAGE
   ================================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--purple));
  opacity: 0;
  transition: opacity 0.2s;
}

.service-card:hover::after { opacity: 1; }
.service-card:hover {
  border-color: rgba(0,212,255,0.3);
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(0,212,255,0.07);
}

.service-card__icon { font-size: 2.2rem; }
.service-card__name { font-size: 1.2rem; font-weight: 700; }

.service-card__desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  flex: 1;
}

.service-card__includes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.service-card__includes li {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.service-card__includes li::before {
  content: '✦';
  color: var(--accent);
  font-size: 0.65rem;
  margin-top: 0.28rem;
  flex-shrink: 0;
}

.service-card__price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.service-card__price small {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* ================================================================
   ABOUT PAGE
   ================================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 720px) {
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.about-visual {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  display: grid;
  place-items: center;
  min-height: 300px;
  position: relative;
  overflow: hidden;
}

.about-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,212,255,0.06) 0%, transparent 70%);
}

.about-visual__emoji {
  font-size: 5rem;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 16px rgba(0,212,255,0.25));
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
}

.stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}

.stat__number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.3rem;
}

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

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

.bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.bullet-list li::before {
  content: '✦';
  color: var(--accent);
  font-size: 0.65rem;
  margin-top: 0.35rem;
  flex-shrink: 0;
}

/* ================================================================
   GAMES PAGE
   ================================================================ */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: 1.15rem;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.game-card:hover {
  border-color: rgba(0,212,255,0.35);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,212,255,0.07);
}

.game-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.game-card__title { font-size: 1rem; font-weight: 700; }

.game-card__desc {
  font-size: 0.865rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}

.game-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.game-card__players {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.complexity-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.complexity-dots {
  display: flex;
  gap: 3px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
}

.dot.filled { background: var(--accent); }
.dot.half   { background: linear-gradient(90deg, var(--accent) 50%, var(--border) 50%); }

/* Filters */
.filters-bar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  min-width: 70px;
}

.chips { display: flex; gap: 0.4rem; flex-wrap: wrap; }

.chip {
  padding: 0.28rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg-dark);
  color: var(--text-muted);
  transition: all 0.18s;
  user-select: none;
  line-height: 1.4;
}

.chip:hover { border-color: var(--accent); color: var(--text); }
.chip.active { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }

.player-select {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.32rem 0.75rem;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}

.player-select:hover, .player-select:focus { border-color: var(--accent); }
.player-select option { background: var(--bg-card); }

.results-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-muted);
}

.no-results__icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.no-results__msg { font-size: 1rem; margin-bottom: 0.5rem; }

/* Request-a-game banner */
.request-banner {
  background: linear-gradient(135deg, rgba(0,212,255,0.07), rgba(124,58,237,0.09));
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  margin-top: 3rem;
}

.request-banner h2 { margin-bottom: 0.6rem; }
.request-banner p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.5rem; max-width: 520px; margin-left: auto; margin-right: auto; }

/* ================================================================
   PAGE HEADER (inner pages)
   ================================================================ */
.page-header {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.page-header h1 { margin-bottom: 0.5rem; }
.page-header p { color: var(--text-muted); font-size: 1rem; max-width: 580px; }

/* ================================================================
   CTA BANNER
   ================================================================ */
.cta-section {
  background: linear-gradient(135deg, rgba(0,212,255,0.07), rgba(124,58,237,0.09));
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  margin: 1rem 0 3rem;
}

.cta-section h2 { margin-bottom: 0.65rem; }
.cta-section p { color: var(--text-muted); margin-bottom: 1.75rem; font-size: 0.95rem; max-width: 480px; margin-left: auto; margin-right: auto; }

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  margin-top: auto;
}

.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 2rem;
}

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

.footer__brand-name { font-weight: 700; font-size: 1rem; margin-bottom: 0.2rem; }
.footer__tagline { font-size: 0.82rem; color: var(--text-muted); }

.footer__nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
}

@media (max-width: 560px) {
  .footer__nav { align-items: flex-start; flex-direction: row; flex-wrap: wrap; gap: 0.25rem 1rem; }
}

.footer__nav a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer__nav a:hover { color: var(--accent); text-decoration: none; }

.footer__copy {
  grid-column: 1 / -1;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

/* ================================================================
   UTILITIES
   ================================================================ */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
