/* ============================================================
   Fusion Esports League – Shared Stylesheet
   ============================================================ */

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

:root {
  --bg:        #0d0d0d;
  --bg2:       #161616;
  --bg3:       #1e1e1e;
  --accent:    #e82030;
  --accent2:   #c01828;
  --text:      #ffffff;
  --muted:     #aaaaaa;
  --border:    #2e2e2e;
  --nav-h:     80px;
  --max-w:     1200px;
  --font:      'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

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

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }

/* --- Navigation -------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.nav-inner {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 52px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-menu a {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.2s;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.lang-switcher {
  display: flex;
  gap: 8px;
  margin-left: 24px;
}

.lang-switcher a {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--muted);
  transition: color 0.2s;
}

.lang-switcher a:hover,
.lang-switcher a.active {
  color: var(--accent);
}

.lang-switcher span { color: var(--border); }

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: 0.3s;
}

/* --- Hero Section ------------------------------------------ */
.hero {
  min-height: 100vh;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding-top: var(--nav-h);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.35) 50%,
    rgba(0,0,0,0.75) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
  padding: 40px 24px;
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 24px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.7);
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.88);
  max-width: 640px;
  margin: 0 auto 32px;
}

/* --- Buttons ----------------------------------------------- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--accent);
}

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

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-1px);
  color: #fff;
}

/* --- Section Layout ---------------------------------------- */
.section {
  padding: 80px 24px;
}

.section-dark { background: var(--bg); }
.section-mid  { background: var(--bg2); }
.section-alt  { background: var(--bg3); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
  line-height: 1.1;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 48px;
  max-width: 640px;
}

.accent-line {
  display: inline-block;
  width: 56px;
  height: 3px;
  background: var(--accent);
  margin-bottom: 20px;
}

/* --- Two-column layout ------------------------------------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

/* --- Cards ------------------------------------------------- */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s;
}

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

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

.card-body { padding: 24px; }

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

/* --- Game Cards (homepage) --------------------------------- */
.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.game-card {
  position: relative;
  min-height: 420px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  cursor: pointer;
}

.game-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.1) 60%);
  transition: background 0.3s;
}

.game-card:hover::before {
  background: linear-gradient(to top, rgba(232,32,48,0.75) 0%, rgba(0,0,0,0.3) 70%);
}

.game-card-content {
  position: relative;
  z-index: 1;
  padding: 32px 28px;
  width: 100%;
}

.game-card-title {
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.game-card-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
}

/* --- Table ------------------------------------------------- */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 0.95rem;
}

.schedule-table th {
  background: var(--accent);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1px;
}

.schedule-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.schedule-table tr:nth-child(even) td { background: rgba(255,255,255,0.03); }
.schedule-table tr:last-child td { border-bottom: none; }
.schedule-table tr:hover td { background: rgba(232,32,48,0.06); }

.finals-row td { color: var(--accent); font-weight: 700; }

/* --- Partners ---------------------------------------------- */
.partners-section {
  padding: 60px 24px;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.partners-title {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 40px;
}

.partners-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: center;
  max-width: var(--max-w);
  margin: 0 auto;
}

.partner-logo {
  height: 56px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.7;
  transition: opacity 0.2s, filter 0.2s;
}

.partner-logo:hover {
  opacity: 1;
  filter: brightness(0) invert(1) sepia(0.3) saturate(2) hue-rotate(310deg);
}

/* --- Info Boxes -------------------------------------------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin: 40px 0;
}

.info-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 24px;
  border-radius: 2px;
}

.info-box h3 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 8px;
}

.info-box p, .info-box li {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
}

.info-box ul { list-style: none; }
.info-box li::before { content: '→ '; color: var(--accent); }

/* --- Prizes ------------------------------------------------- */
.prizes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin: 40px 0;
}

.prize-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  border-radius: 4px;
}

.prize-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.prize-place {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.prize-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.prize-card p { font-size: 0.9rem; color: var(--muted); }

/* --- Schedule Timeline ------------------------------------- */
.timeline {
  position: relative;
  padding-left: 32px;
  margin: 32px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--accent);
  opacity: 0.4;
}

.timeline-item {
  position: relative;
  margin-bottom: 28px;
  padding-left: 16px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline-date {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.timeline-title { font-weight: 700; margin-bottom: 2px; }
.timeline-desc { font-size: 0.9rem; color: var(--muted); }

/* --- Rules page -------------------------------------------- */
.rules-section h2 {
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 40px 0 16px;
  color: var(--accent);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.rules-section h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 24px 0 8px;
}

.rules-section p, .rules-section li {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 12px;
  line-height: 1.7;
}

.rules-section ul, .rules-section ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.rules-section li { margin-bottom: 6px; }

/* --- Contact Section --------------------------------------- */
.contact-section {
  padding: 80px 24px;
  background: var(--bg2);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.contact-form label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 14px;
  font-size: 0.95rem;
  font-family: var(--font);
  border-radius: 2px;
  margin-bottom: 20px;
  transition: border-color 0.2s;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
}

.contact-form textarea { min-height: 140px; resize: vertical; }

.contact-info h3 {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 16px;
}

.contact-info p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 24px;
  line-height: 1.7;
}

.social-links {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.social-link img {
  width: 36px;
  height: 36px;
  filter: brightness(0) invert(1);
  opacity: 0.7;
  transition: opacity 0.2s, transform 0.2s;
}

.social-link:hover img {
  opacity: 1;
  transform: translateY(-2px);
}

/* --- Image Banner ------------------------------------------ */
.img-banner {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.img-banner-wide {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

/* --- Movie Poster ------------------------------------------ */
.poster-wrap {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  margin: 40px 0;
}

.poster-img {
  width: 280px;
  flex-shrink: 0;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}

/* --- Formats Grid ------------------------------------------ */
.formats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 32px 0;
}

.format-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 32px;
  border-radius: 4px;
}

.format-tag {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 12px;
}

.format-tag.casual { background: #2a6e3f; }

.format-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; }
.format-card p { font-size: 0.9rem; color: rgba(255,255,255,0.8); }

/* --- Maps Grid --------------------------------------------- */
.maps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 32px 0;
}

.map-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: 4px;
  text-align: center;
}

.map-card h4 { font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.map-card p { font-size: 0.85rem; color: var(--muted); }

/* --- Imprint ----------------------------------------------- */
.legal-section p { font-size: 0.95rem; color: rgba(255,255,255,0.8); margin-bottom: 12px; line-height: 1.7; }
.legal-section address { font-style: normal; }

/* --- Footer ------------------------------------------------ */
.footer {
  background: #080808;
  border-top: 1px solid var(--border);
  padding: 60px 24px 32px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 48px;
}

.footer-logo img {
  height: 80px;
  width: auto;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--accent); }

.footer-social {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  align-items: center;
}

.footer-social a img {
  width: 32px;
  height: 32px;
  filter: brightness(0) invert(1);
  opacity: 0.6;
  transition: opacity 0.2s, transform 0.2s;
}

.footer-social a:hover img {
  opacity: 1;
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.5px;
}

/* --- Utility ----------------------------------------------- */
.text-accent { color: var(--accent); }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }
.mt-40 { margin-top: 40px; }
.mt-8 { margin-top: 8px; }

/* --- Responsive -------------------------------------------- */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .two-col.reverse { direction: ltr; }
  .game-grid { grid-template-columns: 1fr; }
  .game-card { min-height: 300px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-top { grid-template-columns: 1fr; text-align: center; }
  .footer-social { justify-content: center; }
  .formats-grid { grid-template-columns: 1fr; }
  .maps-grid { grid-template-columns: 1fr 1fr; }
  .poster-wrap { flex-direction: column; }
  .poster-img { width: 100%; max-width: 320px; }
}

@media (max-width: 640px) {
  .nav-menu {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(10,10,10,0.98);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }
  .nav-menu.open { display: flex; }
  .nav-toggle { display: flex; }
  .lang-switcher { margin-left: 0; }
  .hero h1 { font-size: 2rem; }
  .maps-grid { grid-template-columns: 1fr; }
  .schedule-table { font-size: 0.82rem; }
  .schedule-table th, .schedule-table td { padding: 8px 10px; }
  .section { padding: 56px 16px; }
}
