/* style.css */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

:root {
    /* <----------------------->
    Color Setting Descriptions 
  
    --back-color: Icon and Body Background and Button Font - VERY Light 
    --button-color: Button and Hover Background - not menu button - Light to Medium Dark
    --font-color: Standard Menu and Body Font color - Medium Dark 
    --font-hover-color: Menu Font on Hover - Light 
    --dropdown-back-color: Background for Menu and Dropdowns - Medium to Dark Light 
    --dropdown-link-text: Dropdown Font for Links - Darker than dropdown text font 
    --dropdown-text: Dropdown Font for Non-Links - Dark Medium to Light Dark 
    --border-color: Border Colors - DARK 

    End of color setting description 
    */
    /* <----------------------->
        Additional Color Schemes - for testing
        See style_admin.css for more tested options
    */

    /* <----------------------->
    Purple Haze - Start */
    --back-color: #e6e6fa; /* Lavender */
    --button-color: #9932cc; /* Dark Orchid */
    --font-color: #6a5acd; /* Slate Blue */
    --font-hover-color: #dda0dd; /* Plum */
    --dropdown-back-color: #dcd0ff; /* Pale Lavender (darker than Lavender) */
    --dropdown-link-text: #4c2882; /* Spanish Violet */
    --dropdown-text: #873260; /* Boysenberry */
    --border-color: #663399; /* Rebecca Purple */
    /* Purple Haze - End 
    */


    --hover-background: var(--button-color);
    --border: 1px solid var(--border-color);
    --shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px, rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;
}

body {
    font-family: inherit;
    background-color: var(--back-color);
    color: var(--font-color);
    letter-spacing: -0.2px;
}

img {
    max-width: 100%
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  border: none;
  background-color: transparent;
  cursor: pointer;
  color: inherit;
}


/* Reusable Styles */
/* Button - Not menu button */
.btn {
  display: block;
  background-color: var(--button-color);
  color: var(--back-color);
  text-align: center;
  padding: 0.6rem 1.4rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 10px;
}

.icon {
  padding: 0.5rem;
  background-color: var(--back-color);
  border-radius: 10px;
}

.logo {
  margin-right: 1rem;
}

#nav-menu {
    border-top: var(--border);
    border-bottom: var(--border);
    background: var(--dropdown-back-color);
}

.container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100%;
  margin: 0 auto;
  column-gap: 1rem;
  height: 55px;
  padding: 0.1rem 0.1rem;
  background:var(--dropdown-back-color);
}


/* Navigation menu Styles */
.menu {
  position: relative;
  background: var(--dropdown-back-color);
  border-radius: 10px;
}


/*
.menu-bar li:first-child .dropdown {
  flex-direction: initial;
  min-width: 200px;
}


.menu-bar li:first-child ul:nth-child(1) {
  border-right: var(--border);
}

.menu-bar li:nth-child(n + 2) ul:nth-child(1) {
  border-bottom: var(--border);
}
*/



.menu-bar .dropdown-link-title {
  font-weight: 600;
}

.menu-bar .nav-link {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: -0.6px;
    padding-right: 1rem;
    padding-left: 1rem;
    min-width: 60px;
}

.menu-bar .nav-link:hover,
.dropdown-link:hover {
  background-color: var(--button-color);
  color:var(--font-hover-color);
  border-radius:20px;
  padding-right: 1rem;
  padding-left: 1rem;
}

.right-container,
.right-container .search {
  display: flex;
  align-items: center;
  justify-content:flex-end;
}

.nav-start,
.nav-end,
.menu-bar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* Dropdown Menu Styles */
.dropdown {
  display: flex;
  flex-direction: column;
  min-width: 230px;
  background-color: var(--dropdown-back-color);
  color: var(--dropdown-text);
  border-radius: 10px;
  border: var(--border);
  position: absolute;
  top: 36px;
  z-index: 1;
  visibility: hidden;
  opacity: 0;
  transform: scale(0.97) translateX(-5px);
  transition: 0.5s ease-in-out;
  box-shadow: var(--shadow);
}

.right-container .dropdown-btn{
    padding: 1rem 1rem 1rem 1rem;
}

.dropdown.active {
  visibility: visible;
  opacity: 1;
  transform: scale(1) translateX(5px);
}

.dropdown ul {
  display: flex;
  flex-direction: column;
 
  padding: 0.5rem;
  font-size: 0.8rem;
}

.dropdown-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.15rem;
}

.dropdown-title {
    font-weight: 800;
    text-decoration-line: underline;
    padding-top: 1rem;
    padding-bottom: 0.25rem;
}

.dropdown-link {
    display: flex;
    color:var(--dropdown-link-text);
    gap: 0.5rem;
    padding: 0.25rem 1rem 0.25rem 1rem;
    border-radius: 10px;
    transition: 0.1s ease-in-out;
}

.dropdown-link p {
  font-size: 0.7rem;
  color: var(--dropdown-link-text);
}

/* Right Menu Styles */
.right-container {
    display: flex;
    align-items: center;
    column-gap: 1rem;
    justify-content: flex-end;
}

.right-container .search {
  position: relative;
}

.right-container img {
  border-radius: 50%;
}

.search input {
  background-color: var(--back-color);
  border: none;
  border-radius: 10px;
  padding: 0.5rem;
  padding-left: 1rem;
  font-size: 1rem;
  width: 100%;
  border: var(--border);
}

.search .search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.6;
}

#hamburger {
  display: none;
  padding: 0.1rem;
  margin-left: 1rem;
  font-size: 1.9rem;
}


/* Media Query Styling */
@media (max-width: 1400px) {
  #hamburger {
    display: block;
    position: relative;
    left: auto;
  }

  .container {
    padding: 1.2rem;
    margin-right: 3rem;
  }

  .menu {
    display: none;
    position: absolute;
    top: 87px;
    left: 0;
    min-height: 100vh;
    width: 100vw;
  }

  .menu-bar li:first-child ul:nth-child(1) {
    border-right: none;
    border-bottom: var(--border);
  }

  .dropdown {
    display: none;
    min-width: 100%;
    border: none !important;
    border-radius: 5px;
    position: static;
    top: 0;
    left: 0;
    visibility: visible;
    opacity: 1;
    transform: none;
    box-shadow: none;
  }

  .menu.show,
  .dropdown.active {
    display: block;
  }

  .dropdown ul {
    padding-left: 0.3rem;
  }

  .menu-bar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    row-gap: 1rem;
    padding: 1rem;
  }

  .menu-bar .nav-link {
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-weight: 600;
    font-size: 1.2rem;
    margin: 0;
  }

  .menu-bar > li:not(:last-child) {
    padding-bottom: 0.5rem;
    border-bottom: var(--border);
  }
}

@media (max-width: 800px) {
  .right-container {
    display: none;
  }
}