/* ============================================================================
 * platform.css — Responsive Design System for BOOSTWHAT ALL SOSIAL MEDIA
 * Supports 320px mobile through 1440px+ desktop with zero horizontal overflow
 * ============================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg-primary: #090d16;
  --bg-secondary: #111827;
  --bg-card: #161f33;
  --border-subtle: rgba(148, 163, 184, 0.14);
  --accent-primary: #0ea5e9;
  --accent-secondary: #6366f1;
  --accent-emerald: #10b981;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: #f1f5f9;
  -webkit-font-smoothing: antialiased;
}

.font-mono-code {
  font-family: 'JetBrains Mono', monospace;
}

.brand-gradient {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 50%, #9333ea 100%);
}

.brand-text-gradient {
  background: linear-gradient(135deg, #fbbf24 0%, #f97316 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.surface-card {
  background: rgba(22, 31, 51, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.14);
  backdrop-filter: blur(12px);
}

.surface-card-hover {
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.surface-card-hover:hover {
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 12px 28px -10px rgba(14, 165, 233, 0.2);
}

.nav-pill-active {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.2) 0%, rgba(99, 102, 241, 0.25) 100%);
  border-color: rgba(56, 189, 248, 0.5) !important;
  color: #38bdf8 !important;
}

.admin-pill-active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(239, 68, 68, 0.2) 100%);
  border-color: rgba(245, 158, 11, 0.55) !important;
  color: #fbbf24 !important;
}

/* Prevent table overflow on 320px-414px screens */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #090d16;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* ============================================================================
 * VIP Sidebar & Command Center Styling
 * ============================================================================ */
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.875rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #94a3b8;
  border: 1px solid transparent;
  transition: all 0.18s ease;
  position: relative;
}

.sidebar-link:hover {
  color: #ffffff;
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(245, 158, 11, 0.2);
  transform: translateX(3px);
}

.sidebar-link-active {
  color: #fef08a !important;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18) 0%, rgba(234, 88, 12, 0.12) 100%) !important;
  border-color: rgba(245, 158, 11, 0.45) !important;
  box-shadow: 0 4px 20px -4px rgba(245, 158, 11, 0.25);
}

.sidebar-link-active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  bottom: 15%;
  width: 3.5px;
  border-radius: 0 4px 4px 0;
  background: #f59e0b;
}

.hub-card {
  background: linear-gradient(145deg, rgba(22, 31, 51, 0.9) 0%, rgba(15, 23, 42, 0.85) 100%);
  border: 1px solid rgba(148, 163, 184, 0.15);
  backdrop-filter: blur(14px);
  border-radius: 1.25rem;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.hub-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.08), transparent 70%);
  pointer-events: none;
}

.hub-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 16px 32px -10px rgba(0, 0, 0, 0.5), 0 0 20px -6px rgba(245, 158, 11, 0.15);
}

/* Horizontal Swipable / Scrollable Hub Container */
.hub-scroll-container {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 158, 11, 0.3) rgba(15, 23, 42, 0.6);
}

.hub-scroll-item {
  flex: 0 0 280px;
  scroll-snap-align: start;
}

@media (min-width: 640px) {
  .hub-scroll-item {
    flex: 0 0 310px;
  }
}

.hub-scroll-container::-webkit-scrollbar {
  height: 5px;
}
.hub-scroll-container::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.5);
  border-radius: 9999px;
}
.hub-scroll-container::-webkit-scrollbar-thumb {
  background: rgba(245, 158, 11, 0.35);
  border-radius: 9999px;
}
.hub-scroll-container::-webkit-scrollbar-thumb:hover {
  background: rgba(245, 158, 11, 0.6);
}

.pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

