/* Fox-style Header - Scoped styles for the Fox Header widget */
.fox-header {
  font-family: Arial, sans-serif;
  width: 100%;
  color: #111;
}

/* Top black bar */
.fox-header .fox-top-bar {
  background: #000 !important;
  padding: 5px 20px;
  color: #fff !important;
  font-size: 14px;
  display: flex !important;
  align-items: center;
  gap: 15px;
}
.fox-header .fox-top-bar a {
  color: #ccc !important;
  text-decoration: none;
  font-weight: bold;
}
.fox-header .fox-top-bar a:hover {
  color: #fff !important;
}

/* Main blue navigation row */
.fox-header .fox-main-nav {
  background: #002868 !important; /* Fox blue */
  display: flex !important;
  align-items: center;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* Protruding logo box */
.fox-header .fox-logo-box {
  background: #002868;
  border-bottom: 8px solid #d90000; /* thicker red base */
  padding: 14px 16px; /* bigger box */
  margin-bottom: -38px; /* push further to touch the white bar */
  z-index: 2;
  display: inline-block;
}
.fox-header .fox-logo-box img {
  height: 70px; /* bigger logo */
  display: block;
}

/* Menu links */
.fox-header .fox-menu {
  display: flex !important;
  flex: 1;
  gap: 20px;
  margin-left: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.fox-header .fox-menu a {
  color: #fff !important;
  text-decoration: none;
  font-weight: bold;
  padding: 15px 0;
  position: relative;
  white-space: nowrap;
}
.fox-header .fox-menu a:hover {
  color: #ff0000 !important;
}

/* Auth buttons (right side) */
.fox-header .fox-auth {
  display: flex;
  gap: 10px;
  align-items: center;
}
.fox-header .fox-btn {
  border: none;
  padding: 8px 12px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 3px;
  text-decoration: none;
  display: inline-block;
}
.fox-header .fox-btn.fox-login {
  background: #003366;
  color: #fff;
}
.fox-header .fox-btn.fox-watch {
  background: #d90000;
  color: #fff;
}

/* Trending bar (white) */
.fox-header .fox-trending {
  background: #fff !important;
  padding: 8px 20px;
  display: flex !important;
  gap: 20px;
  border-bottom: 1px solid #ddd;
  position: relative;
  z-index: 0;
  align-items: center;
  flex-wrap: wrap;
  /* Make room for the protruding logo so the image is visible by default */
  padding-left: 180px;
}
.fox-header .fox-trending a {
  text-decoration: none;
  font-weight: bold;
  color: #333 !important;
}
.fox-header .fox-trending a:hover {
  text-decoration: underline;
}
.fox-header .fox-trending .fox-trending-label {
  color: #ff0000 !important;
}

/* Rectangular image inside trending bar (after logo, before links) */
.fox-header .fox-trending .fox-trending-image {
  display: inline-flex;
  align-items: center;
  margin-right: 12px;
}
.fox-header .fox-trending .fox-trending-image img {
  display: block;
  height: 28px; /* default desktop height */
  width: auto;
}

/* Responsiveness */
@media (max-width: 1200px) {
  .fox-header .fox-menu {
    gap: 14px;
  }
}

@media (max-width: 1024px) {
  .fox-header .fox-logo-box img {
    height: 50px;
  }
  .fox-header .fox-menu {
    gap: 12px;
  }
  .fox-header .fox-btn {
    padding: 8px 10px;
  }
}

@media (max-width: 900px) {
  .fox-header .fox-main-nav {
    padding: 0 14px;
  }
  .fox-header .fox-menu {
    gap: 12px;
    margin-left: 14px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: thin;
  }
  .fox-header .fox-menu::-webkit-scrollbar {
    height: 6px;
  }
  .fox-header .fox-menu::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
  }
  .fox-header .fox-auth {
    gap: 8px;
  }
  .fox-header .fox-btn {
    padding: 7px 10px;
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .fox-header .fox-logo-box img {
    height: 45px;
  }
  .fox-header .fox-top-bar {
    gap: 10px;
    padding: 5px 14px;
    font-size: 13px;
    overflow-x: auto;
    white-space: nowrap;
  }
  .fox-header .fox-main-nav {
    gap: 8px;
  }
  .fox-header .fox-menu {
    flex: 1;
    gap: 10px;
    margin-left: 12px;
  }
  .fox-header .fox-menu a {
    padding: 12px 0;
    font-size: 14px;
  }
  .fox-header .fox-btn {
    padding: 6px 9px;
    font-size: 13px;
  }
  .fox-header .fox-trending {
    gap: 12px;
    padding: 8px 14px;
    padding-left: 140px;
  }
  .fox-header .fox-trending .fox-trending-image img {
    height: 24px; /* scale down image on tablets */
  }
}

@media (max-width: 560px) {
  .fox-header .fox-main-nav {
    padding: 0 10px;
  }
  .fox-header .fox-logo-box {
    padding: 8px;
    margin-bottom: -18px;
  }
  .fox-header .fox-logo-box img {
    height: 42px;
  }
  .fox-header .fox-menu {
    gap: 8px;
  }
  .fox-header .fox-btn {
    padding: 6px 8px;
  }
  .fox-header .fox-trending {
    gap: 10px;
    padding-left: 110px;
  }
  .fox-header .fox-trending .fox-trending-image img {
    height: 20px; /* scale down image on small phones */
  }
}

/* Subtle focus styles for accessibility */
.fox-header a:focus,
.fox-header .fox-btn:focus {
  outline: 2px solid #ff0000;
  outline-offset: 2px;
}

/* Optional hover underline effect on menu */
.fox-header .fox-menu a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 6px;
  width: 0;
  height: 2px;
  background: #ff0000;
  transition: width 0.2s ease;
}
.fox-header .fox-menu a:hover::after {
  width: 100%;
}