/* ===================== Navbar ===================== */
.navbar {
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    position: sticky;
    top: 0;
    z-index: 999;
}

.navbar_container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
    width: 90%;
    position: relative; /* important for absolute mobile menu */
    z-index: 1;
}

.logo_container {
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: start;
    width: auto;
    height: 15vh;
}

.navbar_logo {
    width: auto;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    filter: invert(1) brightness(2);
}

.navbar_logo img {
    width: 25vh;
}

/* Navbar menu */
.navbar_menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: absolute;
    left: 50%;
    transform: translateX(-34%);
    list-style: none;
    text-align: center;
    width: 40%;
    min-width: 500px;
    height: 7vh;
}

.navbar_item {
    width: auto;
}

.navbar_links {
    font-size: 18px;
    display: inline-block;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;

    color: #f5f5f5;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
    transition: color 0.2s ease;

    outline: none;
    border: none;
}

.navbar_links:hover {
    color: #c7c7be;
}

/* Navbar button */
.navbar_btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* === LOGIN / SIGNUP BUTTONS === */
.nav-buttons {
  display: flex !important;           /* force side-by-side */
  flex-direction: row !important;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: auto;
}

.nav-btn {
    display: flex;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 18px;
    display: inline-block;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    color: gray;
    background-color: transparent;

    text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
    outline: none;
    border: none;
}

.login_button {
  color: #f5f5f5;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  transition: color 0.2s ease;
}
.login_button:hover {
    color: #c7c7be;
}

.signup_button {
    background: linear-gradient(135deg, #5c3b1e, #8b5a2b);
    color: black;
    border-radius: 20px;
    padding: 7px 10px;
}

.signup_button:hover {
    background: linear-gradient(135deg, #8b5a2b, #5c3b1e);
    transition: background-color 2s ease-in;
}


/* Responsive: stack only on small phones */
@media (max-width: 1000px) {
  .nav-buttons {
    flex-direction: column !important;
    gap: 8px;
  }

  .nav-btn {
    width: 80%;
  }


    .navbar_container {
        padding: 0 10px;
    }

    .navbar_menu {
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: column;
        background: #131313;
        width: 80%;
        max-width: 400px;
        border: 3px solid black;
        background-color: white;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
        z-index: 100;
        height: 50vh;
    }

    .navbar_menu.active {
        opacity: 1;
        pointer-events: all;
    }

    .navbar_item {
        width: 100%;
    }

    .navbar_links {
        display: block;
        padding: 1.5rem;
        font-size: 1.6rem;
        text-align: center;
        width: 100%;
    }

    .navbar_toggle {
        display: flex;
        flex-direction: column;
        gap: 4px;
        cursor: pointer;
    }
    .navbar_toggle {
        position: absolute;
        left: 50%;
        transform: translateX(-34%);
    }
    .navbar_toggle .bar {
        width: 35px;
        height: 6px;
        border-radius: 2px;
        background-color: white;
        box-shadow: inset -1px -1px 2px rgba(0,0,0,0.4),
                    inset 1px 1px 2px rgba(255,255,255,0.2);
        transition: all 0.3s ease-in-out;
    }

    #mobile-menu.is-active .bar:nth-child(2) { opacity: 0; }
    #mobile-menu.is-active .bar:nth-child(1) { transform: translateY(10px) rotate(45deg); }
    #mobile-menu.is-active .bar:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

    .navbar_btn .button {
        width: 80%;
        height: 60px;
        margin: 1rem auto;
    }
}
