/* Bytown Dodgers 11U - Pro Sports Team Styles */

/* ===== CSS Variables ===== */
:root {
  --dodger-blue: #005A9C;
  --dodger-blue-dark: #004170;
  --dodger-blue-light: #0073c4;
  --white: #FFFFFF;
  --red-accent: #D52B1E;
  --gray-dark: #1a1a1a;
  --gray-medium: #333333;
  --gray-light: #f5f5f5;
  --gray-border: #e0e0e0;
  
  --font-main: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: all 0.3s ease;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.25);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--gray-dark);
  background: var(--white);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5 {
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--red-accent);
  margin: 1rem auto 0;
}

/* ===== Layout ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}

/* ===== Header & Navigation ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--dodger-blue);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(0, 90, 156, 0.98);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo img {
  height: 50px;
  width: auto;
}

.logo-text {
  color: var(--white);
  font-weight: 800;
  font-size: 1.1rem;
  text-transform: uppercase;
  line-height: 1.1;
}

.logo-text span {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  opacity: 0.9;
  letter-spacing: 0.1em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.5rem;
}

.nav-links a {
  color: var(--white);
  padding: 0.5rem 1rem;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255, 255, 255, 0.15);
}

.nav-links a.active {
  background: var(--red-accent);
}

/* Mobile Menu */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: flex;
  }
  
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--dodger-blue-dark);
    padding: 1rem;
    gap: 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }
  
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav-links a {
    display: block;
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--dodger-blue) 0%, var(--dodger-blue-dark) 100%);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://dodgersbaseball.ca/images/bg_3.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.25;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 90, 156, 0.7) 0%,
    rgba(0, 65, 112, 0.9) 100%
  );
}

.hero-content {
  position: relative;
  text-align: center;
  color: var(--white);
  padding: 2rem;
  max-width: 900px;
}

.hero-logo {
  width: 150px;
  height: auto;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.3));
  animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero h1 {
  margin-bottom: 0.5rem;
  text-shadow: 2px 4px 20px rgba(0,0,0,0.4);
}

.hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.5rem);
  font-weight: 600;
  margin-bottom: 2rem;
  opacity: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--red-accent);
  color: var(--white);
}

.btn-primary:hover {
  background: #b82419;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background: var(--white);
  color: var(--dodger-blue);
}

.btn-secondary:hover {
  background: var(--gray-light);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--dodger-blue);
}

/* ===== Next Game Card ===== */
.next-game {
  background: var(--gray-dark);
  padding: 4rem 0;
}

.next-game-card {
  background: linear-gradient(135deg, var(--dodger-blue) 0%, var(--dodger-blue-dark) 100%);
  border-radius: 12px;
  padding: 2.5rem;
  color: var(--white);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
}

.next-game-label {
  display: inline-block;
  background: var(--red-accent);
  color: var(--white);
  padding: 0.25rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.next-game-date {
  font-size: 1.1rem;
  font-weight: 600;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.next-game-opponent {
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
}

.next-game-vs {
  text-align: center;
}

.next-game-vs span {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  opacity: 0.3;
}

.next-game-details {
  text-align: right;
}

.next-game-time {
  font-size: 2rem;
  font-weight: 800;
}

.next-game-location {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 0.5rem;
}

.next-game-location svg {
  width: 14px;
  height: 14px;
  vertical-align: middle;
  margin-right: 0.25rem;
}

@media (max-width: 768px) {
  .next-game-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1rem;
  }
  
  .next-game-details {
    text-align: center;
  }
  
  .next-game-vs {
    display: none;
  }
}

/* ===== About Section ===== */
.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-content h2 {
  color: var(--dodger-blue);
  margin-bottom: 1.5rem;
}

.about-content p {
  font-size: 1.1rem;
  color: var(--gray-medium);
  margin-bottom: 1.5rem;
}

.stats-row {
  display: flex;
  gap: 3rem;
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  color: var(--dodger-blue);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-medium);
}

.about-image {
  position: relative;
}

.about-image-wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-image-wrapper::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  background: var(--red-accent);
  border-radius: 8px;
  z-index: -1;
}

.about-image img {
  width: 100%;
  display: block;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .stats-row {
    justify-content: center;
  }
}

/* ===== Schedule Page ===== */
.page-hero {
  background: linear-gradient(135deg, var(--dodger-blue) 0%, var(--dodger-blue-dark) 100%);
  padding: 8rem 0 4rem;
  text-align: center;
  color: var(--white);
}

.page-hero h1 {
  margin-bottom: 0.5rem;
}

.page-hero p {
  font-size: 1.1rem;
  opacity: 0.9;
}

.schedule-section {
  background: var(--gray-light);
  padding: 4rem 0;
}

.schedule-filters {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1.5rem;
  background: var(--white);
  border: 2px solid var(--gray-border);
  border-radius: 50px;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--dodger-blue);
  border-color: var(--dodger-blue);
  color: var(--white);
}

.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.schedule-item {
  background: var(--white);
  border-radius: 8px;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 1.5rem;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: var(--transition);
}

.schedule-item:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.schedule-date {
  text-align: center;
  padding: 1rem;
  background: var(--dodger-blue);
  color: var(--white);
  border-radius: 8px;
}

.schedule-month {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.schedule-day {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.schedule-dow {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  opacity: 0.8;
}

.schedule-info h3 {
  color: var(--gray-dark);
  margin-bottom: 0.25rem;
  text-transform: none;
  letter-spacing: 0;
}

.schedule-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--gray-medium);
}

.schedule-meta svg {
  width: 14px;
  height: 14px;
  vertical-align: middle;
  margin-right: 0.25rem;
}

.schedule-type {
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.schedule-type.game {
  background: var(--dodger-blue);
  color: var(--white);
}

.schedule-type.practice {
  background: #28a745;
  color: var(--white);
}

.schedule-type.event {
  background: var(--red-accent);
  color: var(--white);
}

@media (max-width: 600px) {
  .schedule-item {
    grid-template-columns: 80px 1fr;
    gap: 1rem;
  }
  
  .schedule-type {
    grid-column: 1 / -1;
    justify-self: start;
  }
  
  .schedule-meta {
    flex-direction: column;
    gap: 0.25rem;
  }
}

/* ===== Roster Page ===== */
.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.player-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: var(--transition);
}

.player-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.player-image {
  position: relative;
  background: linear-gradient(135deg, var(--dodger-blue) 0%, var(--dodger-blue-dark) 100%);
  padding: 2rem;
  text-align: center;
}

.player-number {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
  opacity: 0.3;
  line-height: 1;
}

.player-avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid rgba(255,255,255,0.3);
}

.player-avatar svg {
  width: 60px;
  height: 60px;
  fill: rgba(255,255,255,0.7);
}

.player-info {
  padding: 1.5rem;
  text-align: center;
}

.player-name {
  font-size: 1.25rem;
  color: var(--gray-dark);
  margin-bottom: 0.5rem;
}

.player-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-border);
}

.player-stat {
  text-align: center;
}

.player-stat-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-medium);
  margin-bottom: 0.25rem;
}

.player-stat-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dodger-blue);
}

.player-debut {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.25rem 0.75rem;
  background: var(--gray-light);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-medium);
}

/* ===== Contact Page ===== */
.contact-section {
  background: var(--gray-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.contact-info-card h2 {
  color: var(--dodger-blue);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--dodger-blue);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--white);
}

.contact-item h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  text-transform: none;
  letter-spacing: 0;
}

.contact-item p {
  color: var(--gray-medium);
}

.contact-item a {
  color: var(--dodger-blue);
}

.contact-item a:hover {
  color: var(--red-accent);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-link {
  width: 50px;
  height: 50px;
  background: var(--gray-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--dodger-blue);
}

.social-link:hover svg {
  fill: var(--white);
}

.social-link svg {
  width: 24px;
  height: 24px;
  fill: var(--gray-medium);
  transition: var(--transition);
}

.contact-map {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 400px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: none;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Footer ===== */
.footer {
  background: var(--gray-dark);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo {
  margin-bottom: 1rem;
}

.footer-brand p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  max-width: 300px;
}

.footer h4 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 5px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--red-accent);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: var(--white);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-brand p {
    margin: 0 auto;
  }
  
  .footer-bottom {
    justify-content: center;
    text-align: center;
  }
}

/* ===== Loading State ===== */
.loading {
  text-align: center;
  padding: 3rem;
  color: var(--gray-medium);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--gray-border);
  border-top-color: var(--dodger-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== Empty State ===== */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--gray-medium);
}

.empty-state svg {
  width: 80px;
  height: 80px;
  fill: var(--gray-border);
  margin-bottom: 1rem;
}

/* ===== Utilities ===== */
.text-center { text-align: center; }
.text-blue { color: var(--dodger-blue); }
.text-red { color: var(--red-accent); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
