:root {
  --maroon: #990000;
  --maroon-dark: #770000;
  --maroon-light: #B30000;
  --gold: #C4A35A;
  --dark: #2D2D2D;
  --gray: #F5F5F5;
  --white: #FFFFFF;
  --text: #333333;
  --text-light: #666666;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Main content region (keeps footer at the bottom on short pages) */
.site-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Header */
header {
  background: var(--white);
  border-bottom: 3px solid var(--maroon);
  padding: 20px 0;
  text-align: center;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.8rem;
  color: var(--maroon);
  margin-bottom: 2px;
}

.site-title a {
  color: var(--maroon);
  text-decoration: none;
}

.site-subtitle {
  font-size: 0.95rem;
  color: var(--text-light);
  font-weight: 400;
}

/* Navigation */
nav {
  background: var(--maroon);
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
}

nav a {
  display: block;
  color: var(--white);
  text-decoration: none;
  padding: 14px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s;
}

nav a:hover {
  background: var(--maroon-dark);
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--maroon);
  list-style: none;
  min-width: 280px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 100;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  padding: 12px 24px;
  font-size: 0.85rem;
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--maroon);
  color: var(--white);
  padding: 14px 36px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 3px;
  transition: background 0.2s, transform 0.2s;
}

.btn:hover {
  background: var(--maroon-dark);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.05"><path d="M50 10 L50 90 M30 35 L70 35" stroke="white" stroke-width="4" fill="none"/></svg>') center/200px repeat;
}

.hero-content {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 2.6rem;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 30px;
  line-height: 1.7;
}

.hero .btn {
  background: var(--white);
  color: var(--maroon);
}

.hero .btn:hover {
  background: var(--gray);
  transform: translateY(-1px);
}

/* Section base */
section {
  padding: 60px 20px;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.8rem;
  color: var(--maroon);
  margin-bottom: 12px;
}

.section-rule {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin-bottom: 30px;
}

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

.about p {
  font-size: 1.05rem;
  max-width: 800px;
  line-height: 1.8;
  color: var(--text);
}

.about p + p {
  margin-top: 16px;
}

/* Map */
.map-section {
  background: var(--gray);
}

.map-container {
  margin-top: 20px;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  border: 0;
  display: block;
}

/* Footer */
footer {
  background: var(--dark);
  color: #ccc;
  padding: 50px 20px 30px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

.footer-col h4 {
  color: var(--white);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer-col a {
  color: #aaa;
  text-decoration: none;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 8px;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-bottom {
  max-width: 1100px;
  margin: 30px auto 0;
  padding-top: 20px;
  border-top: 1px solid #444;
  text-align: center;
  font-size: 0.8rem;
  color: #888;
}

.footer-bottom a {
  color: #aaa;
}

.footer-bottom a:hover {
  color: var(--white);
}

/* Tournament / interior page content */
.page-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 50px 20px;
  width: 100%;
}

.page-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 2rem;
  color: var(--maroon);
  margin-bottom: 12px;
}

/* Event detail (e.g., pickleball) */
.event-subtitle {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.3rem;
  color: var(--maroon-light);
  margin-bottom: 16px;
}

.event-photo {
  width: 100%;
  max-width: 700px;
  height: auto;
  display: block;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  margin: 0 0 24px;
}

.event-text {
  font-size: 1.1rem;
  max-width: 700px;
  line-height: 1.7;
}

.event-text a {
  color: var(--maroon);
  font-weight: 600;
}

/* Year index (list of tournament years on the softball landing page) */
.year-index-hint {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.year-index {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.year-index thead th {
  text-align: left;
  padding: 10px 16px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--text-light);
  background: var(--gray);
  border-bottom: 2px solid #e0e0e0;
}

.year-index td {
  padding: 0;
  border-bottom: 1px solid #e0e0e0;
}

.year-index td a {
  display: block;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--text);
}

.year-index tr:hover td {
  background: var(--gray);
}

.year-index .yr a {
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--maroon);
}

.year-index .champ.none a {
  color: var(--text-light);
  font-style: italic;
}

.back-link {
  color: var(--maroon);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.back-link:hover {
  text-decoration: underline;
}

/* Tournament links (rules + feedback survey) */
.tournament-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.rules-link {
  color: var(--maroon);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

.rules-link:hover {
  text-decoration: underline;
}

.survey-btn {
  display: inline-block;
  background: var(--maroon);
  color: var(--white);
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 3px;
  transition: background 0.2s;
}

.survey-btn:hover {
  background: var(--maroon-dark);
}

.year-content {
  background: var(--white);
  border-radius: 4px;
  padding: 0;
  color: var(--text);
  font-size: 1rem;
}

/* Tournament content fragments */
.tournament-info {
  margin-bottom: 30px;
}

.tournament-info h2 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.5rem;
  color: var(--maroon);
  margin-bottom: 8px;
}

.tournament-info .location a {
  color: var(--maroon);
}

.year-content h3 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.2rem;
  color: var(--maroon);
  margin: 30px 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--gray);
}

.year-content h4 {
  font-size: 0.95rem;
  color: var(--text-light);
  margin: 16px 0 8px;
}

.team-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.team-list li {
  background: var(--gray);
  padding: 6px 14px;
  border-radius: 3px;
  font-size: 0.9rem;
}

.year-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.year-content table th,
.year-content table td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

.year-content table th {
  background: var(--gray);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--text-light);
}

.year-content table tr:hover {
  background: #fafafa;
}

.year-content table .winner {
  font-weight: 700;
}

.standings-final .gold td {
  background: #FFF8E1;
  font-weight: 700;
}

.standings-final .silver td {
  background: #F5F5F5;
  font-weight: 600;
}

.standings-final .bronze td {
  background: #FBE9E7;
  font-weight: 600;
}

.no-tournament {
  background: var(--gray);
  border-radius: 4px;
  padding: 30px;
  text-align: center;
  color: var(--text-light);
  font-size: 1.1rem;
}

.photo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 10px;
}

.photo-grid figure {
  margin: 0;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}

.photo-grid img {
  width: 100%;
  height: auto;
  display: block;
}

.photo-grid figcaption {
  padding: 10px 14px;
  font-weight: 600;
  color: var(--maroon);
  background: var(--gray);
}

/* Simple centered pages (Coming Soon / 404) */
.coming-content,
.error-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
}

.coming-content h1 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 2rem;
  color: var(--maroon);
  margin-bottom: 16px;
}

.coming-content p {
  font-size: 1.15rem;
  color: var(--text-light);
}

.coming-rule,
.error-rule {
  width: 60px;
  height: 3px;
  background: var(--gold);
}

.coming-rule {
  margin-bottom: 24px;
}

.error-rule {
  margin: 20px 0;
}

.error-code {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 6rem;
  color: var(--maroon);
  line-height: 1;
}

.error-content h1 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 1.8rem;
  color: var(--text);
  margin-bottom: 12px;
}

.error-content p {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 500px;
  margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  nav a {
    padding: 12px 16px;
    font-size: 0.8rem;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .error-code {
    font-size: 4rem;
  }

  .error-content h1,
  .coming-content h1 {
    font-size: 1.5rem;
  }
}
