/*
 * app.css - Minimal app-specific utilities for Campedia
 * Everything else is styled natively by css/chota-neo.min.css
 */

/* Chart sizing and responsive container */
.chart-container {
  position: relative;
  width: 100%;
  height: 360px;
}

#trendChart {
  width: 100% !important;
  height: 100% !important;
}

.progress-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.progress-container progress {
  height: 2rem !important;
  margin: 0;
}

.progress-countdown {
  position: absolute;
  pointer-events: none;
  z-index: 2;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  color: #111111;
  text-shadow: 0 0 2px rgba(255, 255, 255, 0.8);
}

.sync-badge {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 2rem !important;
  padding: 0 0.5rem !important;
  box-sizing: border-box;
  margin: 0;
}

/* Age Verification Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 1rem;
}

.modal-overlay.hidden {
  display: none !important;
}

.modal-card {
  max-width: 480px;
  width: 100%;
}

/* Monospace font utility */
.font-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Momentum trend indicators */
.momentum-up {
  color: var(--color-success) !important;
}

.momentum-down {
  color: var(--color-error) !important;
}

.momentum-steady {
  color: var(--color-grey) !important;
}

.nav {
  border-bottom: none;
}

th,
td {
  padding: 0.5rem;
}

/* Live Telemetry Marquee Controls (Adapted from Hugo Design System) */
#live-marquee {
  position: relative;
}

.marquee-control-btn {
  position: absolute;
  top: 0.4rem;
  right: 0.6rem;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  background-color: var(--bg-surface, #ffffff);
  color: var(--color-darkGrey, #111111);
  border: 2px solid var(--border-color, #000000);
  box-shadow: 2px 2px 0 var(--border-color, #000000);
  border-radius: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.1s ease;
}

.marquee-control-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--border-color, #000000);
}

.marquee-control-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--border-color, #000000);
}

#live-marquee:hover .marquee-control-btn {
  opacity: 1;
  pointer-events: auto;
}

#live-marquee.is-paused .marquee-control-btn {
  opacity: 0.9;
  pointer-events: auto;
  background-color: var(--color-primary, #ff4757);
  color: #ffffff;
}

#live-marquee.is-paused .marquee-content {
  animation-play-state: paused !important;
}

/* Accessibility Color Contrast Adjustments */
.text-muted,
.viewers-val {
  color: #334155 !important;
}

[data-theme="dark"] .text-muted,
body.dark .text-muted,
[data-theme="dark"] .viewers-val,
body.dark .viewers-val {
  color: #94a3b8 !important;
}

/* Footer Contrast (Dark background #0f172a with high-contrast text and links) */
footer,
.footer {
  background-color: #0f172a !important;
  color: #f8fafc !important;
}

footer a,
.footer a {
  color: #38bdf8 !important;
  text-decoration: underline;
}

footer a:hover,
.footer a:hover {
  color: #7dd3fc !important;
}

footer .text-muted,
.footer .text-muted {
  color: #cbd5e1 !important;
}

#age-gate .tag.bg-error {
  background-color: #b91c1c !important;
  color: #ffffff !important;
}

#age-gate .button.primary {
  background-color: #0f172a !important;
  color: #ffffff !important;
}

#age-gate .button.clear {
  color: #0f172a !important;
}