@import url("https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&display=swap");
/* --- Global Reset & Variables --- */
:root {
  --bg-color: #0f1011;
  --nav-bg: #1a1c1d;
  --card-bg: #1e2022;
  --text-main: #e0e6ed;
  --text-muted: #a0a5aa;
  --border-color: #2a2c2f;
  --accent-color: #3f83f8;

  /* Placement Colors */
  --gold: rgba(255, 215, 0, 0.15);
  --gold-border: #ffd700;
  --silver: rgba(192, 192, 192, 0.15);
  --silver-border: #c0c0c0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family:
    "Rajdhani",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
}

/* --- Navigation --- */
.navbar {
  background-color: var(--nav-bg);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand-home {
  text-decoration: none;
  color: var(--text-main);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: bold;
}

.nav-brand .logo {
  height: 30px;
  width: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-main);
  border-bottom: 2px solid var(--accent-color);
}

/* --- Main Layout --- */
.container {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  max-width: 1400px;
  margin: 2rem auto;
  padding: 0 2rem;
}

/* Modifier untuk halaman structure yang hanya butuh 1 kolom */
.main-content.full-width {
  grid-column: 1 / -1;
}

h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

h2 {
  font-size: 1.25rem;
  margin: 2rem 0 1rem 0;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.3rem;
}

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

/* --- Tables --- */
.wiki-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--card-bg);
  font-size: 0.9rem;
  border: 1px solid var(--border-color);
}

.wiki-table th,
.wiki-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.wiki-table th {
  background-color: var(--nav-bg);
  font-weight: 600;
}

/* Placement Modifiers (Warna Juara 1 & 2) */
.place-1 {
  background-color: var(--gold);
  border-left: 4px solid var(--gold-border);
}

.place-2 {
  background-color: var(--silver);
  border-left: 4px solid var(--silver-border);
}

/* Tabel khusus untuk file structure.html (lebih padat) */
.compact-table th,
.compact-table td {
  padding: 0.5rem;
  font-size: 0.85rem;
}

/* --- Infobox (Sidebar) --- */
.infobox {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  width: auto;
}

.infobox-header {
  background-color: #2c3034;
  text-align: center;
  padding: 1rem;
  font-weight: bold;
  font-size: 1.2rem;
}

.infobox-table td {
  /* font-size: 1px; */
}

.infobox-image {
  width: 100%;
  height: 200px;
  background-color: #151618;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
}

.infobox-image img {
  width: 100%;
  height: 200px;
}

.infobox-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.infobox-table th.section-header {
  background-color: var(--nav-bg);
  text-align: center;
  padding: 0.5rem;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.infobox-table td {
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

.infobox-table td:first-child {
  width: 40%;
  color: var(--text-muted);
}

.infosocial {
  background-color: #111111 !important; /* Warna full hitam di seluruh baris bawah */
  padding: 10px !important;
  width: 100%;
}

.infosocial-links {
  display: flex;
  justify-content: center; /* Menggeser ikon ke tengah */
  align-items: center;
  gap: 5px; /* Jarak antar ikon */
}

.infosocial-links a {
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.infosocial-links a:hover {
  opacity: 0.7;
}

.infosocial-links svg {
  width: 20px;
  height: 20px;
}

/* --- Gallery Grid --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

.gallery-item {
  background-color: var(--card-bg);
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .container {
    grid-template-columns: 1fr;
  }

  .sidebar {
    grid-row: 1; /* Pindahkan infobox ke atas di versi HP */
  }
}

/* FOOTER */
body {
  margin: 0;
  padding: 0;
}

/* Container utama footer */
.site-footer {
  background-color: #000000;
  padding-top: 80px;
  width: 100%;
}

/* Membatasi lebar konten agar rata kiri sesuai gambar */
.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  box-sizing: border-box;
}

/* Area khusus teks dan info kontak */
.footer-content {
  max-width: 460px; /* Lebar teks seperti di gambar */
  margin-bottom: 50px;
}

.footer-heading {
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin: 0 0 16px 0;
}

.divider-short {
  border: none;
  border-top: 1px solid #2a2a2a;
  margin-bottom: 20px;
}

.footer-description {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 30px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.social-links a {
  color: #ffffff;
  display: inline-block;
  transition: opacity 0.2s ease;
}

.social-links a:hover {
  opacity: 0.6;
}

.social-links svg {
  width: 20px;
  height: 20px;
}
.social-icons a:hover {
  opacity: 0.7;
}

.email-link {
  color: #a3a3a3;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 15px;
  transition: color 0.2s ease;
}

.email-link:hover {
  color: #ffffff;
}

/* Garis tipis pembatas hak cipta bawah */
.divider-full {
  border: none;
  border-top: 1px solid #1f2022;
  width: 100%;
  margin: 0;
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 40px;
  box-sizing: border-box;
}

.copyright {
  font-size: 14px;
  margin: 0;
  color: #737373; /* Warna hak cipta sedikit lebih gelap */
}

/* ==========================================
   CROSSHAIR TABLE (LIQUIPEDIA STYLE)
   ========================================== */
.crosshair-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #222222;
  color: #e0e0e0;
  font-size: 0.85rem;
  border: 1px solid #333333;
  text-align: center;
}

.crosshair-table th,
.crosshair-table td {
  border: 1px solid #333333;
  padding: 6px 8px;
}

.ch-title {
  background-color: #2a2a2a;
  font-size: 1.1rem;
  font-weight: bold;
  padding: 8px !important;
}

.ch-subheaders th {
  background-color: #1a1a1a;
  font-weight: bold;
}

/* Kotak kecil angka */
.val-box {
  background-color: #111111;
  border: 1px solid #444444;
  padding: 1px 5px;
  border-radius: 2px;
  font-family: monospace;
}

.col-green {
  background-color: #00ff2b;
  color: #000000;
  font-weight: bold;
}

.col-green .val-box {
  background-color: #000000;
  color: #ffffff;
}

.ch-updated {
  background-color: #262626;
  color: #aaaaaa;
  font-style: italic;
  font-size: 0.8rem;
}

/* Expand Bar & Button */
.ch-expand-bar {
  background-color: #1c1c1c;
  padding: 6px 12px !important;
  text-align: left;
}

.btn-toggle {
  float: right;
  background-color: #2a2a2a;
  border: 1px solid #555555;
  color: #ffffff;
  padding: 2px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
}

.btn-toggle:hover {
  background-color: #3d3d3d;
}

/* Box Preview Crosshair Kanan */
/* Box Preview Crosshair Kanan (Sesuai request lu background tetep) */
.ch-preview-cell {
  background-color: #444444 !important;
  width: 80px;
  padding: 0 !important;
  vertical-align: middle;
}

.ch-preview-box {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 75px;
}

/* 
   Bikin kanvasnya persis 24x24 px.
   Titik tengahnya ada di kordinat 12,12.
*/
.crosshair {
  position: relative;
  width: 24px;
  height: 24px;
}

/* 
   Base untuk semua garis & dot. 
   Ketebalan (hijau + outline) dikunci di sini.
*/
.crosshair span {
  position: absolute;
  background-color: #2eff2e; /* Hijau cerah ala CS */
  border: 1px solid #222222; /* Outline gelap */
  box-sizing: border-box;
}

/* Titik Tengah: Ukuran 4x4, ditaruh persis di tengah */
.ch-dot {
  width: 4px;
  height: 4px;
  top: 10px;
  left: 10px;
}

/* Garis Atas */
.ch-top {
  width: 4px;
  height: 8px;
  top: 0px;
  left: 10px;
}

/* Garis Bawah */
.ch-bottom {
  width: 4px;
  height: 8px;
  top: 16px;
  left: 10px;
}

/* Garis Kiri */
.ch-left {
  width: 8px;
  height: 4px;
  top: 10px;
  left: 0px;
}

/* Garis Kanan */
.ch-right {
  width: 8px;
  height: 4px;
  top: 10px;
  left: 16px;
}

/* Panel Tersembunyi / Expandable */
.hidden {
  display: none;
}

.ch-label {
  background-color: #1a1a1a;
  font-weight: bold;
  text-align: left;
  width: 100px;
  vertical-align: top;
  padding-top: 10px !important;
}

.ch-content {
  text-align: left;
  background-color: #181818;
}

.code-inline {
  background-color: #0d0d0d;
  border: 1px solid #333333;
  padding: 4px 8px;
  font-family: monospace;
  display: inline-block;
  color: #cccccc;
}

.code-block {
  width: 100%;
  height: 110px;
  background-color: #0d0d0d;
  border: 1px solid #333333;
  color: #cccccc;
  font-family: monospace;
  font-size: 0.8rem;
  padding: 6px;
  resize: vertical;
  box-sizing: border-box;
}

/* ==========================================
   HOME PAGE STYLES & LAYOUT
   ========================================== */
.home-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 80px 20px;
  color: #ffffff;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.team-section {
  margin-bottom: 70px;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Judul Section */
.section-title {
  text-align: center;
  font-size: 2.8rem;
  font-weight: 900;
  margin-bottom: 35px;
  letter-spacing: 1px;
  color: #ffffff;
  text-transform: uppercase;
}

/* Grid System */
/* ==========================================
   GANTI BAGIAN GRID INI DI CSS-MU
   ========================================== */
.cards-grid {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Biar numpuk rapi kalau dibuka di HP */
}

/* Memastikan Manager sejajar 2 ke samping */
.grid-manager .member-card {
  width: 280px; /* Ukuran card sedikit lebih besar */
}

/* Memastikan Roster sejajar 5 ke samping di Desktop */
.grid-roster .member-card {
  width: 220px; /* Lebar card dikunci agar muat 5 sejajar */
  flex: 0 0 220px; /* Mencegah card membesar/mengecil sendiri */
}

/* (Opsional) Penyesuaian responsif untuk HP */
@media (max-width: 1100px) {
  .grid-roster .member-card {
    flex: 0 0 190px; /* Sedikit dikecilkan di layar nanggung */
  }
}

@media (max-width: 768px) {
  .grid-roster .member-card,
  .grid-manager .member-card {
    flex: 1 1 150px; /* Biar rapi kalau di HP */
  }
}

/* ==========================================
   MEMBER CARD & ANIMATIONS
   ========================================== */
.member-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background-color: #0a0a0a;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  overflow: hidden;
  transition:
    transform 0.35s cubic-bezier(0.25, 1, 0.5, 1),
    border-color 0.35s ease,
    box-shadow 0.35s ease;
  cursor: pointer;
}

/* Card Photo Container */
.card-photo {
  width: 100%;
  /* height: 260px; */
  aspect-ratio: 1 / 1;
  background-color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.photo-placeholder {
  color: #444444;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Nama Player (Kotak Gelap) */
.card-name {
  background-color: #444444;
  color: #ffffff;
  text-align: center;
  padding: 10px 6px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: background-color 0.3s ease;
}

/* Sub-Info / Role (Kotak Agak Terang) */
.card-sub {
  background-color: #888888;
  color: #111111;
  text-align: center;
  padding: 8px 6px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: background-color 0.3s ease;
}

/* ==========================================
   HOVER EFFECTS (HOVER DYNAMISM)
   ========================================== */
.member-card:hover {
  transform: translateY(-10px);
  border-color: #3e3e4c; /* Accent green khas CS/Esports */
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.7),
    0 0 15px rgba(36, 27, 74, 0.2);
}

.member-card:hover .card-photo img {
  transform: scale(1.08); /* Zoom in foto saat di-hover */
}

.member-card:hover .card-name {
  background-color: #333333;
}

.member-card:hover .card-sub {
  background-color: #aaaaaa;
}

/* ==========================================
   KEYFRAME ANIMATIONS
   ========================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .grid-roster {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .card-photo {
    height: 200px;
  }

  .section-title {
    font-size: 2.2rem;
  }
}
