/* Telegram-inspired pulse & live feed theme */
:root {
  --pulse-blue: #2aabee;
  --pulse-green: #22c55e;
  --pulse-purple: #a855f7;
  --pulse-orange: #f97316;
  --pulse-glow: rgba(42, 171, 238, 0.45);
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 var(--pulse-glow); }
  70% { box-shadow: 0 0 0 10px rgba(42, 171, 238, 0); }
  100% { box-shadow: 0 0 0 0 rgba(42, 171, 238, 0); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

@keyframes live-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.btn-pulse {
  position: relative;
  animation: pulse-ring 2s infinite;
  border: 1px solid var(--pulse-blue) !important;
  background: linear-gradient(135deg, rgba(42,171,238,0.15), rgba(42,171,238,0.05)) !important;
}

.btn-pulse-green {
  animation-name: pulse-ring;
  --pulse-glow: rgba(34, 197, 94, 0.45);
  border-color: var(--pulse-green) !important;
  background: linear-gradient(135deg, rgba(34,197,94,0.15), rgba(34,197,94,0.05)) !important;
}

.btn-pulse-purple {
  --pulse-glow: rgba(168, 85, 247, 0.45);
  border-color: var(--pulse-purple) !important;
  background: linear-gradient(135deg, rgba(168,85,247,0.15), rgba(168,85,247,0.05)) !important;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--pulse-green);
}

.live-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pulse-green);
  animation: pulse-dot 1.2s ease-in-out infinite;
}

.live-feed-bar {
  background: linear-gradient(90deg, #0f172a 25%, #1e3a5f 50%, #0f172a 75%);
  background-size: 200% 100%;
  animation: live-shimmer 3s linear infinite;
  border: 1px solid rgba(42, 171, 238, 0.3);
  border-radius: 10px;
  padding: 0.6rem 1rem;
  margin-bottom: 1rem;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  gap: 2rem;
  white-space: nowrap;
  animation: ticker-scroll 40s linear infinite;
}

.ticker-track:hover { animation-play-state: paused; }

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.5rem;
}

.side-nav-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.side-nav-btn:hover {
  background: rgba(42, 171, 238, 0.08);
  border-color: rgba(42, 171, 238, 0.2);
}

.side-nav-btn.active {
  background: rgba(42, 171, 238, 0.15);
  border-color: var(--pulse-blue);
  box-shadow: 0 0 12px rgba(42, 171, 238, 0.2);
}

.section-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.75rem 0;
}

.section-tab {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid #334155;
  background: #0f172a;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.section-tab.active {
  border-color: var(--pulse-blue);
  background: rgba(42, 171, 238, 0.2);
  box-shadow: 0 0 8px rgba(42, 171, 238, 0.25);
}

.feed-card {
  padding: 0.75rem;
  border-radius: 10px;
  border: 1px solid #334155;
  margin-bottom: 0.5rem;
  transition: border-color 0.2s;
}

.feed-card:hover {
  border-color: var(--pulse-blue);
}

.feed-card .source {
  font-size: 0.7rem;
  color: var(--pulse-blue);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.weather-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.weather-day {
  flex: 1;
  min-width: 70px;
  text-align: center;
  padding: 0.5rem;
  border-radius: 8px;
  background: rgba(42, 171, 238, 0.08);
  border: 1px solid rgba(42, 171, 238, 0.15);
  font-size: 0.75rem;
}

.weather-day strong { display: block; font-size: 1rem; }

.note-bubble {
  background: rgba(42, 171, 238, 0.08);
  border-left: 3px solid var(--pulse-blue);
  padding: 0.6rem 0.75rem;
  border-radius: 0 8px 8px 0;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.milestone-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border-bottom: 1px solid #1e293b;
}

.milestone-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pulse-orange);
  animation: pulse-dot 2s infinite;
}

.milestone-dot.done { background: var(--pulse-green); animation: none; }

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 0.5rem;
}

.media-thumb {
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #334155;
}

.pro-tab-bar {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #334155;
  margin-bottom: 1rem;
}

.pro-tab {
  padding: 0.75rem 1.25rem;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 0.9rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  opacity: 0.7;
  transition: all 0.2s;
}

.pro-tab.active {
  opacity: 1;
  border-bottom-color: var(--pulse-blue);
  color: var(--pulse-blue);
}

.pro-tab:hover { opacity: 1; }

.kpi-pulse strong {
  background: linear-gradient(90deg, var(--pulse-blue), var(--pulse-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
