/* Patient Analog - Ticker CSS
   Version: 1.2 - Condensed with 3 rows
   Ticker styles ONLY - nav and game layout are separate files */

/* ==================== TICKER BAR - FIXED BOTTOM ==================== */
#live-ticker,
.live-ticker-bar {
  position: fixed;
  top: auto;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 68px !important;
  min-height: 68px !important;
  max-height: 68px !important;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(5, 10, 15, 1);
  border-top: 1px solid rgba(0, 255, 255, 0.15);
  border-bottom: none;
  overflow: hidden;
  isolation: isolate;
}

/* ==================== TICKER INNER CONTAINER ==================== */
.live-ticker-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 64px;
  height: 64px;
  padding: 2px 0;
  margin: 0;
  overflow: hidden;
  width: 100%;
}

/* ==================== TICKER ROWS ==================== */
.live-ticker-row {
  display: flex;
  min-height: 18px;
  height: 19px;
  padding: 1px 10px;
  margin: 0;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
  align-items: center;
}

.live-ticker-row.ticker-row-secondary {
  min-height: 18px;
  height: 19px;
  padding: 1px 10px;
}

.live-ticker-row.ticker-news-row {
  min-height: 20px;
  height: 20px;
  padding: 2px 10px;
  align-items: center;
}

/* ==================== TICKER SCROLL ANIMATION ==================== */
.ticker-scroll {
  display: inline-flex;
  white-space: nowrap;
  will-change: transform;
  animation: tickerScroll 600s linear infinite;
  padding-left: 100vw;
}

.ticker-scroll-content {
  display: inline-flex;
  white-space: nowrap;
  gap: 0;
}

.live-ticker-items {
  display: inline-flex;
  overflow: hidden;
  max-width: none;
  white-space: nowrap;
  will-change: transform;
  animation: tickerScrollTop 800s linear infinite;
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

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

/* ==================== TICKER ITEMS ==================== */
.ticker-item,
.ticker-static {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 0 6px;
  font-size: 11px;
  line-height: 1.2;
}

.scroll-item,
.breaking-headline {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}

.breaking-headline-wrapper,
.breaking-headline {
  overflow: hidden;
  white-space: nowrap;
}

.ticker-news-row,
.breaking-news-container {
  min-height: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  max-width: 100%;
  overflow: hidden;
}

/* ==================== BODY PADDING FOR TICKER ==================== */
html,
body {
  padding-bottom: 70px;
}

main,
.main-content {
  padding-bottom: 75px;
  margin-bottom: 0;
}

/* ==================== OVERFLOW PREVENTION ==================== */
html {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  overflow-x: hidden;
  max-width: 100vw;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* ==================== MOBILE TICKER ==================== */
@media (max-width: 768px) {
  #live-ticker,
  .live-ticker-bar {
    height: 62px !important;
    min-height: 62px !important;
    max-height: 62px !important;
  }

  .live-ticker-row {
    height: 17px;
    min-height: 17px;
    padding: 1px 8px;
  }

  .live-ticker-row.ticker-news-row {
    height: 18px;
    min-height: 18px;
  }

  html,
  body {
    padding-bottom: 65px;
  }

  .ticker-item,
  .ticker-static,
  .scroll-item,
  .breaking-headline {
    font-size: 10px;
  }
}
