@import url("../root/root.css");

/* DUCKENGLISH LOGO */
/* ------------------------------------------------------------------------- */

.logo img {
  width: clamp(12rem, 14vw, 24rem);
  margin-left: 2rem;
  align-items: center;
  justify-content: center;
}

.logo a {
  display: block;
  margin: 0;
  padding: 0;
}

/* PINK HEADER BAR */
/* ------------------------------------------------------------------------- */
header {
  position: relative;
  width: 100%;
  display: flex;
  padding: 0.2rem 0;
  margin: 0;
  background-color: var(--duck-pink);
  margin-bottom: 2rem;
  box-shadow: 0 0.4rem 0.8rem rgba(0, 0, 0, 0.3);
  color: var(--duck-white);
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  border-bottom-left-radius: 1.8rem;
  border-bottom-right-radius: 1.8rem;
}

/* HEADER ICONS AND TITLES LAYOUT */
/* ------------------------------------------------------------------------- */
header nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

header nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  gap: clamp(0.5rem, 3.5vw, 6rem);
}

header nav ul li {
  position: relative;
}

/* HEADER LINKS - TEXT */
/* ----------------------------------------------------------------------------- */
header nav a {
  padding: clamp(0.6rem, 1vw, 1rem) clamp(1.2rem, 2vw, 2rem);
  display: block;
  border-radius: 0.6rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-family: "Poppins", Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
}

header nav a:hover {
  transform: scale(1.05);
}

/* HEADER ICONS AND TITLE WORDS SIZE */
/* ------------------------------------------------------------------------- */
.header-icon-words {
  font-size: clamp(0.8rem, 1vw, 2rem);
  font-weight: 600;
}

.header-icons {
  font-size: clamp(0.6rem, 1.8vw, 1.6rem);
  margin-bottom: 0.5rem;
  vertical-align: middle;
}

header a {
  text-decoration: none;
}

header nav a {
  color: var(--duck-white);
}

header nav a:hover {
  text-decoration: none;
}


/* HEADER ICONS AND TITLES ON TWO LINES */
/* ------------------------------------------------------------------------- */
.header-items a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  white-space: nowrap;
}
.header-items {
  position: relative;
}

/* DROPDOWN MENU LINKS */
/* ------------------------------------------------------------------------- */
.dropdown-content {
  display: block;
  position: absolute;
  top: 102%;
  left: 50%;
  transform: translateX(-50%);
  padding: 0;
  margin: 0;
  border-radius: 1.8rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease;
  min-width: 14rem; 
  width: max-content;
}

/* DROPDOWN CONTAINER BOX */
.dropdown-game-link {
  font-size: clamp(1.2rem, 1vw, 1.6rem);
  font-weight: 600;
  color: var(--duck-charcoal);
  background-color: var(--duck-yellow);
    background: linear-gradient(90deg, var(--duck-yellow) 70%, var(--duck-yellow-light) 100%);
  padding: 1.2rem;
  border-radius: 1.8rem;
  box-shadow: 0 0.6rem 2.4rem rgba(44, 44, 44, 0.3);
  display: block;
  text-align: center;
  transition: opacity 0.3s ease;
  cursor: pointer;
  z-index: 1000;
}
.dropdown-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dropdown-content li {
  width: 20rem;
}

.dropdown-content a:hover {
  background-color: var(--duck-pink);
  transform: scale(1.03);
  box-shadow: 0 0.2rem 0.6rem rgba(0, 0, 0, 0.2);
}

.dropdown:hover .dropdown-content {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  animation: dropdown-bounce 0.4s cubic-bezier(0.22, 1, 0.36, 1.11);
}


.dropdown-content {
  animation: dropdown-bounce 0.24s cubic-bezier(0.22, 1, 0.36, 1.11);
  will-change: transform, opacity;
}

@keyframes dropdown-bounce {
  0% {
    transform: translateX(-50%) translateY(-12px) scale(0.95);
    opacity: 0;
  }
  60% {
    transform: translateX(-50%) translateY(2px) scale(1.04);
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) translateY(0) scale(1);
    opacity: 1;
  }
}


.dropdown-content li {
  opacity: 0;
  transform: translateY(-8px);
  animation: dropdown-fade 0.3s ease forwards;
}

.dropdown-content li:nth-child(1)  { animation-delay: 0.05s; }
.dropdown-content li:nth-child(2)  { animation-delay: 0.1s; }
.dropdown-content li:nth-child(3)  { animation-delay: 0.15s; }
.dropdown-content li:nth-child(4)  { animation-delay: 0.2s; }
.dropdown-content li:nth-child(5)  { animation-delay: 0.25s; }
.dropdown-content li:nth-child(6)  { animation-delay: 0.3s; }
.dropdown-content li:nth-child(7)  { animation-delay: 0.35s; }
.dropdown-content li:nth-child(8)  { animation-delay: 0.4s; }
.dropdown-content li:nth-child(9)  { animation-delay: 0.45s; }
.dropdown-content li:nth-child(10) { animation-delay: 0.5s; }


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

.dropdown-content a:hover, .dropdown-game-link:hover {
  background: var(--duck-pink) !important;
  background-color: var(--duck-pink) !important; /* fallback */
  color: var(--duck-white) !important;
  transform: scale(1.03);
  box-shadow: 0 0.2rem 0.6rem rgba(0, 0, 0, 0.2);
}

/* force the dropdown open */
/* .dropdown-content.show {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
} */

/* 800 - 1023 TABLET SIZE*/ 
/* ---------------------------------------------------------------------------- */
@media (min-width: 800px) and (max-width: 1023px) {

  header{
      margin-bottom: 1.4rem;

  }
  .header-icons {
    display: flex;
  }
  .header-icon-words {
    display: none;
  }

  /* GAP BETWEEN ICONS */
  header nav ul {
    gap: clamp(1rem, 6vw, 10rem);
  }

  .dropdown-game-link {
    font-size: clamp(1.2rem, 1.4vw, 1.8rem);
  }

  .dropdown-content li {
    width: clamp(10rem, 20vw, 22rem);
  }
}

/* MAX WIDTH 800 */
/* ---------------------------------------------------------------------------- */
@media (max-width: 800px) {
    header {
      min-height: 3.5rem;
      height: 3.5rem;
  margin-bottom: 0.8rem;
  border-bottom-left-radius: 1.5rem;
  border-bottom-right-radius: 1.5rem;  }
  
.logo img {
  align-items: center;
  justify-content: center;
    margin-top: 0;
  margin-bottom: 0;
  display: block;
  height: 2.2rem;
}
  .header-icons {
    display: none;
  }
  .header-icon-words {
    display: none;
  }



  .header-icons-and-titles {
    display: none;
  }
  header nav a {
    display: none;
  }
  header {

  display: flex;
    flex-direction: row;

}



/* --------------------------- */
/* TESTING LOGO NOT SHOWING ON MOBILE ISSUES */
/* --------------------------- */
/* Better: scope your padded links instead of all anchors */
.header-icons-and-titles .dropdown-content a {
  display: block;
  padding: 1rem 2rem;
  text-decoration: none;
  color: var(--duck-white);
  transition: background-color 0.3s;
}

/* Kill padding on the logo link */
.logo a {
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
}

/* baseline */
.logo img {
  display: block;
  max-width: 100%;
  height: auto;
  /* remove align-items/justify-content (they do nothing on img) */
}

/* one-liner band-aid */
.logo a { padding: 0 !important; }

/* mobile */
@media (max-width: 480px) {
  header {
    height: auto;           /* let content define height */
    min-height: 3rem;     /* keep your minimum */
  }
  .logo img {
    height: 2rem;         /* explicit */
    width: auto;            /* avoid stretch */
    margin-left: 1rem;      /* smaller margin on phones */
  }
}
/* --------------------------- */

}
