/* ============================================================
   assets/css/style.css — Base styles, variables, typography
   ============================================================ */

/* --- Custom properties ------------------------------------ */
:root {
  --bg:       #080a0f;
  --bg2:      #0d1018;
  --bg3:      #141822;
  --bg4:      #1c2130;

  --border:   rgba(255,255,255,0.07);
  --border2:  rgba(255,255,255,0.13);
  --border3:  rgba(255,255,255,0.2);

  --txt:      #eef0f5;
  --txt2:     rgba(238,240,245,0.55);
  --txt3:     rgba(238,240,245,0.3);

  --acc:      #5d3ef8;
  --acc-h:    #4c2fe0;
  --acc2:     #8b5cf6;
  --acc3:     #a78bfa;
  --acc-glow: rgba(93,62,248,0.4);

  --green:    #22c55e;
  --red:      #ef4444;
  --amber:    #f59e0b;
  --blue:     #3b82f6;

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --font: 'DM Sans', system-ui, sans-serif;
  --font-display: 'Space Grotesk', system-ui, sans-serif;

  --shadow: 0 4px 24px rgba(0,0,0,0.5);
  --shadow-acc: 0 4px 24px rgba(93,62,248,0.35);
}

/* --- Reset ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--txt);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

/* --- Typography ------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--txt);
  line-height: 1.25;
}

/* --- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; border: none;
  transition: background 0.15s, opacity 0.15s, transform 0.1s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-accent {
  background: var(--acc); color: #fff;
}
.btn-accent:hover { background: var(--acc-h); }

.btn-ghost {
  background: transparent; color: var(--txt2);
  border: 0.5px solid var(--border2);
}
.btn-ghost:hover { background: var(--bg3); color: var(--txt); }

.btn-full { width: 100%; justify-content: center; }
.btn-sm   { padding: 5px 12px; font-size: 12px; }

.btn-approve {
  background: rgba(34,197,94,0.15); color: #4ade80;
  border: 0.5px solid rgba(34,197,94,0.3);
}
.btn-approve:hover { background: rgba(34,197,94,0.25); }

.btn-danger {
  background: rgba(239,68,68,0.15); color: #f87171;
  border: 0.5px solid rgba(239,68,68,0.3);
}
.btn-danger:hover { background: rgba(239,68,68,0.25); }

.btn-like {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 14px; border-radius: var(--radius-sm);
  background: var(--bg3); border: 0.5px solid var(--border2);
  color: var(--txt2); font-size: 14px;
}
.btn-like.liked { color: #f87171; border-color: rgba(248,113,113,0.4); background: rgba(239,68,68,0.12); }
.btn-like:hover { border-color: var(--border3); color: var(--txt); }

/* --- Flash messages --------------------------------------- */
.flash {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px; font-size: 14px; font-weight: 500;
  border-left: 3px solid;
}
.flash-success { background: rgba(34,197,94,0.12); border-color: var(--green); color: #4ade80; }
.flash-error   { background: rgba(239,68,68,0.12);  border-color: var(--red);   color: #f87171; }
.flash-close { margin-left: auto; background: none; border: none; color: inherit; opacity: 0.6; font-size: 16px; }
.flash-close:hover { opacity: 1; }

/* --- Alerts ----------------------------------------------- */
.alert {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 16px; border-radius: var(--radius);
  font-size: 14px; margin-bottom: 1.25rem;
}
.alert-error { background: rgba(239,68,68,0.12); border: 0.5px solid rgba(239,68,68,0.3); color: #f87171; }

/* --- Widget tags ------------------------------------------ */
.widget-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600;
}
.tag-chat-widget   { background: rgba(93,62,248,0.2);  color: #a78bfa; }
.tag-chat-game     { background: rgba(34,197,94,0.15); color: #4ade80; }
.tag-brb-screen    { background: rgba(245,158,11,0.15); color: #fcd34d; }
.tag-alert         { background: rgba(239,68,68,0.15); color: #f87171; }
.tag-overlay       { background: rgba(6,182,212,0.15); color: #67e8f9; }
.tag-starting-soon { background: rgba(236,72,153,0.15); color: #f9a8d4; }
.tag-timer         { background: rgba(59,130,246,0.15); color: #93c5fd; }
.tag-cam-frame     { background: rgba(168,85,247,0.15); color: #d8b4fe; }
.tag-other         { background: rgba(255,255,255,0.08); color: var(--txt2); }

/* --- Empty state ------------------------------------------ */
.empty-state {
  text-align: center; padding: 4rem 2rem; color: var(--txt3);
}
.empty-state i { font-size: 48px; margin-bottom: 1rem; display: block; }
.empty-state p  { font-size: 15px; margin-bottom: 1rem; }

/* --- Sidebar boxes ---------------------------------------- */
.sidebar-box {
  background: var(--bg2); border: 0.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px; margin-bottom: 16px;
}
.sbox-title {
  font-size: 12px; font-weight: 600; color: var(--txt2);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 14px; display: flex; align-items: center; gap: 6px;
}
.sbox-title i { color: var(--acc3); font-size: 14px; }

.sidebar-cta {
  background: linear-gradient(135deg, rgba(93,62,248,0.18), rgba(139,92,246,0.08));
  border-color: rgba(93,62,248,0.3);
}
.sidebar-cta p { font-size: 13px; color: var(--txt3); line-height: 1.6; margin-bottom: 12px; }

/* --- Stats row -------------------------------------------- */
.stats-row { display: flex; }
.stat-item { flex: 1; text-align: center; padding: 6px 4px; }
.stat-item + .stat-item { border-left: 0.5px solid var(--border); }
.stat-num { font-size: 22px; font-weight: 800; font-family: var(--font-display); color: var(--txt); }
.stat-lbl { font-size: 11px; color: var(--txt3); margin-top: 2px; }

/* --- Category list (sidebar) ------------------------------ */
.cat-list { display: flex; flex-direction: column; gap: 2px; }
.cat-list-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 9px; border-radius: var(--radius-sm);
  font-size: 13px; color: var(--txt2); transition: background 0.1s;
}
.cat-list-item:hover, .cat-list-item.active { background: var(--bg3); color: var(--txt); }
.cat-list-item.active { color: var(--acc3); }
.cat-list-left { display: flex; align-items: center; gap: 8px; }
.cat-list-left i { font-size: 14px; }

/* --- Creator list ----------------------------------------- */
.creator-list { display: flex; flex-direction: column; gap: 4px; }
.creator-row {}
.creator-link {
  display: flex; align-items: center; gap: 9px;
  padding: 7px; border-radius: var(--radius-sm);
  transition: background 0.1s;
}
.creator-link:hover { background: var(--bg3); }
.creator-name  { font-size: 13px; font-weight: 500; color: var(--txt); }
.creator-count { font-size: 11px; color: var(--txt3); }

/* --- Avatars ---------------------------------------------- */
.av {
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-weight: 700; color: #fff;
  background: var(--acc); flex-shrink: 0; font-family: var(--font-display);
}
.av-sm  { width: 22px; height: 22px; font-size: 9px; }
.av-md  { width: 32px; height: 32px; font-size: 12px; }
.av-lg  { width: 48px; height: 48px; font-size: 16px; }

/* --- Pagination ------------------------------------------- */
.pagination {
  display: flex; align-items: center; gap: 4px;
  justify-content: center; margin-top: 2.5rem; flex-wrap: wrap;
}
.page-btn {
  min-width: 36px; height: 36px; padding: 0 10px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); font-size: 14px;
  background: var(--bg2); border: 0.5px solid var(--border2); color: var(--txt2);
  transition: all 0.15s;
}
.page-btn:hover { background: var(--bg3); color: var(--txt); }
.page-btn.active { background: var(--acc); border-color: var(--acc); color: #fff; }
.page-ellipsis { color: var(--txt3); padding: 0 6px; }

/* --- Section header --------------------------------------- */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem; gap: 12px;
}
.section-title {
  font-size: 13px; font-weight: 600; letter-spacing: 0.05em;
  color: var(--txt3); text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
}
.count-badge {
  background: var(--bg3); color: var(--txt2); font-size: 11px;
  padding: 2px 8px; border-radius: 10px; font-weight: 400;
  text-transform: none; letter-spacing: 0;
}
.sort-tabs { display: flex; gap: 4px; }
.sort-tab {
  display: flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: var(--radius-sm); font-size: 13px;
  color: var(--txt3); border: 0.5px solid transparent;
  transition: all 0.15s;
}
.sort-tab:hover { color: var(--txt2); }
.sort-tab.active { border-color: var(--border2); color: var(--txt); background: var(--bg3); }

/* --- Live dot --------------------------------------------- */
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 0 2px rgba(34,197,94,0.25);
  display: inline-block;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 2px rgba(34,197,94,0.25); }
  50% { box-shadow: 0 0 0 5px rgba(34,197,94,0.1); }
}
