/* styles.css - Custom Styling, Dark Gray & Pure White Theme for Comerio PR */

@layer utilities {
  /* Hide scrollbar for Chrome, Safari and Opera */
  .no-scrollbar::-webkit-scrollbar {
    display: none;
  }
  /* Hide scrollbar for IE, Edge and Firefox */
  .no-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
  }
}

/* Custom Scrollbar - Dark Gray & Crisp White */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: #f4f4f5;
  border-radius: 9999px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #a1a1aa;
  border-radius: 9999px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #71717a;
}

/* Marquee Animation for Breaking Ticker */
@keyframes marquee {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.animate-marquee {
  display: inline-block;
  white-space: nowrap;
  animation: marquee 35s linear infinite;
}

.animate-marquee:hover {
  animation-play-state: paused;
}

/* Category Pills in Dark Gray / White scheme */
.cat-pill {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: #f4f4f5;
  color: #3f3f46;
  border: 1px solid #e4e4e7;
}
.cat-pill:hover {
  background-color: #e4e4e7;
  color: #09090b;
}
.cat-pill.active-cat {
  background-color: #18181b !important;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(24, 24, 27, 0.25);
  border-color: #18181b;
}

/* Source Badges */
.source-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  border: 1px solid #e4e4e7;
  background-color: #fafafa;
  color: #27272a;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
}
.source-pill:hover {
  border-color: #18181b;
  background-color: #f4f4f5;
  color: #09090b;
}
.source-pill.active-source {
  background-color: #18181b;
  color: #ffffff;
  border-color: #18181b;
}

/* News Cards */
.news-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.news-card:hover {
  transform: translateY(-4px);
  border-color: #71717a;
  box-shadow: 0 12px 28px -5px rgba(24, 24, 27, 0.12);
}

/* Phone Mockup Screen for App Icon Preview */
.phone-icon-preview {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.4) inset;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #18181b;
}

/* Map Leaflet styling with Dark Gray accent */
.leaflet-container {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  border-radius: 1rem;
}
.leaflet-popup-content-wrapper {
  border-radius: 16px !important;
  box-shadow: 0 10px 25px -5px rgba(24, 24, 27, 0.2) !important;
  padding: 4px !important;
  border: 1px solid #e4e4e7;
}
.leaflet-popup-content {
  margin: 12px 14px !important;
  line-height: 1.4 !important;
}

/* Responsive Image Fix */
img {
  max-width: 100%;
  height: auto;
}

/* Audio Equalizer Waves Animation */
@keyframes eqBar {
  0%, 100% { height: 4px; }
  50% { height: 20px; }
}
.eq-bar {
  display: inline-block;
  width: 3px;
  height: 4px;
  background-color: currentColor;
  border-radius: 9999px;
  transition: height 0.2s ease;
}
.playing .eq-bar {
  animation: eqBar 1.1s ease-in-out infinite;
}
.playing .eq-bar:nth-child(1) { animation-delay: 0.0s; }
.playing .eq-bar:nth-child(2) { animation-delay: 0.25s; }
.playing .eq-bar:nth-child(3) { animation-delay: 0.5s; }
.playing .eq-bar:nth-child(4) { animation-delay: 0.15s; }
.playing .eq-bar:nth-child(5) { animation-delay: 0.35s; }
