/*global scope*/
:root {
  /*HEADER PROPERTIES*/
  --header-grad-top: rgba(255, 255, 255, 0.88);
  --header-grad-bot: rgba(247, 243, 235, 0.72);
  --header-border: rgba(255, 255, 255, 0.30);
  --header-shadow: rgba(15, 23, 42, 0.18);
  
}

html[data-theme="dark"]{
   /*HEADER PROPERTIES*/
  /* dark pill (solid colors) */
  --header-grad-top: rgba(14, 28, 33, 0.90);
  --header-grad-bot: rgba(14, 28, 33, 0.72);
  --header-border: rgba(255, 255, 255, 0.10);
  --header-shadow: rgba(0, 0, 0, 0.0);     /* they don't use an outer shadow */
  --header-text: rgb(246, 242, 234);
  --dark-icon: invert(100%);

}

.header{
  display:flex;
  position: fixed;
  top: 0;
  z-index: 1000;
  width: 100%;
  height: auto;

  justify-content: space-around;
  align-items: baseline;
  

  /* “spreads to the sides” look: corner lighting + subtle vertical tone */
  /* glass look */
  color: var(--header-text);

  background: linear-gradient(180deg, var(--header-grad-top), var(--header-grad-bot));
  border: 1px solid var(--header-border);

  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);

  /* light: outer shadow, dark: inset glow */
  box-shadow:
    0 12px 40px -20px var(--header-shadow),
    var(--header-inset);

  cursor: default;
}

.header-logo
{
  color: var(--text);
  font-weight: 700;
  font-size: 25px;
  padding: 10px 0;
  text-decoration: none;
  margin-left: 20px;
}

.header-logo:hover
{
  color: var(--logo-hover);

}

/* base link color (kills purple/visited) */
.menu-item,
.menu-item:link,
.menu-item:visited{
  color: var(--profile-role-text);
  text-decoration: none;
}

/* underline animation */
.menu-item{
  position: relative;
  display: inline-block;          /* needed so underline matches text width */
  transition: color 200ms ease;
  margin-left: 10px;
  color: var(--text);
}

.menu-item::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;                   /* like text-underline-offset */
  height: 2px;
  background: var(--profile-name-text);
  color: var(--text);

  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms ease;
}

.menu-item:hover{
  color: var(--text);
}

.menu-item:hover::after{
  transform: scaleX(1);
}

/* active underline (stays on after click) */
.menu-item.is-active{
  color: var(--text);
}

.menu-item.is-active::after{
  transform: scaleX(1);
}

.header-buttons
{
  display: flex;
  margin-left: 130px;
}

#themeToggle, #menuToggle
{
   background-color: transparent;
   border-radius: 10px;
   padding: 10px 10px;
   border: none;
   cursor: pointer;
   color: var(--text);

}

.theme
{
  height: 15px;
  filter: var(--dark-icon);

}

.menu
{
  height: 15px;
  

}

.drop-down.show
{
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  display: flex;
  position: absolute;
  flex-direction: column;
  align-items: start;
  row-gap: 25px;
  padding-left: 10px;
  top: 0;
  right: 0;
  width: 55%;
  height:350px;
  background-color: var(--page-bg);
  font-size: 30px;

  border: 1px var(--profile-border) solid;
  border-bottom-left-radius: 20px;
  box-shadow: var(--quick-links-button-box-shadow);

  
  transition: transform 1s ease, visibility 0s ease;

  
}

.drop-down
{
    opacity: 0;
    visibility: hidden;
    transform: translateX(320px);
    transition: opacity 0s ease, transform 1s ease, visibility 0s ease;
    width: 0px;
    height: 0px;
    
}

.drop-menu-back-button
{
  display: flex;
  flex-direction: row;
  width: 100%;
  justify-content: space-between;
  align-items: baseline;
}

.menu-back-button
{
  height: 30px;
  margin-right: 10px;
  filter: var(--dark-icon);
}

.menu-text
{
  margin: 0px;
  margin-top: 10px;
  font-weight: 700;
  font-size: 50px;
  color: var(--text);
}

.drop-down .menu-item::after
{
  display: none;
}

.drop-down .menu-item.is-active::after
{
  display: none;
}

.drop-down .menu-item.is-active
{
  color: var(--profile-role-text);
}


@media (max-width: 900px)
{
  .header
  {
    align-items:center;
  }
  .menu-item
  {
    margin-left: 0px;
    color: var(--text);
  }
  .menu
  {
    height: 15px;
    filter: var(--dark-icon);
    

  }
}