/* =============================================
   PixelRushes.pro – Main Stylesheet
   ============================================= */

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

:root {
  --bg-dark:    #0d0f1a;
  --bg-card:    #141728;
  --bg-nav:     #0a0c16ee;
  --accent:     #00e5ff;
  --accent2:    #a855f7;
  --text-main:  #e8eaf6;
  --text-muted: #8892b0;
  --border:     #1e2340;
  --radius:     10px;
  --shadow:     0 4px 24px rgba(0,0,0,.55);
  --font:       'Segoe UI', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.7;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent2); }

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

/* --- Utility --- */
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.section-title { font-size: 2rem; font-weight: 700; margin-bottom: .4rem; }
.section-sub { color: var(--text-muted); margin-bottom: 2.5rem; }
.tag {
  display: inline-block;
  background: rgba(0,229,255,.12);
  color: var(--accent);
  border: 1px solid rgba(0,229,255,.3);
  border-radius: 4px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 2px 8px;
  margin-right: 6px;
  margin-bottom: 4px;
}
.tag.purple {
  background: rgba(168,85,247,.12);
  color: var(--accent2);
  border-color: rgba(168,85,247,.3);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: none;
  transition: transform .15s, box-shadow .15s, background .2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #0099cc);
  color: #000;
  box-shadow: 0 0 20px rgba(0,229,255,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 32px rgba(0,229,255,.55); color: #000; }
.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}
.btn-outline:hover { background: var(--accent); color: #000; transform: translateY(-2px); }
.btn-purple {
  background: linear-gradient(135deg, var(--accent2), #7c3aed);
  color: #fff;
  box-shadow: 0 0 20px rgba(168,85,247,.35);
}
.btn-purple:hover { transform: translateY(-2px); box-shadow: 0 0 32px rgba(168,85,247,.55); color: #fff; }

/* --- Navigation --- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--bg-nav);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 68px;
  display: flex; align-items: center;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.3rem; font-weight: 800; color: var(--text-main);
}
.nav-logo img { width: 36px; height: 36px; border-radius: 6px; }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 28px; list-style: none; align-items: center; }
.nav-links a { color: var(--text-muted); font-weight: 500; font-size: .95rem; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-cta { margin-left: 16px; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { width: 24px; height: 2px; background: var(--text-main); border-radius: 2px; transition: .3s; }

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
  padding-top: 68px;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('images/hero-banner.jpg');
  background-size: cover; background-position: center;
  filter: brightness(.35);
  z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(13,15,26,.85) 40%, rgba(168,85,247,.15));
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 680px; }
.hero-eyebrow { color: var(--accent); font-size: .85rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 900; line-height: 1.15; margin-bottom: 1.2rem; }
.hero h1 span { color: var(--accent); }
.hero-desc { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 2rem; max-width: 560px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 3rem; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-num { font-size: 2rem; font-weight: 800; color: var(--accent); }
.stat-label { font-size: .8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; }

/* --- Section padding --- */
.section { padding: 90px 0; }
.section-alt { background: #0f1120; }

/* --- Cards grid --- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 12px 40px rgba(0,229,255,.12); }
.card-img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 20px; }
.card-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: .8rem; color: var(--text-muted); }
.card-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; color: var(--text-main); }
.card-title a { color: inherit; }
.card-title a:hover { color: var(--accent); }
.card-excerpt { font-size: .9rem; color: var(--text-muted); margin-bottom: 14px; }
.card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--border); }
.rating { display: flex; align-items: center; gap: 4px; font-weight: 700; color: #ffd700; font-size: .9rem; }

/* --- Featured review --- */
.featured-review {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.featured-review img { width: 100%; height: 380px; object-fit: cover; }
.featured-review-body { padding: 40px 40px 40px 0; }
.featured-review-body .section-title { font-size: 1.6rem; }
.score-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #0099cc);
  color: #000; font-size: 1.4rem; font-weight: 900;
  margin-bottom: 16px;
}

/* --- Tournament cards --- */
.tournament-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex; gap: 20px; align-items: flex-start;
  transition: transform .2s, box-shadow .2s;
}
.tournament-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(168,85,247,.15); }
.tournament-icon {
  width: 52px; height: 52px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent2), #7c3aed);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; flex-shrink: 0;
}
.tournament-info h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.tournament-info p { font-size: .85rem; color: var(--text-muted); margin-bottom: 8px; }
.tournament-meta { display: flex; gap: 12px; flex-wrap: wrap; }
.t-meta-item { font-size: .78rem; color: var(--text-muted); }
.t-meta-item strong { color: var(--text-main); }

/* --- Newsletter / CTA section --- */
.cta-section {
  background: linear-gradient(135deg, #0d0f1a 0%, #1a0d2e 50%, #0d1a2e 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 80px 0;
}
.cta-section .section-title { font-size: 2.2rem; }
.newsletter-form { display: flex; gap: 12px; max-width: 480px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.newsletter-form input {
  flex: 1; min-width: 220px;
  padding: 13px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: .95rem;
  outline: none;
  transition: border-color .2s;
}
.newsletter-form input:focus { border-color: var(--accent); }
.form-message { margin-top: 14px; font-size: .9rem; min-height: 22px; }
.form-message.success { color: #4ade80; }
.form-message.error { color: #f87171; }

/* --- Contact form --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-form-wrap { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 36px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; color: var(--text-muted); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-dark);
  color: var(--text-main);
  font-size: .95rem;
  font-family: var(--font);
  outline: none;
  transition: border-color .2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 130px; }
.contact-info h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 1rem; }
.contact-info p { color: var(--text-muted); margin-bottom: 1.5rem; }
.info-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.info-icon { font-size: 1.3rem; margin-top: 2px; }
.info-text strong { display: block; font-weight: 600; margin-bottom: 2px; }
.info-text span { color: var(--text-muted); font-size: .9rem; }

/* --- About page --- */
.about-hero { padding: 140px 0 80px; text-align: center; }
.about-hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 900; margin-bottom: 1rem; }
.about-hero p { color: var(--text-muted); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
.team-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 20px; text-align: center; }
.team-avatar { width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent2)); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin: 0 auto 14px; }
.team-card h4 { font-weight: 700; margin-bottom: 4px; }
.team-card span { font-size: .82rem; color: var(--accent); }
.team-card p { font-size: .85rem; color: var(--text-muted); margin-top: 8px; }

/* --- Page hero (inner pages) --- */
.page-hero {
  padding: 130px 0 60px;
  background: linear-gradient(180deg, #0f1120 0%, var(--bg-dark) 100%);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; margin-bottom: .6rem; }
.page-hero p { color: var(--text-muted); font-size: 1rem; }
.breadcrumb { font-size: .82rem; color: var(--text-muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--accent); }

/* --- Policy pages --- */
.policy-content { max-width: 820px; margin: 0 auto; padding: 60px 20px 100px; }
.policy-content h2 { font-size: 1.4rem; font-weight: 700; margin: 2.5rem 0 .8rem; color: var(--text-main); }
.policy-content h3 { font-size: 1.1rem; font-weight: 600; margin: 1.8rem 0 .6rem; color: var(--accent); }
.policy-content p { color: var(--text-muted); margin-bottom: 1rem; }
.policy-content ul { color: var(--text-muted); padding-left: 1.4rem; margin-bottom: 1rem; }
.policy-content ul li { margin-bottom: .4rem; }
.policy-content a { color: var(--accent); }
.policy-updated { font-size: .82rem; color: var(--text-muted); margin-bottom: 2rem; }

/* --- Footer --- */
footer {
  background: #080a12;
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { color: var(--text-muted); font-size: .9rem; margin: 12px 0 20px; max-width: 280px; }
.footer-col h4 { font-size: .9rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: var(--text-muted); font-size: .9rem; }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: .82rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: .82rem; color: var(--text-muted); }
.footer-links a:hover { color: var(--accent); }

/* --- Cookie banner --- */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 2000;
  background: #141728ee;
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
#cookie-banner p { font-size: .88rem; color: var(--text-muted); max-width: 700px; }
#cookie-banner p a { color: var(--accent); }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }

/* --- Stars rating display --- */
.stars { color: #ffd700; letter-spacing: 2px; }

/* --- Responsive --- */
@media (max-width: 900px) {
  .featured-review { grid-template-columns: 1fr; }
  .featured-review img { height: 260px; }
  .featured-review-body { padding: 28px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: #0d0f1aee; padding: 20px; gap: 16px; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .nav-cta { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .cards-grid { grid-template-columns: 1fr; }
}
