/* BallersApp — Global Styles v3 */
/* Brand: black bg / white text / #ff1f3d accent */

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

:root {
  --brand:      #ff1f3d;
  --brand-dark: #d91a34;
  --brand-glow: rgba(255,31,61,0.2);
  --bg:         #000000;
  --surface:    #0d0d0d;
  --card:       #111111;
  --border:     #1e1e1e;
  --hover:      #161616;
  --muted:      #2a2a2a;
  --text:       #ffffff;
  --sub:        #888888;
  --sub2:       #555555;
}

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: 'Inter', system-ui, sans-serif; }

/* ── Scrollbar ─────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #222; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #333; }

/* ── Override Tailwind orange → brand red ──────── */
.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; }

/* ── Post card ─────────────────────────────────── */
.post-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  transition: border-color .15s, background .15s;
}
.post-card:hover { border-color: #252525; background: #141414; }

/* ── Action buttons ────────────────────────────── */
.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 500;
  transition: all .15s;
  color: #555;
  cursor: pointer;
  border: none;
  background: transparent;
}
.action-btn:hover { color: var(--brand); background: rgba(255,31,61,.07); }
.action-btn.liked { color: #ef4444; }
.action-btn.liked svg { fill: currentColor; }
.action-btn.liked:hover { color: #dc2626; background: rgba(239,68,68,.07); }
.action-btn.reposted { color: #22c55e; }

/* ── Input ─────────────────────────────────────── */
.input-field {
  display: block;
  width: 100%;
  background: #111;
  border: 1.5px solid #2a2a2a;
  border-radius: 12px;
  color: #fff;
  padding: 13px 16px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s, background .15s;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
}
.input-field:focus { border-color: var(--brand); background: #161616; }
.input-field::placeholder { color: #444; }
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: 12px; padding: 13px 24px; font-size: 15px; cursor: pointer;
  transition: background .15s, transform .1s; text-decoration: none;
}
.btn-brand:hover { background: var(--brand-dark); }
.btn-brand:active { transform: scale(.97); }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: transparent; color: #fff; font-weight: 600;
  border: 1.5px solid #2a2a2a; border-radius: 12px; padding: 12px 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 18px; 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(.95); }

.btn-pill-outline {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid #2a2a2a; color: #fff; 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); }

/* ── Alert ─────────────────────────────────────── */
.alert-error   { background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.3); color: #fca5a5; padding: 12px 16px; border-radius: 12px; font-size: 14px; }
.alert-success { background: rgba(34,197,94,.08);  border: 1px solid rgba(34,197,94,.3);  color: #86efac; padding: 12px 16px; border-radius: 12px; font-size: 14px; }
.alert-info    { background: rgba(255,31,61,.08);  border: 1px solid rgba(255,31,61,.25); color: #ff8096; padding: 12px 16px; border-radius: 12px; font-size: 14px; }

/* ── Team badge ────────────────────────────────── */
.team-badge {
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px;
  letter-spacing: .5px; text-transform: uppercase;
  background: rgba(255,31,61,.1); color: var(--brand); border: 1px solid rgba(255,31,61,.25);
}

/* ── 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: 12px;
  font-size: 14px; font-weight: 500; z-index: 9999;
  opacity: 0; transition: all .3s; white-space: nowrap; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Animations ────────────────────────────────── */
@keyframes slideUp  { from { transform: translateY(12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes slideIn  { from { transform: translateY(-8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes fadeIn   { from { opacity: 0; } to { opacity: 1; } }
@keyframes shimmer  { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes heartPop { 0%{transform:scale(1)} 40%{transform:scale(1.35)} 70%{transform:scale(.9)} 100%{transform:scale(1)} }

.animate-slide-up { animation: slideUp .25s ease-out; }
.animate-slide-in { animation: slideIn .2s ease-out; }
.animate-fade-in  { animation: fadeIn  .3s ease-out; }
.heart-pop        { animation: heartPop .3s ease-out; }

.skeleton {
  background: linear-gradient(90deg, #111 25%, #1a1a1a 50%, #111 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

/* ── Layout ────────────────────────────────────── */
@media (min-width: 768px)  { .main-content { margin-left: 256px; } }
@media (min-width: 1280px) { .main-content { margin-left: 288px; } }

.app-layout { display: flex; min-height: 100vh; }

.right-sidebar { display: none; }
@media (min-width: 1024px) { .right-sidebar { display: block; width: 320px; flex-shrink: 0; } }

/* ── Profile banner ────────────────────────────── */
.profile-banner { height: 180px; background: linear-gradient(135deg, #111 0%, #000 100%); position: relative; overflow: hidden; }
@media (min-width: 768px) { .profile-banner { height: 240px; } }

/* ── Avatar ring ───────────────────────────────── */
.avatar-ring { outline: 3px solid var(--brand); outline-offset: 2px; }

/* ── Gradient text ─────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--brand), #ff6b7a);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ── Settings nav ──────────────────────────────── */
.settings-nav-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border-radius: 12px; color: #888; font-weight: 500; font-size: 15px;
  text-decoration: none; transition: all .15s;
}
.settings-nav-item:hover { background: #111; color: #fff; }
.settings-nav-item.active { background: rgba(255,31,61,.08); color: var(--brand); font-weight: 700; }

/* ── Admin badge ───────────────────────────────── */
.admin-badge {
  font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 99px;
  text-transform: uppercase; letter-spacing: .5px;
  background: rgba(255,31,61,.15); color: var(--brand); border: 1px solid rgba(255,31,61,.3);
}

/* ── Legal content ─────────────────────────────── */
.legal-content h2 { font-size: 1.25rem; font-weight: 700; margin: 2rem 0 .75rem; color: #fff; }
.legal-content p  { color: #888; line-height: 1.7; margin-bottom: 1rem; font-size: 15px; }
.legal-content a  { color: var(--brand); text-decoration: underline; }

/* ── Notifications ─────────────────────────────── */
.notif-item {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px;
  border-bottom: 1px solid #0d0d0d; transition: background .15s;
}
.notif-item:hover { background: #080808; }
.notif-item.unread { background: rgba(255,31,61,.03); border-left: 3px solid var(--brand); }
.notif-item.unread:hover { background: rgba(255,31,61,.05); }
.notif-icon {
  width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* ── Tab bar ───────────────────────────────────── */
.tab-bar { display: flex; border-bottom: 1px solid #1a1a1a; }
.tab-item {
  flex: 1; padding: 13px; text-align: center; font-size: 14px; font-weight: 600;
  color: #555; cursor: pointer; transition: color .15s; position: relative; text-decoration: none;
}
.tab-item:hover { color: #888; }
.tab-item.active { color: #fff; }
.tab-item.active::after {
  content: ''; position: absolute; bottom: 0; left: 25%; right: 25%;
  height: 2px; background: var(--brand); border-radius: 99px;
}

/* ── Quote post embed ──────────────────────────── */
.quote-embed {
  border: 1px solid #2a2a2a; border-radius: 14px; padding: 12px 14px;
  margin-top: 10px; transition: background .15s; text-decoration: none; display: block;
}
.quote-embed:hover { background: #111; }

/* ── Line clamp ────────────────────────────────── */
.line-clamp-3 { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }

/* ── FAB (mobile post button) ──────────────────── */
.fab {
  position: fixed; bottom: 80px; right: 20px; z-index: 40;
  width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--brand); color: #fff; box-shadow: 0 4px 20px rgba(255,31,61,.4);
  border: none; cursor: pointer; transition: all .15s; font-size: 22px;
}
.fab:hover { background: var(--brand-dark); transform: scale(1.05); }
.fab:active { transform: scale(.95); }
@media (min-width: 768px) { .fab { display: none; } }

/* ── Messages layout ───────────────────────────── */
.messages-layout { height: calc(100vh - 0px); overflow: hidden; }
