/* ---------- GENERAL RESET & LAYOUT ---------- */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: white;
  overflow-x: hidden;
  background: #000000;
  scroll-behavior: smooth;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 45px; /* Spacing for fixed ticker */
}

/* Central Content Container */
.main-wrapper {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 0 0;
  width: calc(100% - 240px); /* Leave room for fixed right nav */
  background: radial-gradient(circle at top, #1a0000 40%, #000 100%);
  box-shadow: 0 0 40px rgba(255, 69, 0, 0.25);
  z-index: 1;
}

/* Side Panels */
body::before,
body::after {
  content: "";
  position: fixed;
  top: 0;
  width: calc((100vw - 1100px) / 2);
  height: 100vh;
  background: linear-gradient(
    180deg,
    #2b0000 0%,
    #110000 50%,
    #000 100%
  );
  z-index: 0;
}

body::before { left: 0; }
body::after  { right: 0; }

h1, h2 {
  text-align: center;
  color: #ffcc00;
  text-shadow: 0 0 10px #ff6600;
}

section {
  padding: 80px 20px;
  max-width: 900px;
  margin: 0 auto 50px auto;
  border-top: 2px solid #ff6600; 
  border-bottom: 2px solid #ff6600;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
  text-align: center;
  background: #111;
  color: #fff;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- ANNOUNCEMENT TICKER BAR ---------- */
.announcement-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #1b0505;
  color: #FFFFFF;
  padding: 8px 0;
  font-weight: bold;
  font-size: 0.95rem;
  z-index: 99999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  white-space: nowrap;
}

.ticker-wrapper {
  display: flex;
  width: 100%;
  overflow: hidden;
}

.ticker-content {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: ticker 25s linear infinite;
  will-change: transform;
}

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

@keyframes ticker {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

.announcement-bar a {
  color: #ffcc00;
  text-decoration: underline;
}

.announcement-bar a:hover {
  color: #ffffff;
}

/* ---------- HEADER ---------- */
header {
  text-align: center;
  padding: 20px 0;
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, #1a0000 0%, #000 100%);
  border-bottom: 2px solid #ff6600;
  box-shadow: 0 0 20px rgba(255, 69, 0, 0.4);
}

header img,
header img[src*="intro4.gif"] {
  width: 90%;
  max-width: 900px;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 15px;
}

/* ---------- RIGHT SIDE NAVIGATION ---------- */
nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 240px;
  height: 100vh;
  background: linear-gradient(180deg, #1a0000 0%, #000000 100%);
  border-left: 2px solid #ff6600;
  box-shadow: -5px 0 20px rgba(255, 69, 0, 0.3);
  display: flex;
  flex-direction: column;
  padding: 60px 10px 20px 10px;
  gap: 8px;
  z-index: 1000;
  overflow-y: auto;
}

nav a {
  color: #ffcc00;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

nav a:hover {
  background: rgba(255, 102, 0, 0.2);
  color: #ffffff;
  text-shadow: 0 0 8px #ff6600;
  transform: translateX(-4px);
}

nav a.nav-button {
  background-color: #ff4500;
  color: #ffffff !important;
  text-align: center;
  box-shadow: 0 4px 10px rgba(255, 69, 0, 0.3);
}

nav a.nav-button:hover {
  background-color: #e03d00;
  transform: translateY(-2px);
}

/* ---------- TEAM PHOTO ---------- */
.team-photo {
  text-align: center;
  margin: 20px auto 40px;
}

.team-photo img {
  width: 90%;
  max-width: 900px;
  border-radius: 15px;
  border: 2px solid #ff6600;
  box-shadow: 0 0 25px rgba(255, 102, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-photo img:hover {
  transform: scale(1.02);
  box-shadow: 0 0 40px rgba(255, 204, 0, 0.8);
}

/* ---------- ABOUT & GENERAL STYLES ---------- */
.intro-wrapper {
  text-align: center;
}

.section-end-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-top: 1rem;
  filter: drop-shadow(0 0 6px rgba(243, 156, 18, 0.5));
}

.fiery-text {
  color: #ffcc00;
  font-weight: 700;
  text-shadow: 0 0 5px #ff6600, 0 0 10px #ff6600, 0 0 20px #ff3300;
  animation: flameGlow 2s ease-in-out infinite alternate;
}

@keyframes flameGlow {
  0% { text-shadow: 0 0 6px #ff6600, 0 0 15px #ff3300; }
  100% { text-shadow: 0 0 15px #ffcc00, 0 0 30px #ff6600; }
}

.register-btn {
  display: inline-block;
  padding: 12px 25px;
  background: #e15d05;
  color: #000;
  font-weight: bold;
  border-radius: 6px;
  text-decoration: none;
}

/* ---------- DROP-IN SECTION ---------- */
.dropin-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.poster-container img {
  width: 100%;
  max-width: 400px;
  border-radius: 12px;
  border: 2px solid #ff6600;
  box-shadow: 0 0 20px rgba(255, 102, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.poster-container img:hover {
  transform: scale(1.03);
  box-shadow: 0 0 25px rgba(255, 204, 0, 0.6);
}

.session-info {
  max-width: 400px;
  color: #fff;
  text-align: left;
  line-height: 1.6;
}

.session-info strong {
  color: #ffcc00;
}

#nextSessionDate {
  color: #f39c12;
  font-weight: bold;
}

/* ---------- GIRLS SECTION ---------- */
.girls-intro {
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.5;
  color: #ddd;
}

/* ---------- ROSTER & COACHING GRIDS ---------- */
.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: auto;
  justify-items: center;
}

.coach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  justify-items: center;
  margin: 30px auto 0 auto;
  width: 100%;
  max-width: 1200px;
}

.player-card,
.coach-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #ff6600;
  border-radius: 12px;
  text-align: center;
  padding: 15px;
  width: 100%;
  max-width: 220px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.player-card {
  height: 260px;
  overflow: hidden;
}

.coach-card {
  min-height: 260px;
  position: relative;
  z-index: 1;
}

.player-card:hover,
.coach-card:hover {
  transform: scale(1.03);
  box-shadow: 0 0 15px #ff6600;
}

.player-card img,
.coach-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}

.player-card h3,
.coach-card h3 {
  color: #ffcc00;
  font-weight: 700;
  margin: 8px 0 4px;
  text-shadow: 0 0 8px #ff6600;
}

.bio-btn {
  display: inline-block;
  background: #ff6600;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.bio-btn:hover {
  background: #ff8800;
  box-shadow: 0 0 10px #ffcc00;
}

.coach-bio {
  display: none;
  background: rgba(0, 0, 0, 0.95);
  color: #ffcc00;
  border: 1px solid #ff6600;
  border-radius: 10px;
  padding: 15px;
  margin-top: 10px;
  font-size: 0.85rem;
  text-align: left;
  line-height: 1.4;
  width: 100%;
}

.coach-bio.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

.coach-bio ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.coach-bio li::before {
  content: "🔥 ";
  color: #ff6600;
}

/* ---------- FIXTURES & RESULTS ---------- */
.fixtures-intro {
  margin-bottom: 25px;
  color: #ccc;
}

.fixtures-scoreboard img {
  max-width: 100%;
  width: 750px;
  border-radius: 12px;
  border: 2px solid #ff6600;
  box-shadow: 0 0 20px rgba(255, 102, 0, 0.45);
}

.next-game-banner {
  background: linear-gradient(135deg, #120000, #000);
  border: 2px solid #ff6600;
  border-radius: 14px;
  padding: 20px;
  margin: 30px auto;
  max-width: 700px;
  box-shadow: 0 0 20px rgba(255, 102, 0, 0.4);
}

.next-game-label {
  font-weight: 800;
  letter-spacing: 2px;
  color: #ff6600;
  margin-bottom: 15px;
}

.next-game-details {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  font-size: 1.4rem;
  font-weight: 700;
}

.next-game-details .team { color: #ffcc00; }
.next-game-details .vs { color: #ff6600; }

.next-game-meta {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: #ccc;
}

.fixtures-btn {
  display: inline-block;
  background: linear-gradient(90deg, #ff6600, #ffcc00);
  color: #000;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 0 20px rgba(255, 102, 0, 0.6);
  transition: all 0.3s ease;
}

.fixtures-btn:hover {
  background: linear-gradient(90deg, #ffcc00, #ff6600);
  color: #fff;
  transform: scale(1.05);
}

/* ---------- SPONSORS & SHOP ---------- */
.sponsors, .shop-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.sponsors img, .shop-logos img {
  width: 200px;
  height: auto;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 10px;
  border: 2px solid #ff6600;
  transition: transform 0.3s ease;
}

.sponsors img:hover, .shop-logos img:hover {
  transform: scale(1.05);
}

.sponsor-button a, .gallery-button a {
  background: #ff6600;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  margin-top: 20px;
}

/* ---------- POP-UP GALLERY MODAL ---------- */
#galleryModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#galleryModal.active {
  display: flex;
  animation: fadeIn 0.5s ease;
}

.modal-content {
  max-width: 90%;
  max-height: 90%;
  overflow-y: auto;
  background: rgba(15, 15, 15, 0.95);
  border: 2px solid #ff6600;
  border-radius: 12px;
  padding: 20px;
  position: relative;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.8em;
  color: #ff6600;
  cursor: pointer;
}

.modal-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.modal-gallery-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid #ff6600;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.modal-gallery-grid img:hover {
  transform: scale(1.05);
}

/* ---------- IMAGE VIEWER ---------- */
#imageViewer {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.95);
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

#imageViewer.active { display: flex; }

#imageViewer img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  border: 2px solid #ff6600;
}

.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 4rem;
  color: #ff6600;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10001;
}

#prevBtn { left: 30px; }
#nextBtn { right: 30px; }

/* ---------- WATERMARK ---------- */
.page-watermark {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 700px;
  height: 700px;
  background: url("../assets/logo-transparent.svg") no-repeat center center;
  background-size: contain;
  opacity: 0.04;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
  animation: watermarkPulse 12s infinite ease-in-out, hueShift 20s infinite linear;
}

@keyframes watermarkPulse {
  0%, 100% { opacity: 0.03; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.08; transform: translate(-50%, -50%) scale(1.04); }
}

@keyframes hueShift {
  0%, 100% { filter: grayscale(40%) sepia(60%) hue-rotate(-20deg) saturate(180%) brightness(1.3); }
  50% { filter: grayscale(40%) sepia(60%) hue-rotate(10deg) saturate(220%) brightness(1.4); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- CONTACT & FOOTER ---------- */
.blazers-email-btn {
  display: inline-block;
  background: #ff5a1f;
  color: #ffffff;
  padding: 14px 24px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}

.cbl-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffcc00;
  text-decoration: none;
}

.cbl-logo {
  height: 24px;
  border-radius: 4px;
}

footer {
  text-align: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.8);
  color: #ccc;
  position: relative;
  z-index: 2;
}

.social-icons a {
  margin: 0 10px;
  font-size: 1.8em;
}
.social-icons a:nth-child(1) { color: #ff6600; }
.social-icons a:nth-child(2) { color: #ffcc00; }

/* ---------- RESPONSIVE BREAKPOINTS ---------- */
@media (max-width: 1024px) {
  nav {
    position: static;
    width: 100%;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    border-left: none;
    border-bottom: 2px solid #ff6600;
    padding-top: 15px;
  }
  
  .main-wrapper {
    margin-right: 0;
    width: 100%;
  }

  body::before, body::after {
    display: none;
  }
}

@media (max-width: 768px) {
  header img,
  header img[src*="intro4.gif"] {
    width: 90%;
    max-width: 90%;
  }

  .dropin-wrapper {
    flex-direction: column;
  }

  .session-info {
    text-align: center;
  }

  .page-watermark {
    width: 320px;
    height: 320px;
  }
}