@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap');

html {
    background: #2C7F55;
    background: linear-gradient(137deg, rgba(44, 127, 85, 1) 0%, rgba(40, 142, 91, 1) 32%, rgba(29, 76, 52, 1) 72%, rgba(12, 63, 37, 1) 100%);
    width: 100%;
    min-height: 100vh;
    background-attachment: fixed;
    font-family: "JetBrains Mono", monospace;
}

body {
    padding: 0 1.2rem;
}


/*All Pages*/

h1 {
    margin-top: 80px;
    font-size: 1.8rem;
    color: white;
    line-height: 3.5rem;
}

.description {
    line-height: 2rem;
    color: white;
    text-align: justify;
}

p {
    line-height: 1.6rem;
    color: white;
    font-size: 0.9rem;
    /*text-align: justify;*/
}

/*NAVBAR*/

.app-navbar {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 17px 16px 17px;
    box-sizing: border-box;
    z-index: 900;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.app-navbar.home {
    border: none;
}

.app-navbar.scrolled {
    background-color: rgba(18, 74, 46, 0.85);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.navbar-logo {
    font-family: "JetBrains Mono", monospace;
    color: white;
    font-size: 1.2rem;
    margin-top: 24px;
    margin-bottom: 0;
}

.navbar-logo-link {
    text-decoration: none;
}


.hamburger-btn {
    margin-top: 24px;
    width: 28px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 0;
    z-index: 10;
}


.hamburger-btn .bar {
    width: 28px;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 998;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}


.drawer-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 60%;
    height: 100vh;
    background-color: #ffffff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 999;
    padding: 0 17px;
    box-sizing: border-box;
}


.drawer-menu.active {
    transform: translateX(0);
}

.drawer-header {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
}


.close-btn {
    margin-top: 24px;
    width: 28px;
    height: 24px;
    background: none;
    border: none;
    font-size: 42px;
    line-height: 24px;
    color: #2e7d32;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}


.drawer-nav-list {
    font-family: "JetBrains Mono", monospace;
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-align: center;
}

.drawer-nav-list > li {
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(12, 63, 37, 0.4);
}

.drawer-nav-list a:hover {
    opacity: 0.6;
    cursor: pointer;
}


.drawer-link {
    text-decoration: none;
    color: #2e7d32;
    font-size: 0.9rem;
    font-weight: 600;
    display: block;
    transition: opacity 0.2s;
}

.drawer-link:hover {
    opacity: 0.8;
}


/*HOME*/

h1.home-h1 {
    font-size: 2.3rem;
    color: white;
    line-height: 3.5rem;
}

.item-search-form > form {
    display: flex;
    flex-direction: column;
    margin-top: 3rem;
}

.search-form input {
    padding: 15px;
    background-color: transparent;
    border: 0;
    text-align: center;
    color: white;
    font-family: "JetBrains Mono", monospace;
    outline: none;
    border-bottom: 1px solid white;
}

.search-form input:focus {
    outline: none;
}

.search-form button {
    padding: 15px;
    background-color: transparent;
    color: white;
    width: 50%;
    align-self: center;
    /*margin-top: 10px;*/
    border: none;
}

/*COLETA ESPECIAL*/

.special-address {
    margin-top: 60px;
    color: white;
    border-bottom: 1px solid white;
    padding-bottom: 30px;
}

.special-address:last-of-type {
    border-bottom: 0;
}

.special-address h2 {
    font-size: 1.2rem;
    margin-bottom: 0;
}

.special-address h3 {
    font-size: 1rem;
    margin-top: 20px;
}

.special-address .examples {
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 5px;
}

.special-address ul {
    font-size: 0.9rem;
    padding-left: 8px;
}

.special-address ul li {
    margin-bottom: 10px;
}

.special-address ul li a {
    color: white;
    text-decoration: none;
}

.special-address ul li a:visited {
    color: white;
}

.special-address li a::after {
    content: " ↗";
    font-size: 1.3rem;
    opacity: 0.85;
}

.special-address li a:hover::after {
    opacity: 1;
}

.special-address li a:hover {
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
}

/* Recycle Badge */

.badge-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 1rem;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    color: white;
    filter: drop-shadow(1px 6px 2px rgba(0, 0, 0, 0.25));
}

.badge-wrapper.--recyclable {
    background-color: #248AFF;
}

.badge-wrapper.--common {
    background-color: #1F2021;
}

.badge-wrapper.--special {
    background-color: #A29C00;
}


/* Busca */


.search-query {
    margin-top: 100px;
    margin-bottom: 0;
    line-height: 2rem;
}

.return-home {
    font-size: 0.9rem;
    margin-bottom: 40px;
    display: block;
    color: white;
    text-decoration: none;
}

.return-home:hover {
    opacity: 0.8;
}

.return-home:visited {
    color: white;
}


.results-list {
    list-style: none;
    padding: 0;
}

.results-list .result-card {
    border: 1px solid white;
    border-radius: 5px;
    padding: 16px 20px 0;
    position: relative;
    margin-bottom: 30px;
}

.result-card .item-name {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 3px;
    margin-top: 25px;
}

.result-card .item-description {
    margin-top: 0;
    font-size: 0.8rem;
}

.result-card .badge-wrapper {
    top: 0;
    right: 0;
    position: absolute;
    font-size: 0.7rem;
}

.result-card a {
    color: white;
    font-size: 0.8rem;
    text-align: center;
    display: block;
    border-top: 1px solid rgba(255, 255, 255, 0.8);
    padding: 12px 0;
    text-decoration: none;
    margin-top: 16px;
}

.result-card a:visited {
    color: white;
}

.pagination{
    text-align: center;
    color: white;
    font-size: 0.8rem;
    padding-bottom: 40px;
}

.pagination a{
    color: white;
    text-decoration: none;
    font-weight: bold;
}

/* ITEM Page*/

.item-header h1 {
    margin-top: 100px;
    margin-bottom: 10px;
    line-height: 2rem;
}

.item-orientation {
    margin-top: 50px;
}

.item-header h2 {
    font-size: 1rem;
    color: white;
    margin-top: 30px;
}

.item-header a{
    display: block;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 50px;
}

.item-header a:visited{
    color: white;
}

.return-home-search{
    width: 80%;
    margin: 60px auto;
    font-size: 0.8rem;
    padding-top: 1rem;
    display: block;
    color: white;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.return-home-search:hover{
    opacity: 0.8;
}

.return-home-search:visited{
    color:white;
}

.item-not-found{
    margin-top:150px;
    text-align: center;
}


/* Media query*/

@media (min-width: 800px){
    body{
        max-width:800px;
        margin: 0 auto;
    }

    body{
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .app-navbar{
    left: 50%;
    transform: translateX(-50%);
    }

    .drawer-menu {
        width: 40%;
    }

}