/**
 * Warrior AI Hub — Dedicated Homepage Stylesheet
 * Isolated exclusively for index.html / hub pages
 * Typography: Sarabun (Body) & Noto Sans Thai (Headings & Buttons)
 */

:root {
  /* Brand Color Palette */
  --hub-navy-deep: #081a2f;
  --hub-navy: #0b2545;
  --hub-navy-light: #0f2d52;
  --hub-teal: #0f766e;
  --hub-teal-light: #f0fdfa;
  --hub-teal-border: #ccfbf1;
  --hub-emerald: #059669;
  --hub-slate-body: #334155;
  --hub-slate-light: #f8fafc;
  --hub-border: #e2e8f0;
  
  /* AI Accent Colors */
  --ai-indigo: #4f46e5;
  --ai-violet: #6366f1;
  --ai-violet-light: #eef2ff;
  --ai-cyan: #0284c7;

  /* Typography */
  --font-sans: 'Sarabun', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-heading: 'Noto Sans Thai', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Transitions */
  --transition-smooth: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Typography & Smooth Scroll */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  background-color: var(--hub-slate-light);
  color: var(--hub-slate-body);
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
  letter-spacing: -0.015em;
}

button, .btn, a[class*="rounded-"], nav a, .btn-text {
  font-family: var(--font-heading);
}

code, kbd, samp, pre {
  font-family: var(--font-mono);
}

/* Hub Cards & Hover Effects */
.card-luxury {
  background: #ffffff;
  border: 1px solid var(--hub-border);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
  transition: var(--transition-smooth);
}

.card-luxury:hover {
  border-color: #cbd5e1;
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -4px rgba(15, 118, 110, 0.08);
}

.card-ai-accent:hover {
  border-color: #c7d2fe;
  box-shadow: 0 16px 32px -4px rgba(99, 102, 241, 0.1);
}

.text-title-dark {
  color: var(--hub-navy);
}

/* Badges */
.ai-badge {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(14, 165, 233, 0.08) 100%);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--ai-indigo);
}

.med-badge {
  background: var(--hub-teal-light);
  border: 1px solid var(--hub-teal-border);
  color: var(--hub-teal);
}

/* Learning Hub Category Filter & Search */
.category-btn {
  border: 1px solid transparent;
  color: #334155;
  transition: var(--transition-smooth);
}

.category-btn:hover:not(.active) {
  background-color: #f8fafc;
}

.category-btn.active {
  background-color: #0f766e !important;
  color: #ffffff !important;
  border-color: #0f766e !important;
  box-shadow: 0 8px 16px -4px rgba(15, 118, 110, 0.3) !important;
}

.category-btn.active .count-badge {
  background-color: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
}

.category-btn.active .icon-box {
  background-color: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
}

.category-btn.active .sub-desc {
  color: rgba(255, 255, 255, 0.8) !important;
}

.tag-pill {
  transition: var(--transition-smooth);
}

.tag-pill.active {
  background-color: #0f766e !important;
  color: #ffffff !important;
  font-weight: 700;
}

.hub-card {
  transition: var(--transition-smooth);
}

.hub-card.hidden-card {
  display: none !important;
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.04);
  border-radius: 9999px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(15, 118, 110, 0.2);
  border-radius: 9999px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(15, 118, 110, 0.4);
}
