/* ========================================
   ROOTCRAFT GAMES THEME - Ana Stiller
   ======================================== */

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

:root {
  --primary: #7F77DD;
  --primary-light: #AFA9EC;
  --primary-dark: #534AB7;
  --bg-main: #0a0a0f;
  --bg-card: rgba(255,255,255,0.04);
  --bg-section: rgba(255,255,255,0.02);
  --text-main: #ffffff;
  --text-muted: rgba(255,255,255,0.55);
  --text-dim: rgba(255,255,255,0.35);
  --border: rgba(255,255,255,0.1);
  --border-accent: rgba(127,119,221,0.3);
  --radius: 8px;
  --radius-lg: 12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ---- NAVIGATION ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10,10,15,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-logo {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-main);
}

.site-logo span { color: var(--primary); }

.main-navigation ul {
  display: flex;
  gap: 2rem;
}

.main-navigation a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
  color: var(--text-main);
}

.nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s;
}

.nav-cta:hover { background: var(--primary-dark) !important; }

.menu-toggle {
  display: none;
  background: none;
  border: 0.5px solid var(--border);
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 18px;
}

/* ---- HERO ---- */
.hero-section {
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 2rem;
  position: relative;
  background: radial-gradient(ellipse at 50% -10%, rgba(127,119,221,0.18) 0%, transparent 65%);
}

.hero-badge {
  display: inline-block;
  background: rgba(127,119,221,0.12);
  border: 0.5px solid rgba(127,119,221,0.35);
  color: var(--primary-light);
  font-size: 12px;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 1.8rem;
  letter-spacing: 1px;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 1.5rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero-title .accent { color: var(--primary); }

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

.btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  padding: 13px 32px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  padding: 13px 32px;
  border-radius: var(--radius);
  font-size: 14px;
  border: 0.5px solid var(--border);
  transition: border-color 0.2s, transform 0.15s;
  display: inline-block;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary-light);
  transform: translateY(-1px);
}

.store-badges {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.store-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.05);
  border: 0.5px solid var(--border);
  padding: 9px 18px;
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text-muted);
  transition: border-color 0.2s;
}

.store-badge:hover { border-color: var(--primary); color: var(--text-main); }
.store-badge svg { width: 18px; height: 18px; fill: var(--primary-light); }

/* ---- SECTIONS ---- */
.section {
  padding: 5rem 2rem;
}

.section-alt { background: var(--bg-section); }

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: 11px;
  letter-spacing: 2.5px;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.section-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 500px;
  line-height: 1.7;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

/* ---- GAMES GRID ---- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

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

.game-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
}

.game-thumbnail {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
  overflow: hidden;
}

.game-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-thumbnail.placeholder-1 { background: linear-gradient(135deg,#1a0533,#3b1a6e); }
.game-thumbnail.placeholder-2 { background: linear-gradient(135deg,#0d2233,#1a4a6e); }
.game-thumbnail.placeholder-3 { background: linear-gradient(135deg,#1a1a0d,#3a3a15); }
.game-thumbnail.placeholder-4 { background: linear-gradient(135deg,#200d1a,#6e1a4a); }

.game-body { padding: 1.2rem; }

.game-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 3px;
}

.game-genre {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.game-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.tag {
  font-size: 10px;
  padding: 3px 9px;
  border-radius: 4px;
  background: rgba(127,119,221,0.12);
  color: var(--primary-light);
  border: 0.5px solid var(--border-accent);
}

.game-stores {
  display: flex;
  gap: 8px;
}

.store-icon {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.store-icon:hover { background: rgba(127,119,221,0.2); }
.store-icon svg { width: 14px; height: 14px; fill: var(--primary-light); }

/* ---- STATS ---- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.stat-card {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s;
}

.stat-card:hover { border-color: var(--border-accent); }

.stat-number {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--primary-light);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-dim);
}

/* ---- TEAM ---- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.team-card {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: border-color 0.2s;
}

.team-card:hover { border-color: var(--border-accent); }

.team-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  overflow: hidden;
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-avatar.av-purple { background: rgba(127,119,221,0.2); color: var(--primary-light); }
.team-avatar.av-teal { background: rgba(29,158,117,0.2); color: #5DCAA5; }
.team-avatar.av-coral { background: rgba(216,90,48,0.2); color: #F0997B; }
.team-avatar.av-pink { background: rgba(212,83,126,0.2); color: #ED93B1; }

.team-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 3px;
}

.team-role {
  font-size: 12px;
  color: var(--text-dim);
}

/* ---- CONTACT ---- */
.contact-section {
  padding: 5rem 2rem;
}

.contact-box {
  max-width: 700px;
  margin: 0 auto;
  background: rgba(127,119,221,0.06);
  border: 0.5px solid rgba(127,119,221,0.2);
  border-radius: 16px;
  padding: 3.5rem 3rem;
  text-align: center;
}

.contact-box .section-title { margin-bottom: 1rem; }
.contact-box p { color: var(--text-muted); margin-bottom: 2rem; }

.contact-form {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  background: rgba(255,255,255,0.05);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 16px;
  color: var(--text-main);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.contact-form input[type="email"]:focus {
  border-color: var(--primary);
}

.contact-form input::placeholder { color: var(--text-dim); }

/* ---- FOOTER ---- */
.site-footer {
  padding: 2rem;
  border-top: 0.5px solid var(--border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-dim);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  color: var(--text-dim);
  font-size: 18px;
  transition: color 0.2s;
}

.footer-social a:hover { color: var(--primary-light); }

/* ---- DIVIDER ---- */
hr.section-divider {
  border: none;
  border-top: 0.5px solid var(--border);
  margin: 0;
}

/* ---- WORDPRESS DEFAULTS ---- */
.widget { margin-bottom: 2rem; }
.wp-caption { max-width: 100%; }
.alignleft { float: left; margin: 0 1rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1rem; }
.aligncenter { display: block; margin: 0 auto 1rem; }
.screen-reader-text { position: absolute; left: -9999px; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .nav-inner { padding: 1rem 1.2rem; }
  .main-navigation { display: none; }
  .main-navigation.open { display: block; width: 100%; }
  .main-navigation.open ul { flex-direction: column; gap: 0.5rem; padding: 1rem 0; }
  .menu-toggle { display: block; }
  .section { padding: 3.5rem 1.2rem; }
  .hero-section { min-height: auto; padding: 4rem 1.2rem; }
  .contact-box { padding: 2.5rem 1.5rem; }
  .footer-inner { flex-direction: column; text-align: center; }
}
