/* Memegames site nav — CSS recreation of ~2010 todaysthv.com (KTHV) top menu gloss.
   Studied from Wayback: https://web.archive.org/web/20100315000000/http://www.todaysthv.com/
   and /skins/KTHV/menu/styles.css (blue MenuItemBackground, Hover, red selected).
   No THV images or logos — gradients only. Safe for Chrome 128 mobile. */

.mg-nav-wrap {
  width: 100%;
  border-left: 1px solid #617fb5;
  border-bottom: 1px solid #446891;
  background: linear-gradient(
    to bottom,
    #385ea6 0%,
    #3c61a9 8%,
    #4469af 18%,
    #4b70b5 28%,
    #5779bb 42%,
    #5d7ebf 50%,
    #5779bb 58%,
    #4b70b5 72%,
    #4065ac 86%,
    #385ea6 100%
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  position: relative;
  overflow: hidden;
}

/* Soft top highlight band (gloss) */
.mg-nav-wrap::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 45%;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.38) 0%,
    rgba(255, 255, 255, 0.12) 55%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Gentle periodic gleam across the bar */
.mg-nav-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -40%;
  width: 35%;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.22) 45%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(0);
  animation: mg-nav-gleam 5.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes mg-nav-gleam {
  0%, 30% { transform: translateX(0); opacity: 0; }
  40% { opacity: 1; }
  70% { transform: translateX(380%); opacity: 1; }
  80%, 100% { transform: translateX(380%); opacity: 0; }
}

.mg-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  position: relative;
  z-index: 3;
}

.mg-nav li {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  border-right: 1px solid #446891;
}

.mg-nav a {
  display: block;
  padding: 0 12px;
  line-height: 28px;
  font: bold 12px Arial, Verdana, sans-serif;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  background: transparent;
}

/* Hover: silver/blue gloss like Hover.gif; text goes dark */
.mg-nav a:hover,
.mg-nav a:focus {
  color: #000;
  text-shadow: none;
  background: linear-gradient(
    to bottom,
    #6788be 0%,
    #eaf0f8 12%,
    #d4e0f0 35%,
    #b8cce4 55%,
    #9bb4d8 78%,
    #7a99c8 100%
  );
  outline: none;
}

/* Active page: red gloss like MainItemBackgroundSelected.gif */
.mg-nav a.mg-nav-active,
.mg-nav a.mg-nav-active:hover,
.mg-nav a.mg-nav-active:focus {
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
  background: linear-gradient(
    to bottom,
    #f25a5a 0%,
    #e84a4a 15%,
    #d03a3e 40%,
    #b41e28 70%,
    #91030e 100%
  );
}

/* Fast shimmer sweep on hover (cheap transform) */
.mg-nav a::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(0);
  opacity: 0;
  pointer-events: none;
}

.mg-nav a:hover::after,
.mg-nav a:focus::after {
  opacity: 1;
  animation: mg-nav-shimmer 0.55s ease-out;
}

@keyframes mg-nav-shimmer {
  from { transform: translateX(0); }
  to { transform: translateX(280%); }
}

@media (prefers-reduced-motion: reduce) {
  .mg-nav-wrap::after,
  .mg-nav a::after,
  .mg-nav a:hover::after,
  .mg-nav a:focus::after {
    animation: none !important;
    opacity: 0 !important;
  }
}

/* Slightly larger tap targets on small screens; still one horizontal row */
@media (max-width: 600px) {
  .mg-nav a {
    padding: 0 14px;
    line-height: 34px;
    font-size: 13px;
  }
}
