/* ================================
   Bot Pages — Showcase Styles
   ================================ */

/* Hero Stats Counter */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero-stat {
  text-align: center;
  min-width: 120px;
}

.hero-stat .stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  display: block;
  font-variant-numeric: tabular-nums;
}

.hero-stat .stat-label {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 4px;
}

/* Stat Counter Animation */
.stat-number[data-target] {
  transition: color 0.3s ease;
}

/* Section Intro */
.section-intro {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 800px;
  margin-bottom: 2rem;
}

/* Bot Cards */
.bot-card {
  background: #23272a;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.bot-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--card-accent, var(--accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bot-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
  border-color: var(--card-accent, var(--accent));
}

.bot-card:hover::before {
  opacity: 1;
}

/* Bot Card Color Variants */
.bot-card.scummy { --card-accent: #f39c12; }
.bot-card.inselkom { --card-accent: #3498db; }
.bot-card.logbob { --card-accent: #2ecc71; }
.bot-card.titletom { --card-accent: #e74c3c; }
.bot-card.sam { --card-accent: #9b59b6; }
.bot-card.gamemanager { --card-accent: #1abc9c; }

.bot-card-icon {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
  display: block;
}

.bot-card h3 {
  color: var(--card-accent, var(--accent));
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}

.bot-card .bot-role {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
  display: block;
}

.bot-card p {
  color: #d0d3d8;
  font-size: 0.95rem;
  line-height: 1.6;
}

.bot-card .bot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 1rem;
}

.bot-tag {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 0.75rem;
  color: var(--muted);
}

/* Feature Highlight Cards */
.feature-card {
  background: linear-gradient(135deg, #23272a 0%, #1e2124 100%);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

.feature-card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-card h3 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.feature-card ul {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0 0;
}

.feature-card ul li {
  color: #d0d3d8;
  font-size: 0.9rem;
  padding: 4px 0;
  padding-left: 1.2rem;
  position: relative;
}

.feature-card ul li::before {
  content: '\2022';
  color: var(--accent);
  position: absolute;
  left: 0;
}

/* Architecture Diagram */
.architecture-box {
  background: #1a1d21;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 2rem;
  font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  font-size: 0.82rem;
  line-height: 1.6;
  overflow-x: auto;
  color: #a8b0bd;
  white-space: pre;
  position: relative;
}

.architecture-box .comment {
  color: #6a737d;
}

.architecture-box .highlight {
  color: var(--accent);
  font-weight: 600;
}

.architecture-box .green {
  color: #2ecc71;
}

.architecture-box .blue {
  color: #3498db;
}

/* Pipeline Flow */
.pipeline {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  justify-content: center;
  margin: 2rem 0;
}

.pipeline-step {
  background: #23272a;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  text-align: center;
  min-width: 140px;
  position: relative;
}

.pipeline-step .step-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.pipeline-step .step-label {
  font-size: 0.85rem;
  color: #d0d3d8;
  font-weight: 600;
}

.pipeline-step .step-detail {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 2px;
}

.pipeline-arrow {
  color: var(--accent);
  font-size: 1.5rem;
  padding: 0 0.3rem;
  flex-shrink: 0;
}

/* Tech Stack Badges */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 1.5rem 0;
}

.tech-badge {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.85rem;
  color: #d0d3d8;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.tech-badge:hover {
  border-color: var(--accent);
  background: rgba(243,156,18,0.08);
}

.tech-badge i {
  color: var(--accent);
}

/* GitHub Banner */
.github-banner {
  background: linear-gradient(135deg, #23272a 0%, #2c3e50 100%);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: border-color 0.3s ease;
}

.github-banner:hover {
  border-color: var(--accent);
}

.github-banner h3 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.github-banner p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.btn-github {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #24292e !important;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-github:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  color: #24292e !important;
}

/* Commands Table */
.commands-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #23272a;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
}

.commands-table thead th {
  background: #1e2124;
  color: var(--accent);
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-soft);
}

.commands-table tbody td {
  padding: 10px 16px;
  color: #d0d3d8;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.commands-table tbody tr:last-child td {
  border-bottom: none;
}

.commands-table tbody tr:hover td {
  background: rgba(243,156,18,0.04);
}

.commands-table .cmd-name {
  color: var(--accent);
  font-family: 'Cascadia Code', 'Fira Code', monospace;
  font-weight: 600;
}

.commands-table .cmd-aliases {
  color: var(--muted);
  font-size: 0.8rem;
}

/* Category Filter Tabs */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.5rem;
}

.filter-tab {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 0.85rem;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.filter-tab:hover,
.filter-tab.active {
  background: rgba(243,156,18,0.15);
  border-color: var(--accent);
  color: var(--accent);
}

/* Title Cards */
.title-category {
  background: #23272a;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.title-category h3 {
  color: var(--accent);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.title-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.title-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.85rem;
  color: #d0d3d8;
  display: flex;
  align-items: center;
  gap: 8px;
}

.title-item .title-icon {
  font-size: 1.1rem;
}

/* Crown Legend */
.crown-legend {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background: rgba(243,156,18,0.06);
  border: 1px solid rgba(243,156,18,0.15);
  border-radius: 12px;
}

.crown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #d0d3d8;
}

.crown-item span:first-child {
  font-size: 1.3rem;
}

/* Scroll Fade-In Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
.fade-in-delay-5 { transition-delay: 0.5s; }

/* Divider */
.section-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(243,156,18,0.3), rgba(255,255,255,0));
  margin: 3rem 0;
}

/* Subpage Nav */
.bot-subnav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding: 1rem;
  background: #1e2124;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
}

.bot-subnav a {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--muted) !important;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.bot-subnav a:hover,
.bot-subnav a.active {
  background: rgba(243,156,18,0.12);
  color: var(--accent) !important;
}

/* Info Boxes */
.info-box {
  background: rgba(52,152,219,0.08);
  border: 1px solid rgba(52,152,219,0.2);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  color: #d0d3d8;
  font-size: 0.9rem;
}

.info-box.warning {
  background: rgba(243,156,18,0.08);
  border-color: rgba(243,156,18,0.2);
}

.info-box strong {
  color: var(--accent);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-stats {
    gap: 1rem;
  }

  .hero-stat .stat-number {
    font-size: 2rem;
  }

  .pipeline {
    flex-direction: column;
    align-items: stretch;
  }

  .pipeline-arrow {
    transform: rotate(90deg);
    text-align: center;
    padding: 0.3rem 0;
  }

  .pipeline-step {
    min-width: auto;
  }

  .crown-legend {
    flex-direction: column;
    gap: 0.75rem;
  }

  .architecture-box {
    font-size: 0.7rem;
    padding: 1rem;
  }
}

@media (max-width: 576px) {
  .hero-stat {
    min-width: 90px;
  }

  .hero-stat .stat-number {
    font-size: 1.6rem;
  }

  .title-grid {
    grid-template-columns: 1fr;
  }
}
