/* =====================================================
   VARINA VOLLEYBALL MAIN THEME
   Navy: #0A1A4F | Vegas Gold: #C5B358 | Offwhite: #F8F9FA
===================================================== */

/* ---------- Global Styles ---------- */
body {
  font-family: Calibri, "Segoe UI", Helvetica, Arial, sans-serif;
  background-color: #F8F9FA;
  color: #212529;
  margin: 0;
  padding: 0;
}

.hidden {
    display: none !important;
}

/* ---------- Navbar (Desktop + Mobile) ---------- */
.navbar {
  background-color: #0A1A4F;
  padding: 0.6rem 1rem;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 20;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1100px;
}

.navbar-brand {
  font-weight: bold;
  color: #C5B358 !important;
  font-size: 1.3rem;
  text-decoration: none;
}

.navbar-brand:hover {
  color: #e0cb6a !important;
}

/* Nav links */
.navbar-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link {
  color: #F8F9FA !important;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease-in-out;
}

.nav-link:hover {
  color: #C5B358 !important;
}

/* Hamburger icon */
#menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-icon span {
  width: 25px;
  height: 3px;
  background-color: #C5B358;
  margin: 4px 0;
  border-radius: 2px;
  transition: 0.3s;
}

/* Mobile navbar behavior */
@media (max-width: 768px) {
  .navbar-container {
    flex-wrap: wrap;
  }

  .menu-icon {
    display: flex;
  }

  .navbar-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #0A1A4F;
    position: absolute;
    top: 58px;
    left: 0;
    padding: 10px 0;
    border-top: 2px solid #C5B358;
  }

  #menu-toggle:checked + .menu-icon + .navbar-links {
    display: flex;
    animation: dropdown 0.25s ease-in;
  }

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

  .nav-link {
    padding: 10px 20px;
    width: 100%;
    text-align: left;
  }

  .navbar-brand {
    font-size: 1.1rem;
  }
}

/* ---------- Headings ---------- */
h1, h2, h3, h4, h5 {
  font-family: Calibri, "Segoe UI", Helvetica, Arial, sans-serif;
  color: #0A1A4F;
  font-weight: 600;
}

/* ---------- Buttons ---------- */
.btn-navy {
  background-color: #0A1A4F;
  color: #fff;
  border: none;
  border-radius: 6px;
  margin: 5px;
  padding: 8px 16px;
  font-weight: 600;
  transition: all 0.2s ease-in-out;
}

.btn-gold {
  background-color: #C5B358;
  color: #0A1A4F;
  border: none;
  border-radius: 6px;
  margin: 5px;
  padding: 8px 16px;
  font-weight: 600;
  transition: all 0.2s ease-in-out;
}

.btn-navy:hover {
  background-color: #C5B358;
  color: #0A1A4F;
}

.btn-gold:hover {
  background-color: #0A1A4F;
  color: #C5B358;
}

/* ---------- Hero Section ---------- */
.hero-section {
  background-color: #0A1A4F;
  color: #C5B358;
  text-align: center;
  padding: 20px 10px;
}

.hero-section img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: contain;
  object-position: center;
  transform: scale(1.8);
  transform-origin: center;
  margin: 0 auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease-in-out;
  user-select: none;
  -webkit-user-drag: none;
}

.hero-section img:hover {
  transform: scale(1.9);
}

.hero-section h2 {
  font-size: 1.4rem;
  margin-top: 5px;
}

/* ---------- Sub-Banner ---------- */
.sub-banner {
  background-color: #C5B358;
  color: #0A1A4F;
  text-align: center;
  font-weight: 600;
  padding: 12px 0;
  letter-spacing: 0.5px;
}

/* ---------- Content Section ---------- */
.content-section {
  text-align: center;
  padding: 40px 20px;
}

.content-section h3 {
  color: #0A1A4F;
  font-weight: 700;
  margin-bottom: 15px;
}

/* ---------- Cards ---------- */
.card {
  border-radius: 10px;
  border: 1px solid #DDD;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  overflow: hidden;
  background-color: #fff;
}

.card-header {
  background-color: #0A1A4F;
  color: #C5B358;
  text-transform: uppercase;
  font-weight: bold;
}

.card-body {
  background-color: #FFFFFF;
}

.card-footer a {
  color: #0A1A4F;
  font-weight: bold;
  text-decoration: none;
}

.card-footer a:hover {
  text-decoration: underline;
}

/* ---------- Player Images ---------- */
.card img,
.player-card img {
  width: 100%;
  height: auto;
  max-width: 300px;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}

/* ---------- Tables ---------- */
.table th {
  background-color: #0A1A4F;
  color: #f5d580;
}
.table-striped tbody tr:nth-of-type(odd) {
  background-color: #f8f9fa;
}
.table-bordered th, .table-bordered td {
  border-color: #ddd;
}

/* ---------- Forms ---------- */
form {
  font-family: Calibri, sans-serif;
  color: #0A1A4F;
}

.form-control,
form input,
form select,
form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #f5d580;
  border-radius: 6px;
  background-color: #ffffff;
  color: #0A1A4F;
  font-size: 1rem;
  transition: all 0.2s ease-in-out;
}

.form-control:focus,
form input:focus,
form select:focus,
form textarea:focus {
  border-color: #0A1A4F;
  box-shadow: 0 0 8px rgba(10, 26, 79, 0.25);
  outline: none;
}

/* ---------- Social Feed ---------- */
.social-feed .btn-create-post {
  background-color: #C5B358;
  color: #0A1A4F;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 8px;
}

.social-feed .btn-create-post:hover {
  background-color: #0A1A4F;
  color: #C5B358;
}

.social-feed .bg-white {
  padding: 16px;
  border: 1px solid rgba(10, 26, 79, 0.15);
}

/* ---------- Sponsors Section ---------- */
.sponsors-section {
  background-color: #C5B358;
  color: #0A1A4F;
  text-align: center;
  padding: 30px 20px;
  border-top: 4px solid #0A1A4F;
}

.sponsors-section h3 {
  font-weight: 700;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.sponsor-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.sponsor-logos img {
  height: 80px;
  width: auto;
  transition: transform 0.3s ease-in-out;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.sponsor-logos img:hover {
  transform: scale(1.1);
}

/* ---------- Footer ---------- */
footer {
  background-color: #0A1A4F;
  color: #F8F9FA;
  text-align: center;
  padding: 10px 0;
  margin-top: 40px;
}

footer a {
  color: #C5B358;
  text-decoration: none;
}

footer a:hover {
  color: #e0cb6a;
}

/* ---------- Mobile Adjustments ---------- */
@media (max-width: 768px) {
  .hero-section img { height: 120px; transform: scale(1.4); }
  .hero-section h2 { font-size: 1rem; }
  .content-section { padding: 25px 10px; }
  .btn-navy, .btn-gold { width: 100%; margin: 6px 0; padding: 10px; }
  .sponsor-logos { flex-direction: column; gap: 20px; }
  .sponsor-logos img { height: 60px; }
  footer { font-size: 0.9rem; padding: 12px 5px; }
  .card img, .player-card img { max-width: 200px; }
}

/* ---------- Dropdown Menu ---------- */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Hidden checkbox for mobile toggle */
.dropdown-checkbox {
  display: none;
}

/* Dropdown toggle link */
.dropdown-toggle {
  cursor: pointer;
  color: #F8F9FA;
  text-decoration: none;
  display: inline-block;
}

/* Dropdown menu (default hidden) */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #0A1A4F;
  border: 1px solid #C5B358;
  border-radius: 6px;
  min-width: 160px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
  padding: 5px 0;
  z-index: 1000;
}

.dropdown-item {
  display: block;
  color: #F8F9FA;
  padding: 10px 14px;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.dropdown-item:hover {
  background-color: #C5B358;
  color: #0A1A4F;
}

/* ---------- Desktop Hover ---------- */
@media (min-width: 769px) {
  .dropdown:hover .dropdown-menu {
    display: block;
  }
}

/* ---------- Mobile Tap-to-Expand ---------- */
@media (max-width: 768px) {
  .dropdown {
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    border: none;
    background-color: transparent;
    box-shadow: none;
    padding: 0;
  }

  /* ✅ Only show when the roster checkbox is checked */
  .dropdown-checkbox:checked + .dropdown-toggle + .dropdown-menu {
    display: block;
  }

  .dropdown-item {
    padding: 10px 20px;
    color: #F8F9FA;
    border-left: 3px solid transparent;
  }

  .dropdown-item:hover {
    background-color: rgba(197, 179, 88, 0.2);
    border-left: 3px solid #C5B358;
    color: #C5B358;
  }
}

/* ---------- Varsity / JV Toggle Tabs ---------- */
.level-tabs {
  display: flex;
  justify-content: center;
  margin-top: 15px;
  margin-bottom: 20px;
}

.level-tabs .tab {
  flex: 1;
  max-width: 150px;
  text-align: center;
  padding: 10px 0;
  font-weight: 600;
  border: 2px solid #0A1A4F;
  background-color: #f8f9fa;
  color: #0A1A4F;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

.level-tabs .tab:first-child {
  border-right: none;
  border-radius: 8px 0 0 8px;
}

.level-tabs .tab:last-child {
  border-radius: 0 8px 8px 0;
}

.level-tabs .tab:hover {
  background-color: #C5B358;
  color: #fff;
}

.level-tabs .tab.active {
  background-color: #0A1A4F;
  color: #C5B358;
  border-color: #0A1A4F;
}
