/*
=======================================
Burg Nav
=======================================
*/

.burg-nav {
    grid-area: base-nav-menu;
    width: 100%;
    z-index: 100;
    top: 0;
    transform: translateX(1rem);

    display: none;
}

.burg-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    cursor: pointer;

    max-width: 5rem;
    height: 100%;
}

.wrapper__burg-line {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.burg-line {
    background-color: var(--clrOrange);
    height: 0.25rem;
    max-width: 2rem;
    margin: 0.1rem;
    transition: all 250ms ease-in-out;
}

.burg-nav[open] .burg-line:nth-of-type(1) {
    rotate: -45deg;
    transform: translateY(100%);
}

.burg-nav[open] .burg-line:nth-of-type(2) {
    rotate: 45deg;
    transform: translateY(-25%);
}

.burg-nav[open] .burg-line:nth-of-type(3) {
    opacity: 0;
}

.burg-nav__list {
    width: 100%;
    display: none;
    flex-direction: column;
    justify-content: flex-start;

    position: absolute;
    opacity: 1;

    background-color: var(--clrGreenDark);
    filter: drop-shadow(0 0.2rem 0.25rem rgba(0, 0, 0, 0.2));

    transition: all 250ms ease-in-out;

    padding: 1rem;
}

.burg-nav[open] .burg-nav__list {
    display: flex;
    left: 0
}

.burg-nav__link {
    text-decoration: none;
    font-weight: bold;
    color: var(--clrPage);
    padding: 1rem 0;
}

.burg-nav__btn {
    text-decoration: none;
    font-weight: bold;
    color: #864b00;
    padding: 0.5rem;
    background-color: var(--clrYellow);
    border-radius: 5rem;
    border-top: 3px solid #d59506;
    margin-bottom: 1rem;
    text-align: center;
}

.burg-nav__link:not(:last-of-type) {
    border-bottom: 1px solid var(--clrGreen);
}

@media only screen and (max-width: 960px) {
    .burg-nav {
        display: initial;
    }
}

/* == Burg Nav - Open Animation ==  */

.burg-nav[open] > .burg-nav__list {
  animation: animateDown 0.2s linear forwards;
}

@keyframes animateDown {
  0% {
    opacity: 0;
    transform: translatey(-1rem);
  }
  100% {
    opacity: 1;
    transform: translatey(0);
  }
}


/*
=======================================
Sidebar - Details Content Animation
=======================================
*/

.sb-section,
.burg-nav {
  
  interpolate-size: allow-keywords;

  &::details-content {
    opacity: 0;
    block-size: 0;
    overflow-y: clip;
    transition: content-visibility 1s allow-discrete, opacity 1s, block-size 1s;
  }

  &[open]::details-content {
    opacity: 1;
    block-size: auto;
  }
}