/* =========================================
   QuantumPlay.info — Main Stylesheet
   ========================================= */

:root {
  --primary:    #7c3aed;
  --primary-lt: #a78bfa;
  --accent:     #06b6d4;
  --dark:       #0d0d1a;
  --dark2:      #13132b;
  --dark3:      #1a1a35;
  --card-bg:    #1e1e3a;
  --text:       #e2e8f0;
  --text-muted: #94a3b8;
  --border:     #2d2d5e;
  --success:    #10b981;
  --radius:     10px;
  --shadow:     0 4px 24px rgba(124,58,237,0.18);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

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

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

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

/* ── HEADER ── */
header {
  background: rgba(13,13,26,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.5px;
}

.logo span { color: var(--primary-lt); }
.logo img { width: 36px; height: 36px; border-radius: 6px; }

nav { display: flex; align-items: center; gap: 6px; }

nav a {
  color: var(--text-muted);
  font-size: .95rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 7px;
  transition: background .2s, color .2s;
}

nav a:hover, nav a.active {
  background: var(--dark3);
  color: var(--primary-lt);
}

.nav-cta {
  background: var(--primary) !important;
  color: #fff !important;
  padding: 8px 18px !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
}

.nav-cta:hover { background: #6d28d9 !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s;
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/hero-banner.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(.45);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,13,26,.85) 0%, rgba(124,58,237,.25) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding: 60px 20px;
  margin: 0 auto 0 calc((100vw - 1200px)/2);
}

@media (max-width: 1240px) { .hero-content { margin-left: 20px; } }

.hero-badge {
  display: inline-block;
  background: rgba(124,58,237,.3);
  border: 1px solid var(--primary);
  color: var(--primary-lt);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 18px;
  color: #fff;
}

.hero h1 em { color: var(--primary-lt); font-style: normal; }

.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 520px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all .2s;
  text-decoration: none;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: #6d28d9; color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-outline {
  background: transparent;
  color: var(--primary-lt);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }

.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #0891b2; color: #fff; transform: translateY(-2px); }

.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── SECTION TITLES ── */
.section { padding: 72px 0; }
.section-alt { background: var(--dark2); }

.section-header { text-align: center; margin-bottom: 48px; }

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
}

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

.section-label {
  display: inline-block;
  color: var(--primary-lt);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* ── CARDS ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

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

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.card-img { width: 100%; height: 200px; object-fit: cover; }

.card-body { padding: 22px; }

.card-tag {
  display: inline-block;
  background: rgba(124,58,237,.2);
  color: var(--primary-lt);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.card-tag.tag-action { background: rgba(239,68,68,.2); color: #f87171; }
.card-tag.tag-rpg    { background: rgba(245,158,11,.2); color: #fbbf24; }
.card-tag.tag-esports{ background: rgba(6,182,212,.2);  color: #22d3ee; }

.card h3 { font-size: 1.15rem; font-weight: 800; color: #fff; margin-bottom: 10px; line-height: 1.3; }

.card p { color: var(--text-muted); font-size: .93rem; margin-bottom: 16px; }

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .83rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 4px;
}

.rating { display: flex; align-items: center; gap: 4px; }
.rating .stars { color: #fbbf24; letter-spacing: 1px; }
.rating .score { font-weight: 700; color: var(--text); }

/* ── RATING STARS ── */
.star-rating { color: #fbbf24; font-size: 1.1rem; }

/* ── STATS BAR ── */
.stats-bar {
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
  text-align: center;
  margin: 48px 0;
}

.stat-item h3 { font-size: 2.2rem; font-weight: 900; color: var(--primary-lt); }
.stat-item p  { color: var(--text-muted); font-size: .9rem; margin-top: 4px; }

/* ── TOURNAMENT TABLE ── */
.tournament-table-wrap { overflow-x: auto; }

.tournament-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
}

.tournament-table th {
  background: var(--dark3);
  color: var(--primary-lt);
  font-weight: 700;
  padding: 14px 18px;
  text-align: left;
  border-bottom: 2px solid var(--primary);
  white-space: nowrap;
}

.tournament-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}

.tournament-table tr:hover td { background: var(--dark3); }

.status-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 700;
}

.status-open   { background: rgba(16,185,129,.2); color: #34d399; }
.status-soon   { background: rgba(245,158,11,.2);  color: #fbbf24; }
.status-closed { background: rgba(239,68,68,.2);   color: #f87171; }

/* ── NEWSLETTER ── */
.newsletter-section {
  background: linear-gradient(135deg, var(--dark3) 0%, rgba(124,58,237,.15) 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 56px 40px;
  text-align: center;
  margin: 0 0 72px;
}

.newsletter-section h2 { font-size: 2rem; font-weight: 900; color: #fff; margin-bottom: 12px; }
.newsletter-section p  { color: var(--text-muted); margin-bottom: 32px; max-width: 500px; margin-left: auto; margin-right: auto; }

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 13px 18px;
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: border-color .2s;
}

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

/* ── CONTACT FORM ── */
.contact-section { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }

@media (max-width: 768px) { .contact-section { grid-template-columns: 1fr; } }

.contact-info h2 { font-size: 1.8rem; font-weight: 900; color: #fff; margin-bottom: 16px; }
.contact-info p  { color: var(--text-muted); margin-bottom: 28px; }

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(124,58,237,.2);
  border: 1px solid var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-detail h4 { font-size: .85rem; color: var(--text-muted); margin-bottom: 2px; }
.contact-detail p  { color: var(--text); font-size: .95rem; margin: 0; }

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 7px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: .95rem;
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--primary); }

.form-group textarea { resize: vertical; min-height: 130px; }
.form-group select option { background: var(--dark3); }

/* ── SUCCESS MESSAGE ── */
.form-success {
  display: none;
  background: rgba(16,185,129,.15);
  border: 1px solid var(--success);
  border-radius: var(--radius);
  padding: 18px 22px;
  color: #34d399;
  font-weight: 600;
  margin-top: 16px;
  text-align: center;
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--dark2) 0%, var(--dark3) 100%);
  border-bottom: 1px solid var(--border);
  padding: 56px 20px;
  text-align: center;
}

.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; color: #fff; margin-bottom: 12px; }
.page-hero p  { color: var(--text-muted); max-width: 580px; margin: 0 auto; font-size: 1.05rem; }

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary-lt); }
.breadcrumb .sep { color: var(--border); }
.breadcrumb .current { color: var(--primary-lt); }

/* ── REVIEW DETAIL ── */
.review-detail { max-width: 820px; margin: 0 auto; }

.review-score-box {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.big-score {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--primary-lt);
  line-height: 1;
}

.score-label { font-size: .85rem; color: var(--text-muted); margin-top: 4px; }

.score-breakdown { flex: 1; min-width: 200px; }

.score-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font-size: .9rem;
}

.score-row span:first-child { width: 100px; color: var(--text-muted); flex-shrink: 0; }

.score-bar-wrap { flex: 1; height: 6px; background: var(--dark3); border-radius: 3px; overflow: hidden; }
.score-bar { height: 100%; background: var(--primary); border-radius: 3px; }
.score-row .val { width: 28px; text-align: right; font-weight: 700; }

.review-body h2 { font-size: 1.4rem; font-weight: 800; color: #fff; margin: 32px 0 12px; }
.review-body p  { color: var(--text-muted); margin-bottom: 16px; line-height: 1.8; }
.review-body ul { color: var(--text-muted); padding-left: 20px; margin-bottom: 16px; }
.review-body ul li { margin-bottom: 6px; }

/* ── ABOUT PAGE ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 768px) { .about-grid { grid-template-columns: 1fr; } }

.about-img { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.about-img img { width: 100%; height: 380px; object-fit: cover; }

.about-text h2 { font-size: 1.9rem; font-weight: 900; color: #fff; margin-bottom: 16px; }
.about-text p  { color: var(--text-muted); margin-bottom: 16px; line-height: 1.8; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.team-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: transform .25s, border-color .25s;
}

.team-card:hover { transform: translateY(-4px); border-color: var(--primary); }

.team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  margin: 0 auto 16px;
}

.team-card h4 { font-size: 1rem; font-weight: 800; color: #fff; margin-bottom: 4px; }
.team-card p  { font-size: .85rem; color: var(--primary-lt); }

/* ── POLICY PAGES ── */
.policy-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 20px 80px;
}

.policy-content h1 { font-size: 2rem; font-weight: 900; color: #fff; margin-bottom: 8px; }
.policy-content .last-updated { color: var(--text-muted); font-size: .88rem; margin-bottom: 40px; }
.policy-content h2 { font-size: 1.25rem; font-weight: 800; color: var(--primary-lt); margin: 36px 0 12px; }
.policy-content p  { color: var(--text-muted); margin-bottom: 14px; line-height: 1.8; }
.policy-content ul { color: var(--text-muted); padding-left: 22px; margin-bottom: 14px; }
.policy-content ul li { margin-bottom: 6px; line-height: 1.7; }
.policy-content a  { color: var(--primary-lt); }
.policy-content a:hover { color: var(--accent); }

/* ── COOKIE BANNER ── */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark3);
  border-top: 1px solid var(--border);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 9999;
  flex-wrap: wrap;
  box-shadow: 0 -4px 24px rgba(0,0,0,.4);
}

#cookie-banner p { color: var(--text-muted); font-size: .9rem; flex: 1; min-width: 220px; }
#cookie-banner a { color: var(--primary-lt); }

.cookie-btns { display: flex; gap: 10px; flex-wrap: wrap; }

.btn-cookie-accept {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
}

.btn-cookie-accept:hover { background: #6d28d9; }

.btn-cookie-decline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 9px 20px;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}

.btn-cookie-decline:hover { border-color: var(--text-muted); color: var(--text); }

/* ── FOOTER ── */
footer {
  background: var(--dark2);
  border-top: 1px solid var(--border);
  padding: 56px 20px 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 40px;
}

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { color: var(--text-muted); font-size: .9rem; line-height: 1.7; max-width: 280px; }

.footer-col h4 { font-size: .9rem; font-weight: 700; color: #fff; margin-bottom: 16px; letter-spacing: .5px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { color: var(--text-muted); font-size: .9rem; transition: color .2s; }
.footer-col ul li a:hover { color: var(--primary-lt); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .85rem;
  color: var(--text-muted);
}

.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--primary-lt); }

/* ── RESPONSIVE NAV ── */
@media (max-width: 820px) {
  .hamburger { display: flex; }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark2);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
  }

  nav.open { display: flex; }
  nav a { width: 100%; padding: 10px 16px; }
}

/* ── MISC ── */
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-32 { margin-bottom: 32px; }

.divider { border: none; border-top: 1px solid var(--border); margin: 48px 0; }

.highlight-box {
  background: rgba(124,58,237,.12);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  margin: 24px 0;
  color: var(--text-muted);
  font-size: .95rem;
}

/* ── FILTER TABS ── */
.filter-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.filter-tab {
  padding: 8px 20px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}

.filter-tab:hover,
.filter-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ── PAGINATION ── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.page-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text-muted);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-btn:hover,
.page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ── SEARCH BAR ── */
.search-bar {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin-bottom: 36px;
}

.search-bar input {
  flex: 1;
  padding: 11px 18px;
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: .95rem;
  outline: none;
  transition: border-color .2s;
}

.search-bar input:focus { border-color: var(--primary); }
.search-bar input::placeholder { color: var(--text-muted); }

.search-bar button {
  padding: 11px 20px;
  background: var(--primary);
  border: none;
  border-radius: var(--radius);
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
}

.search-bar button:hover { background: #6d28d9; }
