/* ============================================
   AIHub Pulse — Core Styles
   styles.css
   ============================================ */

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
}

.font-orbitron {
  font-family: 'Orbitron', sans-serif;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #0B0E1A;
}
::-webkit-scrollbar-thumb {
  background: #1E293B;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #00F0FF;
}

/* ---------- Glow Effects ---------- */
.glow-neon {
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}
.glow-neon-hover:hover {
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}
.glow-violet {
  box-shadow: 0 0 15px rgba(167, 139, 250, 0.3);
}
.glow-violet-hover:hover {
  box-shadow: 0 0 20px rgba(167, 139, 250, 0.5);
}
.text-glow {
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

/* ---------- Fade-in on Scroll ---------- */
.fade-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
  animation: fadeInFallback 0.7s ease-out 1.2s forwards;
}
.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
  animation: none;
}
@keyframes fadeInFallback {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Vibes Carousel Snap ---------- */
.snap-container {
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.snap-container > * {
  scroll-snap-align: start;
}

/* ---------- Leaderboard Table — Mobile Cards ---------- */
@media (max-width: 1023px) {
  .lb-table thead {
    display: none;
  }
  .lb-table tbody tr {
    display: flex;
    flex-direction: column;
    background: #131A2E;
    border: 1px solid #1E293B;
    border-radius: 10px;
    margin-bottom: 8px;
    padding: 10px 12px;
  }
  .lb-table tbody tr td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 3px 0;
    border: none;
    font-size: 13px;
  }
  .lb-table tbody tr td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #A0A0C0;
    margin-right: 8px;
    flex-shrink: 0;
    min-width: 72px;
    font-size: 11px;
  }
  /* Hide verbose fields on mobile */
  .lb-table tbody tr td.mob-hide {
    display: none;
  }
}

/* Extra compact below 480px */
@media (max-width: 479px) {
  .lb-table tbody tr {
    padding: 8px 10px;
    margin-bottom: 6px;
    border-radius: 8px;
  }
  .lb-table tbody tr td {
    padding: 2px 0;
    font-size: 12px;
  }
  .lb-table tbody tr td::before {
    min-width: 62px;
    font-size: 10px;
  }
}

/* ---------- Light Mode ---------- */
html:not(.dark) body {
  background: #F0F2F8;
  color: #1a1a2e;
}
html:not(.dark) .bg-bgPrimary {
  background: #F0F2F8 !important;
}
html:not(.dark) .bg-bgSecondary {
  background: #E8EAF0 !important;
}
html:not(.dark) .bg-bgCard {
  background: #FFFFFF !important;
}
html:not(.dark) .text-textPrimary {
  color: #1a1a2e !important;
}
html:not(.dark) .text-textSecondary {
  color: #4a4a6a !important;
}
html:not(.dark) .border-gray-700 {
  border-color: #d1d5db !important;
}
html:not(.dark) .border-gray-800 {
  border-color: #e5e7eb !important;
}
html:not(.dark) th {
  background: #E8EAF0 !important;
  color: #1a1a2e !important;
}
html:not(.dark) ::-webkit-scrollbar-track {
  background: #F0F2F8;
}
html:not(.dark) ::-webkit-scrollbar-thumb {
  background: #c4c8d4;
}

/* ---------- Compare Modal ---------- */
.compare-modal {
  display: none;
}
.compare-modal.active {
  display: flex;
}

/* ---------- Progress Bar ---------- */
.progress-fill {
  transition: width 1s ease-out;
}

/* ---------- Vibe Card Color Shadows ---------- */
.glow-orange {
  box-shadow: 0 0 15px rgba(249, 115, 22, 0.3);
}
.glow-yellow {
  box-shadow: 0 0 15px rgba(234, 179, 8, 0.3);
}
.glow-blue {
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}
.glow-green {
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.3);
}
.glow-rose {
  box-shadow: 0 0 15px rgba(236, 72, 153, 0.1);
}
