/* MindDeX Global Styles */
:root {
  --bg:      #050505;
  --surface: #0f0f0f;
  --s2:      #1a1a1a;
  --s3:      #242424;
  --border:  #2a2a2a;
  --bl:      #333333;
  --text:    #f5f5f5;
  --muted:   #888888;
  --accent:  #3b82f6;
  --success: #22c55e;
  --danger:  #ef4444;
  --warn:    #f59e0b;
}

* { box-sizing: border-box; }

::selection { background: #3b82f620; color: #fff; }

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 99px; }

/* Layout */
.page-container { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
}
.card-sm {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: .75rem;
  padding: 1rem;
}

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  background: #2563eb; color: #fff; font-weight: 600; font-size: .875rem;
  padding: .5rem 1.1rem; border-radius: 9999px; border: none; cursor: pointer;
  transition: background .15s, transform .1s;
  text-decoration: none; white-space: nowrap;
}
.btn-primary:hover  { background: #1d4ed8; }
.btn-primary:active { transform: scale(.97); }
.btn-primary:disabled { background: #374151; cursor: not-allowed; }

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  background: transparent; color: #d1d5db; font-weight: 500; font-size: .875rem;
  padding: .5rem 1.1rem; border-radius: 9999px; border: 1px solid #374151;
  cursor: pointer; transition: background .15s, border-color .15s;
  text-decoration: none; white-space: nowrap;
}
.btn-secondary:hover { background: #1a1a1a; border-color: #4b5563; }

.btn-danger {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  background: transparent; color: #ef4444; font-weight: 500; font-size: .875rem;
  padding: .5rem 1.1rem; border-radius: 9999px; border: 1px solid #7f1d1d;
  cursor: pointer; transition: background .15s;
  text-decoration: none;
}
.btn-danger:hover { background: #7f1d1d30; }

/* Nav */
.nav-icon {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: .5rem;
  color: #6b7280; position: relative;
  transition: color .15s, background .15s;
  text-decoration: none;
}
.nav-icon:hover { color: #f5f5f5; background: #1a1a1a; }
.nav-icon.active { color: #3b82f6; }

.badge {
  position: absolute; top: 2px; right: 2px;
  background: #ef4444; color: #fff; font-size: 10px; font-weight: 700;
  min-width: 16px; height: 16px; border-radius: 99px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px; line-height: 1;
}

/* Menu */
.menu-item {
  display: block; padding: .55rem 1rem; font-size: .875rem;
  color: #d1d5db; transition: background .12s, color .12s;
  text-decoration: none;
}
.menu-item:hover { background: #1a1a1a; color: #fff; }

/* Forms */
.form-input {
  width: 100%; background: #111; border: 1px solid #2a2a2a;
  border-radius: .5rem; padding: .625rem .875rem; font-size: .9rem;
  color: #f5f5f5; transition: border-color .15s, background .15s;
  outline: none;
}
.form-input:focus { border-color: #3b82f6; background: #0d0d0d; }
.form-input::placeholder { color: #555; }

.form-label {
  display: block; font-size: .8rem; font-weight: 500;
  color: #9ca3af; margin-bottom: .35rem;
}

.form-group { margin-bottom: 1.1rem; }

select.form-input option { background: #111; }

textarea.form-input { resize: vertical; min-height: 80px; }

/* Alert */
.alert {
  border-radius: .5rem; padding: .75rem 1rem; font-size: .875rem;
  display: flex; align-items: flex-start; gap: .5rem;
}
.alert-error   { background: #7f1d1d30; border: 1px solid #991b1b; color: #fca5a5; }
.alert-success { background: #14532d30; border: 1px solid #166534; color: #86efac; }
.alert-info    { background: #1e3a5f30; border: 1px solid #1e40af; color: #93c5fd; }
.alert-warn    { background: #78350f30; border: 1px solid #92400e; color: #fcd34d; }

/* Post card */
.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
  transition: border-color .15s;
}
.post-card:hover { border-color: #3a3a3a; }

/* Post type badge */
.post-type { font-size: .7rem; font-weight: 600; padding: .15rem .55rem;
  border-radius: 99px; text-transform: uppercase; letter-spacing: .06em; }
.post-type-post        { background: #1e293b; color: #60a5fa; }
.post-type-opportunity { background: #14532d40; color: #4ade80; }
.post-type-partnership { background: #312e8140; color: #a78bfa; }
.post-type-funding     { background: #78350f40; color: #fbbf24; }
.post-type-hiring      { background: #164e6340; color: #22d3ee; }

/* Action buttons */
.action-btn {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .6rem; border-radius: .4rem; font-size: .8rem;
  color: #6b7280; cursor: pointer; transition: color .12s, background .12s;
  background: transparent; border: none;
}
.action-btn:hover { color: #d1d5db; background: #1a1a1a; }
.action-btn.liked { color: #3b82f6; }

/* Profile header */
.profile-banner {
  height: 120px; background: linear-gradient(135deg, #1e3a5f 0%, #1e1b4b 50%, #0f172a 100%);
  border-radius: 1rem 1rem 0 0;
}

/* Verified badge colors */
.role-badge {
  font-size: .7rem; font-weight: 600; padding: .2rem .6rem;
  border-radius: 99px; text-transform: uppercase; letter-spacing: .05em;
}
.role-visitor     { background: #27272a; color: #a1a1aa; }
.role-entrepreneur { background: #1e40af30; color: #60a5fa; }
.role-admin       { background: #7c3aed30; color: #a78bfa; }

/* Sidebar section */
.sidebar-section { margin-bottom: 1rem; }
.sidebar-section h3 {
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: #6b7280; margin-bottom: .75rem;
}

/* Divider */
.divider { border: none; border-top: 1px solid #1f1f1f; margin: 1rem 0; }

/* Feed composer */
.composer {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 1rem; padding: 1rem;
}

/* Messages */
.message-bubble {
  max-width: 70%; padding: .6rem .9rem; border-radius: .75rem;
  font-size: .875rem; line-height: 1.5;
}
.message-bubble.sent     { background: #1e40af; color: #fff; border-bottom-right-radius: .2rem; margin-left: auto; }
.message-bubble.received { background: #1a1a1a; color: #e5e7eb; border-bottom-left-radius: .2rem; }

/* Conversation item */
.conv-item {
  display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem;
  cursor: pointer; transition: background .12s; border-radius: .5rem;
}
.conv-item:hover { background: #1a1a1a; }
.conv-item.active { background: #1e3a5f30; }

/* Stats row */
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: .75rem; padding: 1rem; text-align: center;
}

/* Loading skeleton */
@keyframes shimmer { from { background-position: -200% 0; } to { background-position: 200% 0; } }
.skeleton {
  background: linear-gradient(90deg, #1a1a1a 25%, #222 50%, #1a1a1a 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: .375rem;
}

/* Dropdown animation */
@keyframes fadeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn .15s ease forwards; }

/* Transition */
.transition-fast { transition: all .12s ease; }

/* Comment box */
.comment-item {
  display: flex; gap: .75rem; padding: .6rem 0;
  border-top: 1px solid #1a1a1a;
}

/* Tag */
.tag {
  display: inline-flex; align-items: center; gap: .25rem;
  background: #1a1a1a; color: #9ca3af; font-size: .75rem;
  padding: .2rem .6rem; border-radius: 99px; border: 1px solid #2a2a2a;
}

/* Responsive helpers */
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
  .card, .post-card, .composer { border-radius: .5rem; }
}

@media (min-width: 769px) {
  .hide-desktop { display: none !important; }
}

/* Feed layout */
.feed-layout {
  display: grid;
  grid-template-columns: 220px 1fr 240px;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 1024px) {
  .feed-layout { grid-template-columns: 1fr 240px; }
  .feed-sidebar-left { display: none; }
}
@media (max-width: 768px) {
  .feed-layout { grid-template-columns: 1fr; }
  .feed-sidebar-right { display: none; }
}

/* Pill nav */
.pill-nav { display: flex; gap: .25rem; background: #111; border-radius: 99px; padding: .25rem; }
.pill-nav a {
  padding: .35rem 1rem; border-radius: 99px; font-size: .875rem; font-weight: 500;
  color: #6b7280; transition: all .15s; text-decoration: none;
}
.pill-nav a.active, .pill-nav a:hover { background: #1e40af; color: #fff; }

/* Verification steps */
.step-card {
  background: #111; border: 1px solid #2a2a2a; border-radius: .75rem; padding: 1rem;
  cursor: pointer; transition: border-color .15s;
}
.step-card:hover { border-color: #3b82f6; }
.step-card.selected { border-color: #3b82f6; background: #1e3a5f20; }

/* Landing animations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.float { animation: float 4s ease-in-out infinite; }

/* Glow */
.glow { box-shadow: 0 0 30px #3b82f640; }
