/*
  Ryphex Gaming
  Pure HTML/CSS/JS friendly stylesheet
  Theme: modern dark gaming UI with purple/cyan accents
*/

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@600;700;800&family=Rajdhani:wght@500;600;700&display=swap');

:root {
  --bg: #0a0a0f;
  --panel: #11111d;
  --card: #1a1a2e;
  --card-soft: #202039;
  --purple: #b829dd;
  --cyan: #00d4ff;
  --text: #f7f7ff;
  --muted: #a9abc0;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(0, 212, 255, 0.28);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.42);
  --radius: 18px;
  --max-width: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: 'Rajdhani', Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 5%, rgba(184, 41, 221, 0.16), transparent 30%),
    radial-gradient(circle at 85% 0%, rgba(0, 212, 255, 0.12), transparent 28%),
    linear-gradient(180deg, #0a0a0f 0%, #0e0e18 48%, #0a0a0f 100%);
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), rgba(0,0,0,.2));
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,.35) 70%, rgba(0,0,0,.72) 100%);
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
}

button,
input {
  font: inherit;
}

.container {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.navbar {
  height: 78px;
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.logo-badge {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.22), inset 0 0 22px rgba(255,255,255,.15);
  color: #06060a;
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.logo-text strong {
  display: block;
  font-family: 'Orbitron', sans-serif;
  font-size: 20px;
  letter-spacing: .6px;
  line-height: 1;
}

.logo-text span {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 700;
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}

.nav-toggle-label span {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 800;
  transition: .22s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(255, 255, 255, .05);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  border-radius: 99px;
}

/* Buttons */
.btn,
.filter-btn,
.newsletter button {
  border: 0;
  cursor: pointer;
  font-weight: 800;
  border-radius: 13px;
  padding: 13px 18px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.btn-primary,
.newsletter button,
.filter-btn.active {
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  color: #05050a;
  box-shadow: 0 0 26px rgba(0, 212, 255, .16);
}

.btn-secondary,
.filter-btn {
  color: var(--text);
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--line);
}

.btn:hover,
.filter-btn:hover,
.newsletter button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .28), 0 0 30px rgba(184, 41, 221, .18);
}

/* Hero */
.hero {
  padding: 74px 0 42px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.18fr .82fr;
  gap: 26px;
  align-items: stretch;
}

.hero-main,
.hero-side,
.page-hero,
.section,
.newsletter,
.info-box {
  background: linear-gradient(180deg, rgba(26, 26, 46, .88), rgba(17, 17, 29, .9));
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.hero-main {
  min-height: 510px;
  padding: 46px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-main::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(184,41,221,.18), transparent 45%),
    radial-gradient(circle at 85% 25%, rgba(0,212,255,.16), transparent 34%);
  pointer-events: none;
}

.hero-main::after {
  content: '';
  position: absolute;
  right: -120px;
  bottom: -170px;
  width: 380px;
  height: 380px;
  border: 1px solid rgba(0, 212, 255, .22);
  border-radius: 50%;
  box-shadow: inset 0 0 80px rgba(184,41,221,.12), 0 0 80px rgba(0,212,255,.09);
}

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

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--cyan);
  border: 1px solid rgba(0, 212, 255, .26);
  background: rgba(0, 212, 255, .065);
  border-radius: 999px;
  padding: 8px 12px;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 22px;
}

.icon-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 18px var(--cyan);
}

h1,
h2,
h3,
.section-title,
.page-title {
  font-family: 'Orbitron', sans-serif;
  line-height: 1.05;
}

h1 {
  font-size: clamp(42px, 6vw, 78px);
  max-width: 770px;
  margin-bottom: 22px;
  letter-spacing: -1px;
}

.hero-main p {
  max-width: 740px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
  margin-top: 31px;
}

.hero-side {
  padding: 24px;
  display: grid;
  gap: 16px;
}

.stat-card {
  background: rgba(10, 10, 15, .55);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
}

.stat-card small {
  display: block;
  color: var(--muted);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 800;
  margin-bottom: 8px;
}

.stat-card strong {
  color: var(--text);
  font-family: 'Orbitron', sans-serif;
  font-size: 30px;
}

.stat-card p {
  margin-top: 8px;
  font-size: 16px;
}

/* Sections */
.section,
.page-hero,
.newsletter,
.info-box {
  margin: 30px 0;
  padding: 32px;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-header p,
.page-hero p {
  color: var(--muted);
  font-size: 18px;
}

.section-title,
.page-title {
  font-size: clamp(28px, 3vw, 42px);
  margin-bottom: 8px;
}

.section-label {
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 10px;
}

.cards-3,
.guides-grid,
.games-grid,
.reviews-grid {
  display: grid;
  gap: 18px;
}

.cards-3 {
  grid-template-columns: repeat(3, 1fr);
}

.guides-grid {
  grid-template-columns: repeat(3, 1fr);
}

.games-grid {
  grid-template-columns: repeat(4, 1fr);
}

.reviews-grid {
  grid-template-columns: repeat(3, 1fr);
}

.card,
.game-card,
.guide-card,
.review-card {
  background: rgba(10, 10, 15, .62);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
  position: relative;
}

.card:hover,
.game-card:hover,
.guide-card:hover,
.review-card:hover {
  transform: translateY(-7px);
  border-color: var(--line-strong);
  box-shadow: 0 22px 46px rgba(0, 0, 0, .36), 0 0 34px rgba(0, 212, 255, .11);
}

.card-img,
.game-cover,
.review-cover {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  filter: saturate(1.08) contrast(1.05);
}

.game-cover {
  aspect-ratio: 4 / 5;
}

.card-body,
.game-body,
.guide-card,
.review-body {
  padding: 19px;
}

.tag {
  display: inline-flex;
  align-items: center;
  color: var(--cyan);
  border: 1px solid rgba(0, 212, 255, .32);
  background: rgba(0, 212, 255, .055);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.card h3,
.game-card h3,
.guide-card h3,
.review-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.card p,
.game-card p,
.guide-card p,
.review-card p,
.footer p,
.info-box p,
.info-box li {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.game-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0 16px;
}

.game-meta span {
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.game-card .btn {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 22px 0 26px;
}

/* Newsletter */
.newsletter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

.newsletter-form {
  display: flex;
  gap: 12px;
}

.newsletter input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(10, 10, 15, .72);
  color: var(--text);
  padding: 14px 16px;
  outline: none;
  font-weight: 700;
}

.newsletter input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(0, 212, 255, .08);
}

/* About/info */
.info-box ul {
  margin-left: 20px;
  margin-top: 14px;
}

.info-box li + li {
  margin-top: 8px;
}

/* Footer */
.footer {
  margin-top: 46px;
  border-top: 1px solid var(--line);
  background: rgba(10, 10, 15, .82);
  padding: 34px 0;
}

.footer-grid {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 30px;
}

.footer strong {
  font-family: 'Orbitron', sans-serif;
  font-size: 22px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.social-links a {
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 800;
  transition: .2s ease;
}

.social-links a:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.disclosure {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 15px !important;
}

/* Page-specific */
.page-hero {
  margin-top: 48px;
}

.guide-card a,
.review-card a {
  display: inline-flex;
  margin-top: 16px;
  color: var(--cyan);
  font-weight: 800;
}

.rating {
  color: var(--cyan);
  font-family: 'Orbitron', sans-serif;
  margin-bottom: 10px;
}

.hidden {
  display: none !important;
}

/* Mobile */
@media (max-width: 980px) {
  .hero-grid,
  .newsletter,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cards-3,
  .guides-grid,
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .games-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .social-links {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .navbar {
    height: auto;
    min-height: 72px;
    align-items: flex-start;
    padding: 14px 0;
    flex-wrap: wrap;
  }

  .nav-toggle-label {
    display: flex;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 0 4px;
  }

  .nav-links a {
    padding: 13px 14px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.03);
  }

  .nav-toggle:checked ~ .nav-links {
    display: flex;
  }

  .hero {
    padding-top: 36px;
  }

  .hero-main,
  .section,
  .page-hero,
  .newsletter,
  .info-box {
    padding: 24px;
    border-radius: 20px;
  }

  h1 {
    font-size: 42px;
  }

  .cards-3,
  .guides-grid,
  .games-grid,
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .section-header {
    align-items: flex-start;
    flex-direction: column;
  }

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