/* SportChat Ultimate — Partner Showcase
   Stadium Noir · RTL-first · Dense information layout */

:root {
  --bg:        #0A0A0F;
  --bg2:       #111118;
  --bg3:       #18181F;
  --border:    #24242E;
  --lime:      #C8FF00;
  --lime-dim:  #A0CC00;
  --text:      #E8E8F0;
  --text-sub:  #8888A0;
  --text-dim:  #555568;
  --mono:      'IBM Plex Mono', monospace;
  --sans:      'Heebo', sans-serif;

  /* category colors */
  --social:    #3B82F6;
  --live:      #EF4444;
  --game:      #F59E0B;
  --ai:        #8B5CF6;
  --content:   #10B981;
  --money:     #06B6D4;
  --auth:      #F97316;
  --ux:        #EC4899;
  --infra:     #6B7280;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  direction: rtl;
}

/* ---- HEADER ---- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,15,0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--lime);
  color: #000;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1px;
  border-radius: 8px;
  display: grid;
  place-items: center;
}
.logo-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.logo-sub {
  font-size: 11px;
  color: var(--text-sub);
  font-family: var(--mono);
}
.top-nav {
  display: flex;
  gap: 4px;
  margin-inline-start: auto;
}
.top-nav a {
  color: var(--text-sub);
  text-decoration: none;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.top-nav a:hover {
  color: var(--lime);
  background: rgba(200,255,0,0.06);
}
.confidential-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}

/* ---- HERO STATS ---- */
.hero-stats {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
}
.stats-row {
  max-width: 1400px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px;
  gap: 2px;
}
.stat-num {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 600;
  color: var(--lime);
  line-height: 1;
}
.stat-lbl {
  font-size: 11px;
  color: var(--text-sub);
  white-space: nowrap;
}
.stat-sep {
  width: 1px;
  height: 32px;
  background: var(--border);
  flex-shrink: 0;
}
.stack-tags {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.stack-tags span {
  font-family: var(--mono);
  font-size: 11px;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text-sub);
  padding: 3px 8px;
  border-radius: 4px;
}

/* ---- SECTIONS ---- */
.section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 48px 24px;
  border-bottom: 1px solid var(--border);
}
.section-header {
  margin-bottom: 28px;
}
.section-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.section-desc {
  font-size: 13px;
  color: var(--text-sub);
}
.section-desc code {
  font-family: var(--mono);
  font-size: 12px;
  background: var(--bg3);
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid var(--border);
}

/* ---- CATEGORY LEGEND ---- */
.cat-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: 12px;
  color: var(--text-sub);
  margin-bottom: 24px;
  align-items: center;
}
.cat-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  margin-inline-end: 5px;
}
.cat-dot.social  { background: var(--social); }
.cat-dot.live    { background: var(--live); }
.cat-dot.game    { background: var(--game); }
.cat-dot.ai      { background: var(--ai); }
.cat-dot.content { background: var(--content); }
.cat-dot.money   { background: var(--money); }
.cat-dot.auth    { background: var(--auth); }
.cat-dot.ux      { background: var(--ux); }
.cat-dot.infra   { background: var(--infra); }

/* ---- MODULES GRID ---- */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 12px;
}
.mod-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.15s;
}
.mod-card:hover {
  border-color: #333345;
}
.mod-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.mod-head.social  { border-inline-start: 3px solid var(--social); }
.mod-head.live    { border-inline-start: 3px solid var(--live); }
.mod-head.game    { border-inline-start: 3px solid var(--game); }
.mod-head.ai      { border-inline-start: 3px solid var(--ai); }
.mod-head.content { border-inline-start: 3px solid var(--content); }
.mod-head.money   { border-inline-start: 3px solid var(--money); }
.mod-head.auth    { border-inline-start: 3px solid var(--auth); }
.mod-head.ux      { border-inline-start: 3px solid var(--ux); }
.mod-head.infra   { border-inline-start: 3px solid var(--infra); }

.mod-name {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.mod-cat {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.mod-list {
  list-style: none;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.mod-list li {
  font-size: 12.5px;
  color: var(--text-sub);
  padding-inline-start: 14px;
  position: relative;
}
.mod-list li::before {
  content: '·';
  position: absolute;
  inset-inline-start: 0;
  color: var(--text-dim);
}

/* ---- SCREENS ---- */
.screens-outer {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.screen-group {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.sg-header {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sg-count {
  font-family: var(--mono);
  font-size: 11px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--lime);
  padding: 1px 6px;
  border-radius: 3px;
}
.screen-grid {
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.screen-grid code {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-sub);
}

/* ---- SPORTS TABLE ---- */
.sports-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.sports-table thead tr {
  background: var(--bg3);
}
.sports-table th {
  padding: 10px 16px;
  text-align: start;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sub);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}
.sports-table td {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-sub);
  border-bottom: 1px solid var(--border);
}
.sports-table td:first-child {
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
}
.sports-table tr:last-child td { border-bottom: none; }
.sports-table tr:hover td { background: rgba(255,255,255,0.02); }
.primary-sport td { background: rgba(200,255,0,0.02); }
.primary-sport td:first-child { color: var(--lime-dim); }

.data-badge {
  font-family: var(--mono);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 3px;
  white-space: nowrap;
}
.live-badge    { background: rgba(239,68,68,0.15); color: #EF4444; border: 1px solid rgba(239,68,68,0.3); }
.data-badge-s  { background: rgba(200,255,0,0.1); color: var(--lime-dim); border: 1px solid rgba(200,255,0,0.2); }
.content-badge { background: rgba(107,114,128,0.2); color: #9CA3AF; border: 1px solid rgba(107,114,128,0.3); }

/* ---- TECH GRID ---- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
}
.tech-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.tc-title {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
}
.tc-rows {
  padding: 8px 0;
}
.tc-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 6px 16px;
  gap: 8px;
}
.tc-row:hover { background: rgba(255,255,255,0.02); }
.tc-row span {
  font-size: 12px;
  color: var(--text-sub);
  flex-shrink: 0;
  min-width: 90px;
}
.tc-row code {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text);
  text-align: start;
}

/* ---- LANGUAGES ---- */
.lang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}
.lang-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 7px 12px;
  font-size: 12.5px;
  color: var(--text-sub);
}
.lang-item.rtl-item {
  background: rgba(200,255,0,0.04);
  border-color: rgba(200,255,0,0.2);
  color: var(--lime-dim);
}
.lang-item em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 10px;
  background: rgba(200,255,0,0.1);
  color: var(--lime);
  padding: 1px 4px;
  border-radius: 3px;
  margin-inline-start: 6px;
}

/* ---- STATUS ---- */
.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.status-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.sc-title {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
}
.done-card   .sc-title { color: #10B981; }
.pending-card .sc-title { color: #F59E0B; }
.future-card .sc-title { color: var(--text-sub); }
.status-card ul {
  list-style: none;
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.status-card ul li {
  font-size: 12.5px;
  color: var(--text-sub);
  padding-inline-start: 14px;
  position: relative;
}
.done-card ul li::before    { content: '✓'; position: absolute; inset-inline-start: 0; color: #10B981; font-size: 11px; }
.pending-card ul li::before { content: '○'; position: absolute; inset-inline-start: 0; color: #F59E0B; font-size: 11px; }
.future-card ul li::before  { content: '·'; position: absolute; inset-inline-start: 0; color: var(--text-dim); }

/* ---- FOOTER ---- */
footer {
  border-top: 1px solid var(--border);
  background: var(--bg2);
  padding: 24px;
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-brand {
  font-weight: 700;
  font-size: 15px;
  color: var(--lime);
}
.footer-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
}
.footer-conf {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .top-nav { display: none; }
  .stats-row { justify-content: center; }
  .stat-item { padding: 8px 16px; }
  .modules-grid,
  .screens-outer,
  .tech-grid,
  .status-grid { grid-template-columns: 1fr; }
  .lang-grid { grid-template-columns: repeat(3, 1fr); }
  .sports-table td:nth-child(2) { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
