/* ═══════════════════════════════════════════════════════
   AIML Technologies — Shared Styles
   docs.aimlapps.com
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #0a0a0f;
  --surface: #12121a;
  --surface2: #1a1a2e;
  --surface3: #22223a;
  --border: #2a2a3e;
  --text: #e8e8f0;
  --text-dim: #8888aa;
  --text-muted: #555570;
  --accent: #d4a574;
  --accent2: #7c9cff;
  --accent3: #6ee7b7;
  --accent4: #f472b6;
  --accent5: #a78bfa;
  --code-bg: #161625;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(0,0,0,0.3);
}

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

html {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body { min-height: 100vh; display: flex; flex-direction: column; }

a { color: var(--accent2); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent3); }

code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88em;
  background: var(--code-bg);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent3);
}

/* ── Top Navigation Bar — STICKY on all pages ── */
.topnav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 32px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(18, 18, 26, 0.92);
}

.topnav-brand {
  font-weight: 700;
  font-size: 15px;
  color: var(--accent);
  white-space: nowrap;
  margin-right: auto;
  text-decoration: none;
}
a.topnav-brand:hover { color: var(--accent); opacity: 0.85; }

.topnav-links { display: flex; gap: 4px; flex-wrap: wrap; }

.topnav-links a {
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 6px;
  color: var(--text-dim);
  transition: all 0.15s;
}
.topnav-links a:hover,
.topnav-links a.active {
  color: var(--text);
  background: var(--surface2);
}

/* ── Page Container ── */
.page { max-width: 1100px; margin: 0 auto; padding: 48px 32px; flex: 1; width: 100%; }

/* ── Section Header ── */
.section-header { margin-bottom: 40px; }
.section-header .breadcrumb {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.section-header .breadcrumb a { color: var(--text-dim); }
.section-header .breadcrumb a:hover { color: var(--accent2); }
.section-header h1 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.section-header p {
  font-size: 16px;
  color: var(--text-dim);
  max-width: 640px;
}

/* ── Card Grid ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.card:hover {
  border-color: var(--accent2);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.card-icon { font-size: 28px; margin-bottom: 12px; }
.card h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.card p { font-size: 14px; color: var(--text-dim); line-height: 1.5; flex: 1; }

.card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  margin-top: 12px;
  width: fit-content;
}
.card-tag.live { background: rgba(110,231,183,0.12); color: var(--accent3); }
.card-tag.coming { background: rgba(136,136,170,0.12); color: var(--text-dim); }
.card-tag.new { background: rgba(212,165,116,0.12); color: var(--accent); }

/* ── Footer ── */
.footer {
  text-align: center;
  padding: 24px;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .topnav { flex-direction: column; gap: 12px; padding: 12px 16px; }
  .topnav-brand { margin-right: 0; }
  .topnav-links { justify-content: center; }
  .page { padding: 32px 16px; }
  .section-header h1 { font-size: 28px; }
  .card-grid { grid-template-columns: 1fr; }
}
