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

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

:root {
  --primary:    #7c3aed;
  --primary-dk: #5b21b6;
  --accent:     #06b6d4;
  --dark:       #0f0f1a;
  --dark2:      #1a1a2e;
  --dark3:      #16213e;
  --card-bg:    #1e1e35;
  --text:       #e2e8f0;
  --text-muted: #94a3b8;
  --border:     #2d2d4e;
  --radius:     12px;
  --shadow:     0 4px 24px rgba(0,0,0,.5);
}

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(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary); }

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

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { color: var(--text-muted); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* --- Utility --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }

.badge {
  display: inline-block;
  padding: .25rem .75rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.badge-primary { background: var(--primary); color: #fff; }
.badge-accent  { background: var(--accent); color: #000; }
.badge-green   { background: #059669; color: #fff; }
.badge-orange  { background: #d97706; color: #fff; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform .15s, box-shadow .15s, background .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dk); color: #fff; }

.btn-accent { background: var(--accent); color: #000; }
.btn-accent:hover { background: #0891b2; color: #000; }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-sm { padding: .5rem 1.25rem; font-size: .875rem; }

/* --- Navigation --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15,15,26,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 1rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo span { color: var(--accent); }
.nav-logo svg { width: 32px; height: 32px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
}
.nav-links a {
  padding: .5rem .9rem;
  border-radius: 8px;
  color: var(--text-muted);
  font-weight: 500;
  transition: color .2s, background .2s;
}
.nav-links a:hover,
.nav-links a.active { color: #fff; background: rgba(124,58,237,.2); }

.nav-cta { margin-left: .5rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* --- Mobile Nav --- */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0; right: 0;
    background: var(--dark2);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    gap: .25rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: .75rem 1rem; }
  .nav-cta { display: none; }
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.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(124,58,237,.4) 0%, rgba(6,182,212,.15) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--accent);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.hero h1 { margin-bottom: 1.25rem; }
.hero p  { font-size: 1.15rem; margin-bottom: 2rem; color: var(--text); }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* --- Section Headers --- */
.section-header { margin-bottom: 3rem; }
.section-header .eyebrow {
  display: inline-block;
  color: var(--accent);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}
.section-header h2 { margin-bottom: .75rem; }
.section-header p  { max-width: 600px; }

/* --- Cards --- */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}
.card-img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 1.5rem; }
.card-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .75rem;
  font-size: .8rem;
  color: var(--text-muted);
}
.card-title { margin-bottom: .5rem; font-size: 1.1rem; }
.card-text  { font-size: .9rem; margin-bottom: 1rem; }

/* --- Grid Layouts --- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* --- Star Rating --- */
.stars { color: #f59e0b; font-size: 1rem; letter-spacing: 2px; }

/* --- Tournament Cards --- */
.tournament-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform .2s, border-color .2s;
}
.tournament-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.tournament-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.tournament-info h3 { margin-bottom: .25rem; }
.tournament-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.tournament-meta span { display: flex; align-items: center; gap: .35rem; }

/* --- Stats Strip --- */
.stats-strip {
  background: var(--dark3);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
@media (max-width: 700px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { color: var(--text-muted); font-size: .9rem; margin-top: .25rem; }

/* --- Newsletter --- */
.newsletter-section {
  background: linear-gradient(135deg, var(--dark3) 0%, var(--dark2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem;
  text-align: center;
}
.newsletter-form {
  display: flex;
  gap: 1rem;
  max-width: 500px;
  margin: 1.5rem auto 0;
}
.newsletter-form input {
  flex: 1;
  padding: .75rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--dark);
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: border-color .2s;
}
.newsletter-form input:focus { border-color: var(--primary); }
@media (max-width: 500px) { .newsletter-form { flex-direction: column; } }

/* --- Forms --- */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  margin-bottom: .4rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
}
.form-control {
  width: 100%;
  padding: .75rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--dark);
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  font-family: inherit;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124,58,237,.2);
}
textarea.form-control { resize: vertical; min-height: 140px; }
select.form-control { cursor: pointer; }

.form-success {
  display: none;
  background: rgba(5,150,105,.15);
  border: 1px solid #059669;
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  color: #34d399;
  margin-top: 1rem;
  text-align: center;
}

/* --- Page Hero (inner pages) --- */
.page-hero {
  background: linear-gradient(135deg, var(--dark3) 0%, var(--dark2) 100%);
  border-bottom: 1px solid var(--border);
  padding: 4rem 0 3rem;
}
.page-hero h1 { margin-bottom: .75rem; }
.page-hero p  { font-size: 1.1rem; max-width: 600px; }

/* --- Breadcrumb --- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { opacity: .4; }

/* --- Review Page --- */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .review-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .review-grid { grid-template-columns: 1fr; } }

.review-card { display: flex; flex-direction: column; }
.review-card .card-body { flex: 1; display: flex; flex-direction: column; }
.review-card .card-text { flex: 1; }

.score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 800;
  flex-shrink: 0;
}
.score-9 { background: #059669; color: #fff; }
.score-8 { background: #0891b2; color: #fff; }
.score-7 { background: #d97706; color: #fff; }

/* --- Filter Bar --- */
.filter-bar {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.filter-btn {
  padding: .4rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: .875rem;
  cursor: pointer;
  transition: all .2s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* --- About Page --- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 700px) { .team-grid { grid-template-columns: 1fr; } }

.team-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: center;
}
.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  margin: 0 auto 1rem;
}
.team-role { color: var(--accent); font-size: .85rem; font-weight: 600; margin-bottom: .5rem; }

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.contact-item:last-child { border-bottom: none; padding-bottom: 0; }
.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(124,58,237,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  color: var(--primary);
}
.contact-item h4 { font-size: .85rem; color: var(--text-muted); margin-bottom: .2rem; font-weight: 500; }
.contact-item p  { font-size: .95rem; color: var(--text); margin: 0; }

.contact-form-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

/* --- Policy Pages --- */
.policy-content {
  max-width: 860px;
  margin: 0 auto;
}
.policy-content h2 { margin: 2rem 0 .75rem; font-size: 1.4rem; }
.policy-content h3 { margin: 1.5rem 0 .5rem; font-size: 1.1rem; color: var(--accent); }
.policy-content p  { margin-bottom: 1rem; }
.policy-content ul {
  margin: .5rem 0 1rem 1.5rem;
  color: var(--text-muted);
}
.policy-content ul li { margin-bottom: .4rem; }
.policy-content .last-updated {
  display: inline-block;
  background: rgba(6,182,212,.1);
  border: 1px solid rgba(6,182,212,.3);
  border-radius: 8px;
  padding: .4rem 1rem;
  font-size: .85rem;
  color: var(--accent);
  margin-bottom: 2rem;
}

/* --- Cookie Banner --- */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--dark2);
  border-top: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  box-shadow: 0 -4px 24px rgba(0,0,0,.5);
}
#cookie-banner p { margin: 0; font-size: .9rem; color: var(--text-muted); }
#cookie-banner a { color: var(--accent); }
.cookie-btns { display: flex; gap: .75rem; flex-shrink: 0; }

/* --- Footer --- */
.footer {
  background: var(--dark2);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand p { margin-top: .75rem; font-size: .9rem; max-width: 280px; }
.footer-col h4 {
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul a { color: var(--text-muted); font-size: .9rem; }
.footer-col ul a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: .85rem;
  color: var(--text-muted);
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--accent); }

/* --- Misc --- */
.divider {
  height: 1px;
  background: var(--border);
  margin: 2rem 0;
}

.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: .9rem;
  margin-bottom: 1rem;
}
.alert-info { background: rgba(6,182,212,.1); border: 1px solid rgba(6,182,212,.3); color: var(--accent); }

/* --- Animations --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .6s ease both; }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }
