/* BLXST Design Token */
:root {
  --primary: #FF6B35;
  --primary-light: #FF8A5C;
  --secondary: #00B4D8;
  --bg-light: #F8FAFC;
  --bg-white: #FFFFFF;
  --text-dark: #1E293B;
  --text-gray: #64748B;
  --border: #E2E8F0;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --radius: 12px;
  --font-sans: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Outfit', var(--font-sans);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); background: var(--bg-light); color: var(--text-dark); line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 1.5rem; }
.page-header { margin-bottom: 2rem; padding: 2rem 0; text-align: center; }
.page-title { font-family: var(--font-display); font-size: 2rem; font-weight: 900; margin-bottom: 0.5rem; }
.page-subtitle { color: var(--text-gray); }

/* Card */
.card { background: var(--bg-white); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }

/* Button */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.6rem 1.2rem; border: none; border-radius: 8px; font-weight: 600; font-size: 0.95rem; transition: all 0.2s; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-light); transform: translateY(-1px); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text-gray); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* Section */
.section { margin-bottom: 2rem; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.section-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 900; }
.section-more { color: var(--primary); font-size: 0.9rem; }

/* Tag */
.tag { display: inline-block; background: var(--secondary); color: white; padding: 0.2rem 0.6rem; border-radius: 4px; font-size: 0.75rem; font-weight: 600; }

/* Empty / Error / Loading */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--text-gray); }
.empty-state-icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.5; }
.error-state { text-align: center; padding: 3rem 1rem; color: #dc2626; }
.loading { text-align: center; padding: 2rem; color: var(--text-gray); }
.spinner { display: inline-block; width: 20px; height: 20px; border: 2px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; vertical-align: middle; margin-right: 0.5rem; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Table */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
th { font-weight: 600; color: var(--text-gray); font-size: 0.85rem; text-transform: uppercase; }
tr:hover td { background: var(--bg-light); }

/* Responsive */
@media (max-width: 768px) {
  .container { padding: 1rem; }
  .page-title { font-size: 1.5rem; }
  .cards-grid { grid-template-columns: 1fr; }
  body { padding-top: 56px !important; }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root { --bg-light: #0f172a; --bg-white: #1e293b; --text-dark: #f1f5f9; --text-gray: #94a3b8; --border: #334155; }
}
