/* ═══════════════════════════════════════════════════════
   BallersApp — Design System v4
   Black / White / #ff1f3d  |  Inter font  |  Mobile-first
═══════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --brand:        #ff1f3d;
  --brand-dark:   #d91a34;
  --brand-dim:    rgba(255,31,61,0.12);
  --brand-glow:   rgba(255,31,61,0.22);
  --bg:           #000000;
  --surface:      #0a0a0a;
  --card:         #0f0f0f;
  --card-hover:   #141414;
  --border:       #1e1e1e;
  --border-mid:   #252525;
  --hover:        #111111;
  --muted:        #2a2a2a;
  --text:         #ffffff;
  --text-sub:     #999999;
  --text-dim:     #555555;
  --radius-sm:    10px;
  --radius:       14px;
  --radius-lg:    18px;
  --radius-xl:    22px;
}

/* ══════════════════════════════════════════════════
   LIGHT MODE — flip all design tokens
══════════════════════════════════════════════════ */
html:not(.dark) {
  --bg:           #ffffff;
  --surface:      #f5f5f5;
  --card:         #ffffff;
  --card-hover:   #f8f8f8;
  --border:       #e8e8e8;
  --border-mid:   #d5d5d5;
  --hover:        #f0f0f0;
  --muted:        #e0e0e0;
  --text:         #0f0f0f;
  --text-sub:     #555555;
  --text-dim:     #888888;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
 
}

{
    
    <img src="assets/img/logo.png" class="logo-circle">
    
}

.logo-circle {
    border-radius: 50%;
}

/* ── Scrollbar ─────────────────────────────────── */
::-webkit-scrollbar { width: 3px; height: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #222; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #333; }

.scrollbar-hide { scrollbar-width: none; -ms-overflow-style: none; }
.scrollbar-hide::-webkit-scrollbar { display: none; }


/* ── Override Tailwind orange → brand ─────────── */
.text-orange-400,.text-orange-500,.text-orange-600 { color: var(--brand) !important; }
.bg-orange-500,.bg-orange-600 { background-color: var(--brand) !important; }
.hover\:bg-orange-600:hover { background-color: var(--brand-dark) !important; }
.border-orange-500 { border-color: var(--brand) !important; }

/* ══════════════════════════════════════════════════
   LAYOUT
══════════════════════════════════════════════════ */
html, body { overflow-x: hidden; max-width: 100vw; }
.main-content { width: 100%; min-width: 0; overflow-x: hidden; }
@media (min-width: 768px)  { .main-content { margin-left: 256px; width: calc(100% - 256px); } }
@media (min-width: 1280px) { .main-content { margin-left: 288px; width: calc(100% - 288px); } }

.page-wrapper { display: flex; gap: 0; width: 100%; min-width: 0; padding: 56px 0 96px; }
@media (min-width: 768px)  { .page-wrapper { padding: 0 16px 40px; } }
@media (min-width: 1280px) { .page-wrapper { padding: 0 24px 40px; } }

.page-main { flex: 1; min-width: 0; overflow-x: hidden; }

/* ══════════════════════════════════════════════════
   TYPOGRAPHY
══════════════════════════════════════════════════ */
h1,h2,h3,h4 { letter-spacing: -0.02em; }

/* ══════════════════════════════════════════════════
   POST CARD
══════════════════════════════════════════════════ */
.post-card {
  background: transparent;
  border-bottom: 1px solid var(--border);
  padding: 16px 16px 12px;
  transition: background .12s;
  cursor: pointer;
}
.post-card:hover { background: rgba(255,255,255,.015); }

/* ── Images — NEVER crop, always full aspect ──── */
.post-media {
  width: 100%;
  margin-top: 12px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.post-media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
  border-radius: var(--radius);
  background: var(--surface);
}

/* ── Action buttons ────────────────────────────── */
.action-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 10px; border-radius: 99px;
  font-size: 13px; font-weight: 500;
  transition: all .12s; color: var(--text-dim);
  cursor: pointer; border: none; background: transparent;
}
.action-btn:hover { color: var(--brand); background: var(--brand-dim); }
.action-btn.liked { color: #ef4444; }
.action-btn.liked svg { fill: currentColor; }
.action-btn.liked:hover { color: #dc2626; background: rgba(239,68,68,.08); }
.action-btn.reposted { color: #22c55e; }
.action-btn.save-btn.saved svg { fill: var(--brand); color: var(--brand); }

/* ══════════════════════════════════════════════════
   FORM ELEMENTS
══════════════════════════════════════════════════ */
.input-field {
  display: block; width: 100%;
  background: #0d0d0d; border: 1.5px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  padding: 13px 16px; font-size: 15px; font-family: inherit;
  outline: none; transition: border-color .15s, background .15s;
  -webkit-appearance: none; appearance: none;
}
.input-field:focus { border-color: var(--brand); background: #111; }
.input-field::placeholder { color: #3a3a3a; }
select.input-field { cursor: pointer; }
textarea.input-field { resize: vertical; }

/* ══════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════ */
.btn-brand {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--brand); color: #fff; font-weight: 700; border: none;
  border-radius: 99px; padding: 12px 24px; font-size: 15px; cursor: pointer;
  transition: background .15s, transform .1s, box-shadow .15s; text-decoration: none;
  white-space: nowrap;
}
.btn-brand:hover { background: var(--brand-dark); box-shadow: 0 4px 20px var(--brand-glow); }
.btn-brand:active { transform: scale(.97); }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: transparent; color: var(--text); font-weight: 600;
  border: 1.5px solid var(--border); border-radius: 99px; padding: 11px 24px;
  font-size: 15px; cursor: pointer; transition: all .15s; text-decoration: none;
}
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }

.btn-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--brand); color: #fff; font-weight: 700; border: none;
  border-radius: 99px; padding: 8px 20px; font-size: 14px; cursor: pointer;
  transition: background .15s, transform .1s; text-decoration: none;
}
.btn-pill:hover { background: var(--brand-dark); }
.btn-pill:active { transform: scale(.96); }

.btn-pill-outline {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--border); color: var(--text); font-weight: 600;
  border-radius: 99px; padding: 7px 18px; font-size: 14px; cursor: pointer;
  transition: all .15s; background: transparent; text-decoration: none;
}
.btn-pill-outline:hover { border-color: var(--brand); color: var(--brand); }

/* ══════════════════════════════════════════════════
   CARDS
══════════════════════════════════════════════════ */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
  transition: border-color .15s, background .15s;
}
.card:hover { border-color: var(--border-mid); background: var(--card-hover); }
.card-sm { border-radius: var(--radius); padding: 14px; }

/* ══════════════════════════════════════════════════
   ALERTS
══════════════════════════════════════════════════ */
.alert-error   { background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.25); color: #fca5a5; padding: 12px 16px; border-radius: var(--radius); font-size: 14px; }
.alert-success { background: rgba(34,197,94,.08);  border: 1px solid rgba(34,197,94,.25);  color: #86efac; padding: 12px 16px; border-radius: var(--radius); font-size: 14px; }
.alert-info    { background: var(--brand-dim);     border: 1px solid rgba(255,31,61,.25); color: #ff8096; padding: 12px 16px; border-radius: var(--radius); font-size: 14px; }

/* ══════════════════════════════════════════════════
   BADGES & CHIPS
══════════════════════════════════════════════════ */
.badge-brand { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: var(--brand-dim); color: var(--brand); border: 1px solid rgba(255,31,61,.25); letter-spacing: .3px; }
.badge-gray  { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: rgba(255,255,255,.06); color: var(--text-sub); border: 1px solid rgba(255,255,255,.1); }
.badge-green { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: rgba(34,197,94,.1); color: #4ade80; border: 1px solid rgba(34,197,94,.25); }
.badge-gold  { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: rgba(250,204,21,.1); color: #fbbf24; border: 1px solid rgba(250,204,21,.25); }
.team-badge  { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: var(--brand-dim); color: var(--brand); border: 1px solid rgba(255,31,61,.25); letter-spacing: .5px; text-transform: uppercase; }

/* ══════════════════════════════════════════════════
   TOAST
══════════════════════════════════════════════════ */
.toast {
  position: fixed; bottom: 80px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1a1a1a; border: 1px solid #2a2a2a;
  color: #fff; padding: 12px 20px; border-radius: var(--radius);
  font-size: 14px; font-weight: 500; z-index: 9999;
  opacity: 0; transition: all .25s; white-space: nowrap; pointer-events: none;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ══════════════════════════════════════════════════
   SKELETON / LOADING
══════════════════════════════════════════════════ */
@keyframes shimmer  { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
@keyframes slideUp  { from{transform:translateY(10px);opacity:0} to{transform:translateY(0);opacity:1} }
@keyframes slideIn  { from{transform:translateY(-6px);opacity:0} to{transform:translateY(0);opacity:1} }
@keyframes slideUp2 { from{transform:translateY(40px);opacity:0} to{transform:translateY(0);opacity:1} }
@keyframes fadeIn   { from{opacity:0} to{opacity:1} }
@keyframes heartPop { 0%{transform:scale(1)} 40%{transform:scale(1.4)} 70%{transform:scale(.9)} 100%{transform:scale(1)} }
@keyframes xpPop    { 0%{transform:scale(0) translateY(0);opacity:1} 60%{transform:scale(1.2) translateY(-20px);opacity:1} 100%{transform:scale(1) translateY(-40px);opacity:0} }
@keyframes progressFill { from{width:0%} to{width:var(--target-width)} }

.animate-slide-up  { animation: slideUp  .22s ease-out; }
.animate-slide-up2 { animation: slideUp2 .35s cubic-bezier(.16,1,.3,1); }
.animate-slide-in  { animation: slideIn  .18s ease-out; }
.animate-fade-in   { animation: fadeIn   .28s ease-out; }
.heart-pop         { animation: heartPop .3s ease-out; }

.skeleton {
  background: linear-gradient(90deg, #111 25%, #1c1c1c 50%, #111 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 8px;
}

/* ══════════════════════════════════════════════════
   PROFILE
══════════════════════════════════════════════════ */
.profile-banner { height: 160px; background: linear-gradient(135deg, #111 0%, #000 100%); position: relative; overflow: hidden; }
.profile-banner img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 768px) { .profile-banner { height: 220px; } }
.avatar-ring { outline: 3px solid var(--brand); outline-offset: 2px; }

/* ══════════════════════════════════════════════════
   REELS
══════════════════════════════════════════════════ */
#reelsFeed {
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  scroll-behavior: smooth;
  height: calc(100dvh - 57px);
}
@supports not (height: 100dvh) { #reelsFeed { height: calc(100vh - 57px); } }
.reel-card {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  height: calc(100dvh - 57px);
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════
   REWARDS / XP
══════════════════════════════════════════════════ */
.xp-bar-track { height: 6px; background: #1a1a1a; border-radius: 99px; overflow: hidden; }
.xp-bar-fill  { height: 100%; background: linear-gradient(90deg, var(--brand), #ff6b7a); border-radius: 99px; transition: width .6s cubic-bezier(.34,1.56,.64,1); }
.xp-pop       { position: fixed; z-index: 9999; font-weight: 900; font-size: 18px; color: #fbbf24; pointer-events: none; animation: xpPop .9s ease-out forwards; }
.achievement-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; transition: all .2s; }
.achievement-card.unlocked { border-color: rgba(250,204,21,.3); background: rgba(250,204,21,.04); }
.achievement-card:hover { border-color: var(--border-mid); transform: translateY(-1px); }
.quest-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; transition: all .2s; }
.quest-card:hover { border-color: var(--border-mid); background: var(--card-hover); }
.progress-bar { height: 4px; background: #1a1a1a; border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--brand); border-radius: 99px; transition: width .5s ease; }

/* ══════════════════════════════════════════════════
   POST COMPOSER TYPE PICKER
══════════════════════════════════════════════════ */
.post-type-btn {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 20px 14px; border-radius: var(--radius-lg); border: 1.5px solid var(--border);
  background: var(--card); cursor: pointer; transition: all .18s; flex: 1; color: var(--text-sub);
}
.post-type-btn:hover { border-color: var(--brand); color: var(--text); background: var(--brand-dim); }
.post-type-btn .icon  { font-size: 26px; }
.post-type-btn .label { font-size: 13px; font-weight: 700; }

/* ══════════════════════════════════════════════════
   DRAG & DROP
══════════════════════════════════════════════════ */
.drag-active { border-color: var(--brand) !important; background: var(--brand-dim) !important; }

/* ══════════════════════════════════════════════════
   ONBOARDING
══════════════════════════════════════════════════ */
.onboard-step { display: none; }
.onboard-step.active { display: flex; }
.onboard-team-chip {
  padding: 8px 14px; border-radius: 99px; border: 1.5px solid var(--border);
  background: var(--card); cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text-sub);
  transition: all .15s; white-space: nowrap;
}
.onboard-team-chip:hover, .onboard-team-chip.selected {
  border-color: var(--brand); color: var(--text); background: var(--brand-dim);
}
.onboard-player-card {
  background: var(--card); border: 1.5px solid var(--border); border-radius: var(--radius-lg);
  padding: 14px; text-align: center; cursor: pointer; transition: all .18s;
}
.onboard-player-card:hover { border-color: var(--border-mid); }
.onboard-player-card.selected { border-color: var(--brand); background: var(--brand-dim); }
.onboard-player-card .check { opacity: 0; transition: .15s; }
.onboard-player-card.selected .check { opacity: 1; }
.interest-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-radius: var(--radius); border: 1.5px solid var(--border);
  background: var(--card); cursor: pointer; font-size: 14px; font-weight: 600; color: var(--text-sub);
  transition: all .15s;
}
.interest-chip:hover, .interest-chip.selected {
  border-color: var(--brand); color: var(--text); background: var(--brand-dim);
}

/* ══════════════════════════════════════════════════
   SIDEBAR (right)
══════════════════════════════════════════════════ */
.right-sidebar { position: sticky; top: 24px; }

/* ══════════════════════════════════════════════════
   MISC UTILITIES
══════════════════════════════════════════════════ */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.divider { border: none; border-top: 1px solid var(--border); margin: 0; }