/* -----------------------------------------
   Villa Park Little League - Clean Theme
------------------------------------------ */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", sans-serif;
  background-color: #f5f7fa;
  color: #0a192f;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* -----------------------------------------
   HEADER
------------------------------------------ */

header {
  background-color: #0a192f;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

header img {
  height: 40px;
  margin-right: 10px;
}

/* -----------------------------------------
   MAIN
------------------------------------------ */

main {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 80px; /* space for bottom nav */
}

/* -----------------------------------------
   CARDS / SIMPLE UI BLOCKS
------------------------------------------ */

.card {
  background: white;
  border-radius: 16px;
  margin: 16px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.card-header {
  background-color: #0a192f;
  color: white;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-title {
  font-weight: 700;
  font-size: 1.1rem;
}

.card-subtitle {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

/* -----------------------------------------
   PAGE TRANSITION
------------------------------------------ */
#page-root {
  opacity: 1;
}

.page-transition {
  animation: slideUp 0.35s ease forwards;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* -----------------------------------------
   HOME BANNER
------------------------------------------ */

.home-card {
  padding: 0;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  margin: 16px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.home-banner img {
  width: 100%;
  height: auto;
  display: block;
}
/* --- HOME SLIDESHOW (safe override) --- */

.home-slideshow {
  position: relative;
  width: 100%;
  height: 220px; /* adjust if you want taller */
  overflow: hidden;
}

.home-slideshow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.home-slideshow img.active {
  opacity: 1;
}

/* -----------------------------------------
   ANNOUNCEMENTS
------------------------------------------ */

.announcements {
  padding: 16px;
  background: white;
}

.announcements h3 {
  margin: 0 0 10px 0;
  font-size: 1.2rem;
  color: #0a192f;
  font-weight: 700;
}

.announcements ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.announcements li {
  font-size: 1rem;
  margin-bottom: 6px;
  color: #333;
}

/* -----------------------------------------
   BOTTOM NAVIGATION
------------------------------------------ */

#bottomNav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 65px;
  background: #ffffff;
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.15);
}

#bottomNav .nav-btn {
  flex: 1;
  border: none;
  background: none;
  padding: 6px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: inherit;
  font-size: 0.75rem;
  color: #444;
  transition: color 0.2s ease, transform 0.2s ease;
}

#bottomNav .nav-btn .icon {
  font-size: 1.4rem;
  line-height: 1.4rem;
  margin-bottom: 2px;
}

#bottomNav .nav-btn.active {
  color: #d32f2f;
  transform: scale(1.1);
}

#bottomNav .nav-btn.active .icon {
  color: #d32f2f;
  transform: scale(1.25);
}

/* -----------------------------------------
   SPINNER OVERLAY
------------------------------------------ */

.spinner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.vpll-spinner {
  width: 80px;
  height: 80px;
  animation: spin 1.2s linear infinite;
  opacity: 0.9;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* -----------------------------------------
   SCHEDULE LIST
------------------------------------------ */

.schedule-container {
  padding: 0 16px 16px 16px;
}

.schedule-date-header {
  margin: 20px 0 10px 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0a192f;
}

.schedule-date-block {
  background: #fff;
  border-radius: 12px;
  padding: 10px 0;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.schedule-item {
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
}

.schedule-item:last-child {
  border-bottom: none;
}

.schedule-time-field {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  color: #444;
}

.schedule-teams {
  margin-top: 4px;
  font-weight: 600;
  font-size: 1rem;
}

.schedule-score {
  margin-top: 4px;
  color: #d32f2f;
  font-weight: 700;
}

/* -----------------------------------------
   SCROLL-TO-TODAY BUTTON
------------------------------------------ */

.scroll-today-btn {
  position: fixed;
  bottom: 90px;
  right: 20px;
  background: #0a192f;
  color: white;
  padding: 10px 18px;
  border: none;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 4px 8px rgba(0,0,0,0.25);
  cursor: pointer;
  z-index: 999;
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.scroll-today-btn:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* -----------------------------------------
   ANNOUNCEMENT BANNER / FADE-IN
------------------------------------------ */

#vpll-announcement-banner {
  animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* -----------------------------------------
   DIVISION BADGES
------------------------------------------ */

.ticker-badge {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  margin-right: 6px;
  display: inline-block;
  color: white;
}

.badge-maj {
  background: #0A2A66; /* VPLL Navy */
}

.badge-aaa {
  background: #F4B41A; /* VPLL Gold */
  color: black;        /* Better contrast on gold */
}

.badge-aa {
  background: #4EC5C1; /* Light Aqua */
}

/* -----------------------------------------
   MORE PAGE GRID LAYOUT
------------------------------------------ */

.more-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 20px;
  margin-bottom: 40px;
}

.more-card {
  background: white;
  border-radius: 14px;
  padding: 24px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.more-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

.more-icon {
  font-size: 36px;
  margin-bottom: 8px;
}

.more-label {
  font-size: 15px;
  font-weight: bold;
  color: #0a2a66;
}

.more-card-wide {
  grid-column: span 2;
}

/* -----------------------------------------
   BUTTONS
------------------------------------------ */

.form-button {
  display: inline-block;
  background: #0a2a66;
  color: white;
  padding: 12px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 16px;
  margin-top: 12px;
}

.back-button {
  background: none;
  border: none;
  color: #0b3b7e;
  font-size: 14px;
  cursor: pointer;
  padding: 6px 0;
}

/* -----------------------------------------
   FULL SCREEN PDF VIEW
------------------------------------------ */

.pdf-view {
  position: fixed;
  top: 70px;      /* header height (adjust if needed) */
  bottom: 65px;   /* bottom nav height */
  left: 0;
  right: 0;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  z-index: 2000;
}

.pdf-header-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #0a192f;
  color: white;
  font-weight: 700;
  flex-shrink: 0;
}

.pdf-title {
  flex: 1;
  text-align: center;
  margin-right: 40px;
}

.pdf-frame {
  flex: 1;
  width: 100%;
  border: none;
  display: block;
}

/* -----------------------------------------
   RESPONSIVE
------------------------------------------ */

@media (max-width: 600px) {
  header {
    font-size: 1.1rem;
  }
  .card {
    margin: 12px;
  }
  #bottomNav .nav-btn {
    font-size: 0.9rem;
  }
}
:root{
  /* 👇 change this anytime (60s, 80s, 120s...) */
  --ticker-duration: 50s;
}

/* -------- PREMIUM TICKER STYLE (C1-A) -------- */

#tickerBar {
  width: 100%;
  overflow: hidden;
  background: #0b3d91;
  border-bottom: 2px solid #ffcc00;
  padding: 4px 0;
  white-space: nowrap;
}

#tickerContent {
  display: inline-block;
  white-space: nowrap;
  /* ✅ one single source of truth for speed */
  animation: tickerScroll 150s linear infinite;

  /* ✅ makes it “already in motion” (no long wait at the start) */
  animation-delay: -6s;

  /* ✅ helps mobile Safari */
  will-change: transform;
}

.ticker-item {
  display: inline-block;
  margin-right: 40px;
  font-size: 15px;
  color: white;
  font-weight: 600;
}

/* Division badges */
.badge {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.badge-majors {
  background: #d32f2f;
}
.badge-aaa {
  background: #ff9800;
}
.badge-aa {
  background: #4caf50;
}

/* Text */
.ticker-text-score {
  font-size: 15px;
  letter-spacing: 0.3px;
}

.no-scores {
  opacity: 0.8;
}

/* Animation */
@keyframes tickerScroll {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}



