/* ===== AI Provider Hub — Stylesheet ===== */
:root {
  --bg: #0b0e14;
  --bg-soft: #11151f;
  --card: #151a26;
  --card-hover: #1a2030;
  --border: #232b3d;
  --text: #e8ecf4;
  --text-dim: #97a0b5;
  --accent: #6c8cff;
  --accent-2: #22d3a7;
  --warn: #f0b429;
  --danger: #ff6b6b;
  --radius: 14px;
}

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

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ===== Header ===== */
header.site-header {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.hero {
  position: relative; overflow: hidden;
  min-height: 220px; display: flex; align-items: center;
}
.hero .hero-bg {
  position: absolute; inset: 0;
  background-image: url("../header-waifu.jpg");
  background-size: cover; background-position: center 25%;
  filter: brightness(.45);
}
.hero .container { position: relative; padding: 36px 20px; }
.header-inner {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .logo {
  width: 42px; height: 42px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center;
  font-size: 22px; color: #fff; font-weight: 800;
}
.brand h1 {
  font-size: 1.35rem; letter-spacing: .3px;
  text-shadow: 0 2px 12px rgba(0,0,0,.8);
}
.brand p {
  font-size: .8rem; color: #cfd6e6;
  text-shadow: 0 1px 8px rgba(0,0,0,.8);
}
.badge-count {
  background: rgba(108,140,255,.2); color: #dbe4ff;
  border: 1px solid rgba(108,140,255,.45);
  padding: 4px 12px; border-radius: 999px; font-size: .8rem;
  backdrop-filter: blur(4px);
  text-shadow: 0 1px 6px rgba(0,0,0,.8);
}
.badge-count a { color: #dbe4ff; }

/* ===== Scam List ===== */
.disclaimer-scam {
  background: rgba(240,80,80,.08);
  border: 1px solid rgba(240,80,80,.35);
  border-left: 4px solid var(--danger, #d9534f);
}
.scam-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid #d9534f;
  border-radius: var(--radius);
  padding: 20px;
}
.scam-card h3 { color: #ff9d9d; margin-bottom: 6px; }
.scam-meta {
  display: flex; flex-wrap: wrap; gap: 10px;
  color: var(--text-dim); font-size: .82rem; margin-bottom: 12px;
}
.scam-reason { color: var(--text-dim); font-size: .9rem; }
.scam-reason-empty {
  color: var(--text-dim); font-style: italic; font-size: .9rem;
}

/* ===== Nav ===== */
.site-nav { background: var(--bg-soft); border-top: 1px solid var(--border); }
.nav-inner { display: flex; gap: 4px; flex-wrap: wrap; }
.nav-link {
  display: inline-block; padding: 11px 18px;
  color: var(--text-dim); font-size: .9rem; font-weight: 600;
  border-bottom: 3px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav-link:hover { color: var(--text); text-decoration: none; }
.nav-link.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ===== Legal page ===== */
.legal-page p { color: var(--text-dim); font-size: .9rem; margin-bottom: 12px; }
.legal-page b { color: var(--text); }

/* ===== Disclaimer ===== */
.disclaimer {
  background: rgba(240,180,41,.08);
  border: 1px solid rgba(240,180,41,.35);
  border-left: 4px solid var(--warn);
  border-radius: var(--radius);
  padding: 16px 20px; margin-bottom: 20px;
}
.disclaimer strong { display: block; color: var(--warn); margin-bottom: 6px; font-size: .92rem; }
.disclaimer p { color: var(--text-dim); font-size: .85rem; }
.disclaimer b { color: var(--text); }

/* ===== About Me ===== */
.about-me {
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 26px; margin-bottom: 24px;
}
.about-photo {
  width: 120px; height: 120px; object-fit: cover;
  border-radius: 50%; border: 3px solid var(--accent);
  flex-shrink: 0; box-shadow: 0 0 20px rgba(108,140,255,.25);
}
.about-body { flex: 1 1 220px; }
.about-body h2 { color: var(--accent); font-size: 1.1rem; margin-bottom: 8px; }
.about-bio { color: var(--text-dim); font-size: .88rem; margin-bottom: 12px; min-height: 20px; }
.about-links { display: flex; flex-wrap: wrap; gap: 10px; }

/* ===== Toolbar (search + filter) ===== */
.toolbar {
  display: flex; flex-wrap: wrap; gap: 12px;
  align-items: center; margin-bottom: 24px;
}
.search-box { flex: 1 1 260px; position: relative; }
.search-box input {
  width: 100%; padding: 11px 14px 11px 40px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text); font-size: .95rem;
}
.search-box input:focus { outline: none; border-color: var(--accent); }
.search-box .icon {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: var(--text-dim); font-size: 1rem; pointer-events: none;
}
select.filter {
  padding: 11px 14px; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); font-size: .9rem; cursor: pointer;
}
.result-info { color: var(--text-dim); font-size: .85rem; margin-bottom: 14px; }

/* ===== Card grid ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color .15s, transform .15s, background .15s;
}
.card:hover {
  border-color: var(--accent); background: var(--card-hover);
  transform: translateY(-3px);
}
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.card h2 { font-size: 1.08rem; }
.card h2 a { color: var(--text); }
.card .type {
  font-size: .72rem; padding: 3px 10px; border-radius: 999px;
  background: rgba(34,211,167,.12); color: var(--accent-2);
  border: 1px solid rgba(34,211,167,.3); white-space: nowrap;
}
.tagline { color: var(--text-dim); font-size: .88rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: .72rem; padding: 3px 10px; border-radius: 999px;
  background: rgba(108,140,255,.1); color: var(--accent);
  border: 1px solid rgba(108,140,255,.28);
}
.meta-row {
  display: flex; flex-wrap: wrap; gap: 14px;
  font-size: .8rem; color: var(--text-dim);
}
.meta-row b { color: var(--text); }
.card-actions { margin-top: auto; display: flex; gap: 10px; }
.btn {
  display: inline-block; padding: 8px 16px; border-radius: 10px;
  font-size: .85rem; font-weight: 600; cursor: pointer; border: none;
  transition: opacity .15s;
}
.btn:hover { opacity: .85; text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-outline {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); }

/* status dot */
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.dot.active { background: var(--accent-2); }

/* Chip status uptime otomatis */
.chip-up { background: rgba(80,200,120,.15); border-color: rgba(80,200,120,.5); color: #8ce8a8; }
.chip-down { background: rgba(240,80,80,.12); border-color: rgba(240,80,80,.5); color: #ff9d9d; }
.chip-manual { background: rgba(240,180,41,.12); border-color: rgba(240,180,41,.5); color: #ffd48a; }

.empty-state {
  grid-column: 1 / -1; text-align: center; padding: 60px 20px;
  color: var(--text-dim);
}
/* ===== Detail page ===== */
.detail-wrap { max-width: 820px; margin: 0 auto; }
.back-link { display: inline-block; margin-bottom: 18px; font-size: .9rem; }
.detail-head {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; margin-bottom: 20px;
}
.detail-head h1 { font-size: 1.6rem; margin-bottom: 6px; }
.detail-head .tagline { margin-bottom: 16px; }
.head-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.section {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 28px; margin-bottom: 20px;
}
.section h2 {
  font-size: 1.02rem; margin-bottom: 12px;
  color: var(--accent); display: flex; align-items: center; gap: 8px;
}
.section ul { list-style: none; }
.section ul li {
  padding: 7px 0 7px 26px; position: relative;
  border-bottom: 1px dashed var(--border); font-size: .92rem;
}
.section ul li:last-child { border-bottom: none; }
.section ul li::before {
  content: "✓"; position: absolute; left: 2px; color: var(--accent-2);
  font-weight: 700;
}
.section ul.notes li::before { content: "⚠"; color: var(--warn); }

.spec-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.spec-table td { padding: 10px 8px; border-bottom: 1px solid var(--border); }
.spec-table td:first-child {
  color: var(--text-dim); width: 180px; vertical-align: top;
}
.spec-table tr:last-child td { border-bottom: none; }

.catalog-source {
  color: var(--text-dim); font-size: .82rem; margin: 12px 0;
}
.model-families { display: grid; gap: 10px; margin-top: 14px; }
.model-family {
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg-soft); overflow: hidden;
}
.model-family summary {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 14px; cursor: pointer; color: var(--text); font-weight: 600;
}
.model-family summary:hover { color: var(--accent); }
.family-count {
  flex-shrink: 0; color: var(--text-dim); font-size: .78rem; font-weight: 500;
}
.section .model-list {
  max-height: 420px; overflow-y: auto; padding: 0 14px 8px;
  border-top: 1px solid var(--border);
}
.section .model-list li { padding-left: 4px; }
.section .model-list li::before { content: none; }
.model-list code {
  color: var(--accent-2); background: rgba(34,211,167,.08);
  border-radius: 5px; padding: 2px 5px; overflow-wrap: anywhere;
}
.model-meta { display: block; color: var(--text-dim); font-size: .78rem; margin-top: 2px; }

.status-banner {
  background: rgba(255,107,107,.1); border: 1px solid rgba(255,107,107,.4);
  color: #ffb3b3; border-radius: 10px; padding: 12px 16px;
  margin-bottom: 20px; font-size: .9rem;
}

.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ===== FAQ accordion ===== */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  width: 100%; display: flex; justify-content: space-between;
  align-items: center; gap: 12px; text-align: left;
  background: none; border: none; color: var(--text);
  font-size: .92rem; font-weight: 600; padding: 14px 4px;
  cursor: pointer; font-family: inherit;
}
.faq-q:hover { color: var(--accent); }
.faq-arrow {
  transition: transform .2s; color: var(--accent); flex-shrink: 0;
}
.faq-item.open .faq-arrow { transform: rotate(90deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .25s ease;
}
.faq-a p {
  color: var(--text-dim); font-size: .88rem;
  padding: 0 4px 14px;
}
.faq-item.open .faq-a { max-height: 300px; }

/* ===== Footer ===== */
footer.site-footer {
  margin-top: 48px; padding: 24px 0;
  border-top: 1px solid var(--border); color: var(--text-dim);
  font-size: .8rem; text-align: center;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  .detail-head { padding: 20px; }
  .section { padding: 18px 20px; }
}

/* ===== Animation ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.card, .detail-head, .section { animation: fadeUp .3s ease both; }


