/* Product switcher dropdown — explicit rules.
 *
 * The compiled tailwind-main.css does not include many of the utility
 * classes used by the dropdown markup (w-[28rem], gap-5, py-5,
 * backdrop-blur-xl, w-11, h-11). This file supplies the essential
 * layout and "glassy" appearance so the component renders correctly
 * regardless of Tailwind's build state.
 */

/* Full-screen frosted backdrop behind the open dropdown. */
#product-dropdown-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background-color: rgba(17, 24, 39, 0.6);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}

#product-dropdown-backdrop.hidden {
  display: none;
}

/* Dropdown panel itself. */
#product-dropdown {
  position: absolute;
  left: 0;
  margin-top: 0.75rem;
  width: 28rem;
  max-width: calc(100vw - 2rem);
  z-index: 50;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(55, 65, 81, 0.8);
  background-image: linear-gradient(
    to bottom,
    rgba(17, 24, 39, 0.92),
    rgba(3, 7, 18, 0.96)
  );
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

#product-dropdown.hidden {
  display: none;
}

/* Each product link row. */
#product-dropdown > a {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.25rem;
  color: #ffffff;
  text-decoration: none;
  border-left: 2px solid transparent;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

#product-dropdown > a:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

#product-dropdown > a:first-of-type:hover {
  border-left-color: #22c55e; /* green-500 */
}

#product-dropdown > a:nth-of-type(2):hover {
  border-left-color: #3b82f6; /* blue-500 */
}

/* Icon square on the left of each row. */
#product-dropdown > a > span:first-child {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.2s ease;
}

#product-dropdown > a:first-of-type > span:first-child {
  background-image: linear-gradient(
    to bottom right,
    rgba(34, 197, 94, 0.25),
    rgba(21, 128, 61, 0.25)
  );
  border: 1px solid rgba(34, 197, 94, 0.4);
}

#product-dropdown > a:nth-of-type(2) > span:first-child {
  background-image: linear-gradient(
    to bottom right,
    rgba(59, 130, 246, 0.25),
    rgba(29, 78, 216, 0.25)
  );
  border: 1px solid rgba(59, 130, 246, 0.4);
}

#product-dropdown > a:hover > span:first-child {
  transform: translateY(-2px) scale(1.05);
}

/* Icon svg. */
#product-dropdown > a > span:first-child > svg {
  width: 1.25rem;
  height: 1.25rem;
}

#product-dropdown > a:first-of-type > span:first-child > svg {
  color: #4ade80; /* green-400 */
}

#product-dropdown > a:nth-of-type(2) > span:first-child > svg {
  color: #60a5fa; /* blue-400 */
}

/* Text block (title + subtitle). */
#product-dropdown > a > span:nth-child(2) {
  flex: 1 1 0%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

#product-dropdown > a > span:nth-child(2) > span:first-child {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  display: block;
}

#product-dropdown > a > span:nth-child(2) > span:nth-child(2) {
  font-size: 0.75rem;
  color: #9ca3af; /* gray-400 */
  display: block;
}

/* Chevron on the right. */
#product-dropdown > a > svg:last-child {
  width: 1rem;
  height: 1rem;
  color: #6b7280; /* gray-500 */
  margin-top: 0.25rem;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

#product-dropdown > a:first-of-type:hover > svg:last-child {
  color: #4ade80;
  transform: translateX(2px);
}

#product-dropdown > a:nth-of-type(2):hover > svg:last-child {
  color: #60a5fa;
  transform: translateX(2px);
}
