@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600;700&display=swap');

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

html, body {
  background-color: #030712;
  color: #f9fafb;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  width: 100%;
}

.font-bebas { font-family: 'Bebas Neue', sans-serif; }

@keyframes fadeSlide {
  0%   { opacity: 0; transform: translateY(40px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0)   scale(1); }
}
.animate-fadeSlide { animation: fadeSlide 1s ease-out forwards; }
.delay-300 { animation-delay: 300ms; opacity: 0; }

/* HEADER */
header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 24px;
  background-color: #111827;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
header .left { display: flex; align-items: center; gap: 16px; }
header img.logo { height: 48px; }

/* NAV */
nav ul { list-style: none; display: flex; gap: 24px; align-items: center; }
nav a {
  color: #d1d5db; text-decoration: none;
  padding: 8px 12px; border-radius: 6px;
  font-size: 15px; font-weight: 500;
  transition: color .2s, background .2s;
}
nav a:hover { color: #20a49c; }
nav a.importante { color: #fbbf24; }
nav a.importante:hover { color: #f59e0b; }

.dropdown { position: relative; }
.dropdown > a { display: inline-block; }
.dropdown-menu {
  display: none; position: absolute; top: calc(100% + 4px); left: 0;
  min-width: 200px; background: #1f2937; border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5); z-index: 100;
  padding: 4px 0;
}
.dropdown:hover .dropdown-menu,
.dropdown-menu:hover { display: block; }
.dropdown-menu a {
  display: block; padding: 10px 16px; white-space: nowrap;
  color: #d1d5db; font-size: 14px; border-radius: 0;
}
.dropdown-menu a:hover { background: #374151; }

/* BURGER */
.burger { display: none; background: none; border: none; cursor: pointer; color: white; }
.mobile-menu {
  display: none; position: absolute; top: 64px; right: 0;
  width: 200px; background: #111827; flex-direction: column;
  padding: 16px; gap: 8px; z-index: 50;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { display: block; padding: 8px 12px; color: #d1d5db; text-decoration: none; border-radius: 6px; }
.mobile-menu a:hover { background: #1f2937; }

@media (max-width: 768px) {
  nav ul { display: none; }
  .burger { display: block; }
}

/* BUTTONS */
.btn {
  display: inline-block; border-radius: 6px; font-weight: 500;
  text-decoration: none; cursor: pointer; border: none;
  transition: background .2s, color .2s;
}
.btn-sm  { padding: 6px 12px; font-size: 14px; }
.btn-md  { padding: 8px 16px; font-size: 16px; }
.btn-lg  { padding: 12px 24px; font-size: 18px; }
.btn-danger  { background: #b91c1c; color: white; }
.btn-danger:hover { background: #dc2626; }
.btn-default { background: transparent; border: 2px solid white; color: white; }
.btn-default:hover { background: white; color: black; }
.btn-teal { background: #20a49c; color: white; }
.btn-teal:hover { background: #14b9b9; }

/* HERO */
.hero {
  position: relative; width: 100%; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
}
.hero img.bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: blur(4px); transform: scale(1.05);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: rgba(3, 7, 18, 0.35);
}
.hero-content {
  position: relative; z-index: 1; color: white; padding: 16px;
}
.hero-content h1 { letter-spacing: .05em; }
.hero-badge {
  margin-top: 16px; display: inline-flex; align-items: center; gap: 8px;
  background: rgba(31,41,55,.7); padding: 8px 16px; border-radius: 8px;
  font-size: 18px;
}
.pulse { width:12px;height:12px;background:#22c55e;border-radius:50%;animation:pulse 1.5s infinite; }
@keyframes pulse { 0%,100%{opacity:1}50%{opacity:.5} }

/* SECTIONS */
section, .section { padding: 48px 24px; }
.container { max-width: 1152px; margin: 0 auto; }
.text-center { text-align: center; }
.text-teal { color: #20a49c; }

.title-part {
  display: inline-block; font-size: 2rem; font-weight: 700;
  border-bottom: 3px solid #20a49c; padding-bottom: 6px; color: white;
}

/* DESCRIPTION */
.desc-grid { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; margin-top: 24px; }
.desc-grid .text { flex: 1 1 300px; font-size: 17px; line-height: 1.8; color: #e5e7eb; }
.desc-grid .video { flex: 1 1 300px; aspect-ratio: 16/9; }
.desc-grid .video iframe { width:100%;height:100%;border-radius:8px; }

/* STATS */
.stats-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; }
.stat-card { text-align: center; max-width: 220px; }
.stat-number { font-size: 3rem; font-weight: 700; color: #20a49c; }
.stat-title { font-size: 1.3rem; font-weight: 600; margin-top: 8px; }
.stat-desc { font-size: 14px; opacity: .8; margin-top: 4px; }

/* BANNER */
.banner {
  background: linear-gradient(to right, #20a49c, #0B0838, #20a49c);
  text-align: center; padding: 40px 24px;
}
.banner p { font-size: 18px; max-width: 600px; margin: 24px auto; color: white; }

/* TEAM */
.team-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 48px; }
.team-card { text-align: center; color: white; max-width: 200px; }
.team-card img {
  width: 128px; height: 128px; border-radius: 50%; object-fit: cover;
  border: 4px solid #20a49c; box-shadow: 0 4px 16px rgba(0,0,0,.4);
}
.team-card h3 { margin-top: 12px; font-size: 18px; font-weight: 600; }
.team-card p { font-size: 13px; opacity: .8; margin-top: 4px; }
.team-divider { width: 50%; height: 1px; background: #4b5563; margin: 0 auto; }
.team-vline { width: 1px; height: 48px; background: #4b5563; margin: 0 auto; }

/* FOOTER */
footer {
  background: #111827; color: #d1d5db;
  padding: 40px 24px; border-top: 1px solid #374151;
}
.footer-inner { max-width: 1152px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.footer-brand { flex: 1 1 200px; }
.footer-brand p { margin-top: 12px; font-size: 14px; }
.footer-links { display: flex; gap: 40px; flex: 1 1 300px; justify-content: flex-end; }
.footer-col h4 { font-weight: 600; color: white; margin-bottom: 12px; }
.footer-col a { display: block; color: #d1d5db; text-decoration: none; font-size: 14px; margin-bottom: 6px; }
.footer-col a:hover { color: #20a49c; }
.footer-bottom { border-top: 1px solid #374151; margin-top: 32px; padding-top: 16px; text-align: center; font-size: 12px; color: #6b7280; }
footer img.logo { height: 48px; width: auto; }

/* DISCORD CARDS */
.discord-search { max-width: 480px; margin: 0 auto 40px; }
.discord-search input {
  width: 100%; padding: 10px 16px; border-radius: 8px;
  border: 1px solid #374151; background: #111827; color: white;
  font-size: 15px; outline: none;
}
.discord-search input:focus { border-color: #20a49c; }
.discord-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.discord-card {
  background: #111827; border-radius: 16px; padding: 16px;
  border: 1px solid #374151; display: flex; gap: 16px; align-items: center;
  transition: box-shadow .2s;
}
.discord-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.5); }
.discord-card img { width: 80px; height: 80px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.discord-card-info { flex: 1; }
.discord-card-info h3 { font-size: 16px; font-weight: 700; color: white; }
.discord-card-info p { font-size: 13px; color: #9ca3af; margin-top: 4px; }

/* REGLEMENT */
.rules-layout { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 768px) { .rules-layout { grid-template-columns: 3fr 1fr; } }

.rule-section { border-top: 1px solid #374151; padding-top: 16px; margin-top: 16px; }
.rule-section.sub { border-top: none; padding-left: 24px; margin-top: 8px; }
.rule-section h2 {
  font-size: 1.4rem; font-weight: 600; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  user-select: none; padding: 4px 0;
}
.rule-section.sub h2 { font-size: 1.15rem; }
.rule-section h2 .arrow { color: #9ca3af; font-size: 12px; }
.rule-body { padding-left: 8px; display: none; }
.rule-body.open { display: block; }
.rule-body > p { color: #d1d5db; margin-bottom: 16px; line-height: 1.7; }
.rule-body ul { list-style: none; color: #d1d5db; padding-left: 16px; }
.rule-body ul li { margin-bottom: 10px; line-height: 1.6; }
.rule-body ul li strong { color: #f9fafb; }
.alert { padding: 12px 16px; border-radius: 8px; font-size: 14px; font-weight: 500; margin-top: 16px; }
.alert-info { background: rgba(20,83,45,.4); border: 1px solid #22c55e; color: #bbf7d0; }
.alert-warning { background: rgba(127,29,29,.4); border: 1px solid #ef4444; color: #fecaca; }
.rule-body .txtend { color: #d1d5db; margin-top: 16px; line-height: 1.7; }

/* SIDEBAR */
.sidebar { position: sticky; top: 88px; }
.sidebar h3 { font-weight: 600; margin-bottom: 16px; color: white; }
.sidebar ul { list-style: none; }
.sidebar ul li { margin-bottom: 6px; }
.sidebar a { color: #9ca3af; text-decoration: none; font-size: 14px; }
.sidebar a:hover { color: #20a49c; }
.sidebar .sub-list { padding-left: 16px; margin-top: 4px; }
.sidebar-border { border-left: 1px solid #374151; padding-left: 16px; }

/* WIKI / REGLEMENT CARDS */
.cards-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.card-part {
  display: block; text-decoration: none;
  background: linear-gradient(to bottom right, #111827, #1f2937);
  border-radius: 16px; padding: 20px; width: 288px; height: 300px;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
  transition: transform .3s, box-shadow .3s;
  display: flex; flex-direction: column; align-items: center;
}
.card-part:hover { transform: scale(1.05); box-shadow: 0 16px 48px rgba(0,0,0,.5); }
.card-part h3 { font-size: 18px; font-weight: 600; color: white; text-align: center; margin-top: 12px; }
.card-part h3:hover, .card-part:hover h3 { color: #20a49c; }
.card-part p { font-size: 13px; color: #9ca3af; text-align: center; margin-top: 6px; }

/* DISCORD REGLEMENT */
.discord-rules ul { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.discord-rules li {
  background: rgba(30,27,75,.6); border-left: 4px solid #6366f1;
  padding: 16px 20px; border-radius: 12px;
  display: flex; gap: 12px; align-items: flex-start;
  color: #f3f4f6; line-height: 1.7;
}
.discord-rules li svg { flex-shrink: 0; margin-top: 2px; color: #818cf8; }

/* UTIL */
.mt-4 { margin-top: 16px; } .mt-8 { margin-top: 32px; } .mt-12 { margin-top: 48px; }
.mb-4 { margin-bottom: 16px; } .mb-8 { margin-bottom: 32px; }
.pt-12 { padding-top: 80px; }
.gap-hidden { display: none; }
