/* ============================================
   SI7ES7RIKE Wiki — Liquipedia-faithful style
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

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

body {
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  background: #1a1a2e;
  color: #cdd2da;
}

a { color: #5b9bd5; text-decoration: none; }
a:hover { color: #7ec8e3; text-decoration: underline; }

/* ---- HEADER ---- */
.wiki-header {
  background: #0d1117;
  border-bottom: 3px solid #4b830d;
  height: 48px;
  display: flex;
  align-items: center;
}
.wiki-header-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.wiki-logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: #4b830d;
  letter-spacing: 1px;
}
.wiki-logo:hover { text-decoration: none; color: #6abf1a; }
.wiki-subtitle {
  color: #6e7681;
  font-size: 0.85rem;
}

/* ---- BODY ---- */
.wiki-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
}

/* ---- PAGE TITLE ---- */
.wiki-page-title {
  font-size: 1.6rem;
  font-weight: 400;
  color: #e6edf3;
  border-bottom: 1px solid #2d333b;
  padding-bottom: 6px;
  margin-bottom: 14px;
}

.wiki-intro {
  color: #8b949e;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

/* ---- INDEX: PLAYER BUTTONS ---- */
.player-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.player-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #21262d;
  border: 1px solid #30363d;
  padding: 8px 16px;
  border-radius: 4px;
  color: #c9d1d9;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.15s;
}
.player-btn:hover {
  background: #30363d;
  border-color: #4b830d;
  color: #fff;
  text-decoration: none;
}
.player-btn-flag { font-size: 1.1rem; }

/* ---- CAROUSEL ---- */
.carousel-section {
  margin-top: 28px;
}
.carousel-section h2 {
  font-size: 1.25rem;
  font-weight: 400;
  color: #e6edf3;
  border-bottom: 1px solid #2d333b;
  padding-bottom: 6px;
  margin-bottom: 14px;
}
.carousel-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid #30363d;
  background: #000;
}
.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}
.carousel-slide {
  min-width: 100%;
  position: relative;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}
.carousel-slide img {
  max-width: 100%;
  max-height: 340px;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}
.carousel-slide .carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: #e6edf3;
  padding: 20px 16px 12px;
  font-size: 0.85rem;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  font-size: 1.6rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 2;
}
.carousel-btn:hover {
  background: rgba(75, 131, 13, 0.7);
}
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px 0;
  background: #161b22;
}
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #30363d;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.carousel-dot.active {
  background: #4b830d;
}
.carousel-empty {
  color: #8b949e;
  text-align: center;
  padding: 40px 20px;
  font-size: 0.9rem;
}

/* ============================================
   PLAYER PAGE LAYOUT
   ============================================ */
.player-layout {
  display: flex;
  flex-direction: row-reverse;
  gap: 20px;
  align-items: flex-start;
}
@media (max-width: 800px) {
  .player-layout { flex-direction: column; }
}

/* ---- INFOBOX (right sidebar like Liquipedia) ---- */
.infobox {
  width: 320px;
  min-width: 320px;
  background: #161b22;
  border: 1px solid #30363d;
  font-size: 13px;
  flex-shrink: 0;
}
@media (max-width: 800px) {
  .infobox { width: 100%; min-width: 0; }
}

.infobox-header {
  background: #4b830d;
  color: #fff;
  text-align: center;
  padding: 8px 12px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.infobox-image {
  width: 100%;
  overflow: hidden;
  background: #0d1117;
  display: flex;
  align-items: center;
  justify-content: center;
}
.infobox-image img {
  width: 100%;
  height: auto;
  display: block;
}
.infobox-image.no-photo-box {
  background: #21262d;
}
.no-photo-letter {
  font-size: 5rem;
  font-weight: 700;
  color: #30363d;
  display: none;
  align-items: center;
  justify-content: center;
}
.infobox-image.no-photo-box .no-photo-letter {
  display: flex !important;
}

.infobox-section-header {
  background: #4b830d;
  color: #fff;
  text-align: center;
  padding: 5px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.infobox-table {
  width: 100%;
  border-collapse: collapse;
}
.infobox-table tr {
  border-bottom: 1px solid #21262d;
}
.infobox-table td {
  padding: 5px 10px;
  vertical-align: top;
  font-size: 12.5px;
}
.info-label {
  color: #8b949e;
  font-weight: 600;
  white-space: nowrap;
  width: 110px;
  text-align: right;
  padding-right: 12px !important;
}
.team-value { color: #5b9bd5; font-weight: 500; }
.status-active { color: #3fb950; }
.status-inactive { color: #f85149; }
.status-content-creator { color: #d29922; }
.status-retired { color: #8b949e; }

/* History inside infobox */
.history-table td {
  font-size: 11.5px;
}
.history-dates {
  color: #8b949e;
  white-space: nowrap;
  width: 120px;
  text-align: right;
  padding-right: 10px !important;
  font-size: 11px;
}
.history-team {
  color: #5b9bd5;
}

/* Links */
.infobox-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 8px 10px;
  background: #0d1117;
  border-bottom: 1px solid #21262d;
}
.infobox-links a {
  color: #8b949e;
  font-size: 12px;
}
.infobox-links a:hover { color: #58a6ff; }

/* ---- WIKI MAIN CONTENT (left) ---- */
.wiki-main {
  flex: 1;
  min-width: 0;
}
.wiki-main .wiki-page-title {
  margin-top: 0;
}

.wiki-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #30363d;
  margin-bottom: 16px;
}
.wiki-tab {
  padding: 6px 16px;
  font-size: 0.85rem;
  color: #8b949e;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.wiki-tab.active {
  color: #c9d1d9;
  border-bottom-color: #4b830d;
  font-weight: 500;
}

.wiki-text {
  color: #c9d1d9;
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.wiki-main h2 {
  font-size: 1.25rem;
  font-weight: 400;
  color: #e6edf3;
  border-bottom: 1px solid #2d333b;
  padding-bottom: 4px;
  margin: 24px 0 12px;
}
.wiki-main h3 {
  font-size: 1rem;
  font-weight: 500;
  color: #c9d1d9;
  margin: 16px 0 8px;
}

/* ---- MAPS TAGS ---- */
.maps-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.map-tag {
  background: #21262d;
  border: 1px solid #30363d;
  padding: 3px 12px;
  border-radius: 3px;
  font-size: 0.82rem;
  color: #79c0ff;
}

/* ---- TABLES (achievements, gear) ---- */
.wiki-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 13px;
}
.wiki-table thead th {
  background: #161b22;
  color: #8b949e;
  font-weight: 600;
  text-align: left;
  padding: 7px 12px;
  border-bottom: 2px solid #30363d;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.wiki-table tbody tr {
  border-bottom: 1px solid #21262d;
  transition: background 0.1s;
}
.wiki-table tbody tr:hover {
  background: #1c2230;
}
.wiki-table tbody td {
  padding: 6px 12px;
  color: #c9d1d9;
}

/* Place badges */
.place-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  min-width: 50px;
}
.place-gold { background: #4b830d; color: #fff; }
.place-silver { background: #4a6fa5; color: #fff; }
.place-bronze { background: #8b6914; color: #fff; }
.place-other { background: #30363d; color: #c9d1d9; }

/* Gear table */
.gear-table td:first-child {
  color: #8b949e;
  font-weight: 600;
  width: 160px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 600px) {
  .infobox { font-size: 12px; }
  .wiki-table { font-size: 12px; }
}
