/* Top nav layout */
#nav-container nav {
  background-color: #2c2c2c;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  padding: 10px 0;
}

/* Navigation links */
#nav-container nav a,
#nav-container nav .dropdown-btn {
  color: #f5f5f5;
  text-decoration: none;
  font-weight: 700;
  padding: 6px 10px;
  display: inline-block;
  border-radius: 4px;
  white-space: nowrap;
}

#nav-container nav a:hover,
#nav-container nav .dropdown-btn:hover {
  color: #FCCE00;
  background-color: #444;
}

/* Dropdown container */
.dropdown {
  position: relative;
}

/* Dropdown content */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 250px;
  border: 1px solid #999;
  z-index: 10;
  top: 30px;
  left: 0;
  border-radius: 4px;
  max-height: 300px;
  overflow-y: auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Dropdown links */
.dropdown-content a {
  color: #000 !important;
  padding: 8px 12px;
  text-decoration: none;
  display: block;
  font-weight: normal;
  background-color: #fff !important;
}

.dropdown-content a:hover {
  background-color: #FCCE00 !important;
  color: #000 !important;
}

/* Show dropdown on hover (desktop) */
.dropdown:hover .dropdown-content {
  display: block;
}

/* Hamburger menu (mobile only) */
.hamburger {
  display: none;
}

/* Responsive styles */
@media (max-width: 768px) {
  .hamburger {
    display: block;
    background: #1e1e1e;
    color: white;
    font-size: 1.2rem;
    padding: 10px 16px;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
  }

  #nav-container nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px;
  }

  #nav-container.open > nav {
    display: flex !important;
  }

  #nav-container nav a,
  #nav-container nav .dropdown-btn {
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
  }

  .dropdown-content {
    position: static;
    border: none;
    background-color: #fff;
    width: 100%;
    display: none;
    box-shadow: none;
  }

  .dropdown-content a {
    color: #000;
    border-top: 1px solid #ccc;
    padding: 10px;
  }

  .dropdown-content a:hover {
    background-color: #FCCE00;
    color: #000;
  }

  .dropdown:hover .dropdown-content {
    display: none;
  }

  .dropdown.open .dropdown-content {
    display: block;
  }
}

/* ===== MP4 Button Styling (Desktop) ===== */
.mp4-button {
  background-color: #FCCE00 !important;
  color: #000000 !important;
  padding: 4px 12px !important;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 2px 0 !important;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  vertical-align: middle;
}

.mp4-button:hover,
.mp4-button:focus {
  background-color: #f0c000 !important;
  color: #000000 !important;
}

/* ===== MP4 Link Styling (Mobile Only — No Button) ===== */
@media (max-width: 768px) {
  #nav-container nav a.mp4-button {
    background: none !important;
    color: #FCCE00 !important;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
    display: block;
    text-align: left !important;
  }

  #nav-container nav a.mp4-button:hover {
    color: #fff !important;
    background: none !important;
  }
}

/* === Silk-Only Fallback Dropdown === */
body.silk-browser .silk-only-dropdown {
  display: block;
  background-color: #f5f5f5;
  padding: 20px;
  border-top: 2px solid #ccc;
  margin-top: 30px;
}

body.silk-browser .silk-only-dropdown h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #111;
}

body.silk-browser .silk-dropdown-links a {
  display: block;
  padding: 8px 12px;
  color: #000;
  text-decoration: none;
  border-top: 1px solid #ccc;
}

body.silk-browser .silk-dropdown-links a:hover {
  background-color: #FCCE00;
  color: #000;
}

/* Hide fallback dropdown unless Silk is detected */
.silk-only-dropdown {
  display: none;
}

/* ===== Silk Fallback Visibility Control ===== */
#silk-fallback-dropdown {
  display: none;
}

body.silk-browser #silk-fallback-dropdown {
  display: block;
  background: #fff;
  padding: 20px;
  border-top: 2px solid #ccc;
}

/* === Silk Test Banner (For Visual Debug Only) === */
.silk-test-banner {
  display: none;
  text-align: center;
  background: #FCCE00;
  color: #000;
  font-weight: bold;
  padding: 10px;
}

body.silk-browser .silk-test-banner {
  display: block;
}

/* ====== 🔎 Search Link Styling ====== */

/* Mobile only */
@media (max-width: 768px) {
  #nav-container nav a[href*="search_results.html"] {
    display: block !important;
    font-weight: bold;
    padding: 12px 14px;
    text-decoration: none;
    color: #f5f5f5;        /* light text so it’s visible on dark background */
    border-top: 1px solid #444; /* subtle divider */
  }

  #nav-container nav a[href*="search_results.html"]:hover {
    background: #FCCE00;
    color: #000;           /* invert on hover for emphasis */
  }
}

/* Hide on desktop */
@media (min-width: 769px) {
  #nav-container nav a[href*="search_results.html"] {
    display: none !important;
  }
}
