/* I-70 Bass Anglers — Base Styles
   Variables, reset, typography, header, nav, tables, buttons, footer, utilities
   ============================================= */

/* CSS Custom Properties (Variables) */
:root {
  --primary-color: #2d3f6b;
  --secondary-color: #6b7c52;
  --accent-color: #c8922a;
  --teal-color: #6b7c52;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --background-light: #f2ece4;
  --border-color: #ddd3c4;
  --white: #ffffff;
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

  /* =============================================
     HEADER BACKGROUND PHOTO
     Change the values below to update the header.
     --header-photo : path to the image file
     --header-pos-x : horizontal crop (left | center | right | 0%-100%)
     --header-pos-y : vertical crop   (top  | center | bottom | 0%-100%)
     ============================================= */
  --header-photo: url('/images/launch.jpg');
  --header-pos-x: center;
  --header-pos-y: 55%;
}

/* Base Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  margin: 0;
  padding: 0;
  background-color: var(--white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Header Styles */
.site-header {
  background:
    linear-gradient(rgba(35, 48, 80, 0.68), rgba(35, 48, 80, 0.68)),
    var(--header-photo) var(--header-pos-x) var(--header-pos-y)/cover no-repeat;
  color: var(--white);
  padding: 1rem 0;
  min-height: 160px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 2rem;
  min-height: 100px;
}

/* Logo Styles */
.site-logo {
  flex-shrink: 0;
}

.logo-image {
  height: 200px;
  width: auto;
  transition: opacity 0.2s ease;
}

.logo-image:hover {
  opacity: 0.9;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 100;
}

.mobile-menu-toggle:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background-color: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Hamburger animation when menu is open */
.mobile-menu-toggle.menu-open .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.menu-open .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.menu-open .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Navigation Styles */
.main-nav {
  margin-left: auto;
  flex-shrink: 0;
  align-self: flex-end;
  padding-bottom: 0.5rem;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.main-nav li {
  position: relative;
}

.main-nav a {
  color: var(--white);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  display: block;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--accent-color);
  text-decoration: none;
}

/* Dropdown Menu Styles */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border-radius: 0.5rem;
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0;
  min-width: 220px;
  width: max-content;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 50;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown:last-child .dropdown-menu {
  left: auto;
  right: 0;
}

.dropdown-menu {
  display: flex;
  flex-direction: column;
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  color: var(--text-dark);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.75rem 1rem;
  border-radius: 0;
  font-weight: 400;
}

.dropdown-menu a:hover {
  background-color: var(--background-light);
  color: var(--primary-color);
}

/* Main Content */
.main-content {
  min-height: calc(100vh - 200px);
  padding: 2rem 0;
}

.page-title {
  color: var(--primary-color);
  border-bottom: 3px solid var(--accent-color);
  padding-bottom: 0.5rem;
  margin-bottom: 2rem;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--white);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}

th, td {
  padding: 0.875rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

th {
  background-color: var(--primary-color);
  color: var(--white);
  font-weight: 600;
}

tr:hover {
  background-color: var(--background-light);
}

/* Standings Tables */
.standings-table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.standings-table table {
  min-width: max-content;
}

.standings-table td,
.standings-table th {
  text-align: center;
  white-space: nowrap;
}

.standings-table td:first-child,
.standings-table th:first-child,
.standings-table td:nth-child(2),
.standings-table th:nth-child(2) {
  text-align: left;
  position: sticky;
}

.standings-table td:first-child,
.standings-table th:first-child {
  left: 0;
  min-width: 2.5rem;
}

.standings-table td:nth-child(2),
.standings-table th:nth-child(2) {
  left: 2.5rem;
  min-width: 10rem;
}

.standings-table th:first-child,
.standings-table th:nth-child(2) {
  background-color: var(--primary-color);
  z-index: 2;
}

.standings-table td:first-child,
.standings-table td:nth-child(2) {
  background-color: var(--white);
  z-index: 1;
}

.standings-table tr:hover td:first-child,
.standings-table tr:hover td:nth-child(2) {
  background-color: var(--background-light);
}

/* Dropped (non-counted) tournament score */
td.dropped {
  color: var(--text-light);
  opacity: 0.45;
  font-style: italic;
}

/* Total points column emphasis */
td.total-pts {
  font-weight: 700;
  color: var(--primary-color);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

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

.btn-primary:hover {
  background: #1e40af;
  text-decoration: none;
  color: var(--white);
}

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

.btn-secondary:hover {
  background: #047857;
  text-decoration: none;
  color: var(--white);
}

/* Calendar Embed Styles */
.calendar-embed {
  margin: 2rem 0;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--white);
}

.calendar-embed iframe {
  display: block;
  max-width: 100%;
  border-radius: 0.5rem;
}

.calendar-instructions {
  background: var(--background-light);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin: 2rem 0;
}

.calendar-instructions h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.calendar-instructions ol {
  margin-bottom: 1rem;
}

.calendar-instructions li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.calendar-instructions p {
  margin-bottom: 0;
  font-style: italic;
  color: var(--text-light);
}

@media (max-width: 768px) {
  .calendar-embed iframe { height: 500px; }
  .calendar-instructions { padding: 1rem; }
  .calendar-instructions h4 { font-size: 1rem; }
}

@media (max-width: 480px) {
  .calendar-embed iframe { height: 400px; }
}

/* Cards */
.card {
  background: var(--white);
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Lists */
ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.5rem;
}

/* =============================================
   FOOTER — full-bleed, no .container wrapper
   ============================================= */
.site-footer {
  background: var(--text-dark);
  color: var(--white);
  padding: 3rem 2rem 1rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #d1d5db;
  text-decoration: none;
}

.footer-section a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 1rem;
  text-align: center;
  color: #9ca3af;
}

/* Responsive Design */
@media (min-width: 1201px) {
  .header-content { gap: 3rem; }
}

@media (max-width: 1200px) and (min-width: 993px) {
  .header-content { gap: 1.5rem; }
  .main-nav ul { gap: 1.5rem; }
  .main-nav a { padding: 0.4rem 0.8rem; font-size: 0.95rem; }
}

@media (max-width: 992px) {
  .header-content { flex-wrap: wrap; gap: 1rem; }
  .main-nav { margin-left: 0; width: 100%; }
  .main-nav ul { justify-content: center; gap: 1rem; }
  .main-nav a { padding: 0.4rem 0.7rem; font-size: 0.9rem; }
}

@media (max-width: 768px) {
  .site-header { padding: 0.75rem 0; min-height: 0; }

  .header-content {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    text-align: left;
    min-height: auto;
  }

  .mobile-menu-toggle { display: flex; order: 2; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary-color);
    margin-left: 0;
    padding: 0;
    box-shadow: var(--shadow-lg);
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    max-height: 0;
    overflow: hidden;
  }

  .main-nav.nav-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    max-height: 80vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 1rem 0;
  }

  .main-nav.nav-open::-webkit-scrollbar { width: 4px; }
  .main-nav.nav-open::-webkit-scrollbar-track { background: rgba(255,255,255,0.1); }
  .main-nav.nav-open::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.3); border-radius: 2px; }

  .logo-image { height: 110px; order: 1; }

  .main-nav ul { flex-direction: column; gap: 0; width: 100%; padding: 0; margin: 0; }
  .main-nav li { width: 100%; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .main-nav li:last-child { border-bottom: none; }
  .main-nav a { display: block; padding: 1rem 1.5rem; color: var(--white); text-align: left; border-radius: 0; font-size: 1rem; }
  .main-nav a:hover { background-color: rgba(255,255,255,0.1); }

  .dropdown-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; background: rgba(255,255,255,0.05); margin: 0; border-radius: 0; padding: 0;
  }

  .dropdown-menu a { color: var(--white); padding: 0.75rem 2.5rem; background: rgba(255,255,255,0.05); font-size: 0.9rem; }
  .dropdown-menu a:hover { background: rgba(255,255,255,0.1); }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }

  .container { padding: 0 0.75rem; }
  table { font-size: 0.875rem; }
  th, td { padding: 0.5rem; }
  .footer-content { grid-template-columns: 1fr; gap: 1.5rem; }
  .site-footer { padding: 2rem 1.25rem 1rem; }
}

@media (max-width: 480px) {
  .logo-image { height: 90px; }
  .main-content { padding: 1rem 0; }
  .card { padding: 1rem; }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.mb-1 { margin-bottom: 0.25rem; } .mb-2 { margin-bottom: 0.5rem; } .mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; } .mb-5 { margin-bottom: 1.25rem; } .mb-6 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.25rem; } .mt-2 { margin-top: 0.5rem; } .mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; } .mt-5 { margin-top: 1.25rem; } .mt-6 { margin-top: 1.5rem; }
.p-2 { padding: 0.5rem; } .p-3 { padding: 0.75rem; } .p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; } .p-6 { padding: 1.5rem; }

/* Site Banner */
.site-banner {
  background-color: #ffc107;
  color: #000;
  padding: 12px 0;
  text-align: center;
  font-weight: 600;
  border-bottom: 2px solid #ff9800;
}

.site-banner p { margin: 0; font-size: 1rem; }

/* Upcoming Events Two-Column Section */
.upcoming-events {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1rem 0 2rem;
}

.upcoming-event {
  display: block;
  background: var(--background-light);
  border-left: 4px solid var(--accent-color);
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: var(--text-dark);
  transition: background 0.2s ease, transform 0.2s ease;
}

.upcoming-event:hover {
  background: var(--border-color);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--text-dark);
}

.upcoming-event p { margin: 0 0 0.25rem; font-size: 1.2rem; color: var(--text-dark); }
.upcoming-event h4 { color: var(--text-light); margin: 0; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 500; }

@media (max-width: 600px) {
  .upcoming-events { grid-template-columns: 1fr; }
}

/* Home Page Photo Gallery */
.home-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
  list-style: none;
  padding: 0;
}

.home-gallery figure { margin: 0; border-radius: 6px; overflow: hidden; background: #f5f5f5; box-shadow: 0 2px 6px rgba(0,0,0,0.1); }
.home-gallery img { width: 100%; height: 220px; object-fit: cover; display: block; }
.home-gallery figcaption { padding: 0.5rem 0.75rem; font-size: 0.875rem; color: #666; text-align: center; }

@media (max-width: 600px) {
  .home-gallery { grid-template-columns: 1fr; }
}

/* Print Styles */
@media print {
  .site-header, .site-footer, .main-nav { display: none; }
  .main-content { padding: 0; }
  body { font-size: 12pt; line-height: 1.4; }
  h1, h2, h3 { page-break-after: avoid; }
}

/* Focus / Skip Link */
a:focus, button:focus, input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--text-dark);
  color: var(--white);
  padding: 8px;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  z-index: 100;
}

.skip-link:focus { top: 0; }
