/* styles.css */

/* ───────────────────────────────────────────────────────────────
   1) RESET / BASE TYPOGRAPHY
   ─────────────────────────────────────────────────────────────── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #f9f9f9;
  color: #333;

  /* ensure page content never hides behind the footer */
  padding-bottom: 200px; /* Adjust if your footer changes height */
}

.container {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 0;
}

/* ───────────────────────────────────────────────────────────────
   2) BASIC NAVBAR (DESKTOP) + DROPDOWN
   ─────────────────────────────────────────────────────────────── */
nav {
  background-color: #111190;
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* The “.main-nav” wrapper holds the logo + the nav-list */
nav .main-nav {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo styles */
nav .logo {
  display: flex;
  align-items: center;
}
nav .logo img {
  height: 125px;
  margin-right: 10px;
  width: auto;
}

/* Hamburger is hidden by default (desktop) */
#hamburger-button {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  padding: 4px 8px;
}

/* Horizontal list of nav items (desktop) */
nav .nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

/* Each top‐level item */
nav .nav-list > li {
  position: relative;
  margin-left: 20px;
}

/* Link styling */
/*  • Changed to inline-flex + align-items:center so that any arrow (▾) is centered
   • Added white-space: nowrap so “Camp ▾” never wraps to two lines */
nav .nav-list > li > a {
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  padding: 8px 12px;
  display: inline-flex;          /* ← inline-flex forces vertical centering of arrow/text */
  align-items: center;           /* ← ensures ▾ sits at same midline as the text */
  white-space: nowrap;           /* ← prevents wrapping, so “Camp ▾” stays on one line */
  transition: background-color 0.2s ease;
}
nav .nav-list > li > a:hover,
nav .nav-list > li > a.active {
  background-color: #E1008F;
}

/* Dropdown parent link (“Camp ▾” or “About ▾” etc.) */
nav .nav-list > li.dropdown > .dropbtn {
  cursor: pointer;
}

/* Dropdown menu (hidden initially) */
nav .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #E1008F;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 160px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 200;
  border-radius: 4px;
}

/* Show dropdown‐menu on hover */
nav .nav-list > li.dropdown:hover .dropdown-menu {
  display: block;
}

/* Dropdown items */
nav .dropdown-menu li a.drop-item {
  display: block;
  padding: 8px 12px;
  color: #fff;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
nav .dropdown-menu li a.drop-item:hover,
nav .dropdown-menu li a.drop-item.active {
  background-color: #063a65;
}

/* ───────────────────────────────────────────────────────────────
   FORCE ALL DROPDOWN LINKS TO WHITE
   (ensures submenu links stay white even if a generic “a { color }” exists)
   ─────────────────────────────────────────────────────────────── */
nav .dropdown-menu li a {
  color: #fff !important;
}

/* ───────────────────────────────────────────────────────────────
   3) BUTTON / LINK / FORM / GALLERY / OTHER GENERIC STYLES
   ─────────────────────────────────────────────────────────────── */

/* Buttons */
button,
input[type="submit"] {
  background-color: #00457c;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
}
button:hover,
input[type="submit"]:hover {
  background-color: #E1008F;
}

/* Anchor tags */
a {
  color: #00457c;
  font-weight: bold;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Forms (Registration page) */
form {
  background-color: #fff;
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0 0 6px rgba(0,0,0,0.1);
}
form label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
}
form input[type="text"],
form input[type="email"],
form input[type="tel"],
form select,
form textarea {
  width: 100%;
  padding: 8px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Center the registration form on the page */
.form-container {
  max-width: 600px;      /* or whatever width you prefer */
  margin: 40px auto;     /* auto left/right margins center it */
  padding: 0 20px;       /* optional: some horizontal padding */
}

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.gallery-grid img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* Players list & search (players.html) */
#searchInput {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
#playerList {
  list-style: none;
}
#playerList li {
  background-color: #fff;
  margin-bottom: 8px;
  padding: 12px;
  border-radius: 4px;
  box-shadow: 0 0 4px rgba(0,0,0,0.05);
}
#playerList li a {
  font-weight: bold;
}

/* Athlete profile layout */
.profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
/* Only target the FIRST <img> inside .profile-header (the big player photo) */
.profile-header > img {
  width: 400px;   /* change this to resize ONLY the large photo */
  height: auto;
  border-radius: 6px;
  object-fit: cover;
}
.position-diagram {
  width: 50px;   /* small “diamond” icon stays at 50px */
  height: auto;
  object-fit: contain;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  border-radius: 4px;
}
.profile-details dt {
  font-weight: bold;
  margin-top: 8px;
}
.profile-details dd {
  margin-left: 0;
  margin-bottom: 10px;
}

/* ───────────────────────────────────────────────────────────────
   4) MOBILE‐FRIENDLY NAVIGATION
   Kick in at 768px or below; hide the desktop menu, show ☰
   ─────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Show the hamburger button on mobile */
  #hamburger-button {
    display: block;
  }

  /* Hide the horizontal nav‐list by default */
  nav .nav-list {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #111190;
  }

  /* When .nav-list has class .nav-open, display as vertical list */
  nav .nav-list.nav-open {
    display: flex;
  }

  /* Stack each <li> to full width */
  nav .nav-list li {
    margin: 0;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  nav .nav-list li:first-child {
    border-top: none;
  }
  nav .nav-list li a {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    font-size: 1rem;
  }

  /* Make the dropdown submenu “flow” underneath on mobile */
  nav .nav-list .dropdown .dropdown-menu {
    position: static;
    box-shadow: none;
    background-color: #063a65;
  }
  nav .nav-list .dropdown .dropdown-menu li a {
    padding-left: 32px;
  }
}

/* At very narrow widths (optional tweak) */
@media (max-width: 480px) {
  /* You can shrink text or line‐height if needed */
  nav .nav-list li a {
    font-size: 0.9rem;
    padding: 10px 12px;
  }
}

/* ───────────────────────────────────────────────────────────────
   5) FOOTER (multi-column layout)
   ─────────────────────────────────────────────────────────────── */
footer {
  background-color: #111190;
  color: #fff;
  width: 100%;
  margin-top: 40px; /* space above footer */
}

/* ───────────────────────────────────────────────────────────────
   5a) .footer-top: Contains 4 columns side by side
   ─────────────────────────────────────────────────────────────── */
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 20px; /* top/right/bottom/left */
  gap: 20px;
}

/* Each “column” in the footer */
.footer-column {
  flex: 1 1 220px;   /* grow, shrink, base width */
  color: #fff;
}

/* Column #1: Logo (constrain its size) */
.footer-logo img {
  max-width: 180px;
  height: auto;
  display: block;
}

/* Column headings */
.footer-column h4 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: #E1008F; /* gold accent (adjust as needed) */
}

/* Footer lists */
.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-column ul li {
  margin-bottom: 8px;
}
.footer-column ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
}
.footer-column ul li a:hover {
  text-decoration: underline;
}

/* Column #4: Connect (email + newsletter form + social icons) */
.footer-connect .footer-email {
  font-size: 0.95rem;
  margin-bottom: 8px;
}

/* Newsletter form inside footer */
.footer-newsletter-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.footer-newsletter-form input[type="email"] {
  flex: 1 1 180px; /* expand but not less than 180px */
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  font-size: 0.95rem;
}
.footer-newsletter-form button {
  padding: 8px 16px;
  background-color: #E1008F;
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.footer-newsletter-form button:hover {
  background-color: #cfa11a;
}

/* Social icons row */
.footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.footer-social img {
  width: 28px;
  height: 28px;
}

/* ───────────────────────────────────────────────────────────────
   5b) .footer-bottom: Single‐row bar at the very bottom
   ─────────────────────────────────────────────────────────────── */
.footer-bottom {
  background-color: #E1008F; /* slightly darker */
  text-align: center;
  padding: 12px 20px;
}
.footer-bottom p {
  margin: 4px 0;
  font-size: 0.85rem;
  color: #fff;
}
.footer-bottom p a {
  color: #a8c4eb;
}
.footer-bottom p a:hover {
  color: #fff;
}

/* ───────────────────────────────────────────────────────────────
   6) RESPONSIVE ADJUSTMENTS
   ─────────────────────────────────────────────────────────────── */
@media (max-width: 992px) {
  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-column {
    flex: 1 1 100%;
  }
  .footer-newsletter-form {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .footer-column h4 {
    font-size: 1.1rem;
  }
  .footer-social img {
    width: 24px;
    height: 24px;
  }
}