
@import url('style.css'); 

/* Tablets ou telas >= 700px */
@media (min-width: 700px) {
    .card-list {
        grid-template-columns: repeat(2, 1fr); /* 2 cards por linha */
    }
    
    .card-list-item {
        aspect-ratio: 16 / 4; 
    }
}

/* Telas >= 1000px */
@media (min-width: 1000px) {
    .card-list {
        grid-template-columns: repeat(3, 1fr); /* 3 cards por linha */
    }

    .card-list-item {
        aspect-ratio: 16 / 4; 
    }
}

/* Telas >= 1300px */
@media (min-width: 1300px) {

    .card-list {
        grid-template-columns: repeat(3, 1fr); /* 4 cards por linha */
    }

    .card-list-item {
        aspect-ratio: 16 / 4; 
    }
}



/* Media query para desktop */
@media (min-width: 861px) {

    h1 {
        font-size: 1.476rem;
    }

    h2 {
        font-size: 1.387rem;
    }

    h3 {
        font-size: 1.296rem;
    }

    h4 {
        font-size: 1.215rem;
    }

    h5 {
        font-size: 1.138rem;
    }

    h6 {
        font-size: 1.067rem;
    }

    p {
        font-size: 1rem;
    }

    small {
        font-size: 0.937rem;
    }

    body {
        grid-template-rows: 6rem 1fr; /* header | main  */
    }

    header {
        gap: var(--space-8);
        z-index: 10;
    }

    .filter-modal {
        height: 265px;
    }
    .filter-modal-content {
        background-color: var(--independence-color);
        height: 100%;
        position: relative;
        animation: slideDown 1s forwards;
        padding: 1% 5%;
    }
    .input-search {
        background: var(--independence-color);
        width: 800px;
        border: none;
        border-radius: 8px;
    }
    .input-search form input {
        border: none;
        width: 90%;
        height: 50px;
        background: transparent;
        color: var(--white-color);
        padding: 0 13px;
    }
    .input-search form button {
        width: 5%;
        height: 50px;
        background: transparent;
        border: none;
        cursor: pointer;
    }
    .input-search form button i {
        color: var(--white-color);
        font-size: 21px;
    }
    #openFilterSearchModal{
        width: 62px;
    }
    .logo-mobile {
        display: block;
    }

    .hero-slider {
        gap: var(--space-2);
        margin-bottom: var(--space-8);
        margin-right: -8%;
    }

    .hero-slider-img {
        width: 856px;
        height: 352px;
        flex: 0 0 856px;
        border-radius: 16px;
    }

    .hero-slider-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        position: relative; /* ou pode remover completamente o position */
        border-radius: var(--space-1);
    }

    main {
        padding: 2% 5%;
    }

    .categories {
        gap: var(--space-5);
        margin-bottom: var(--space-8);
    }

    .categories-item {
        cursor: pointer;
    }

    .card {
        /*
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(calc(50% - 6.5px), 1fr)); /* Definindo duas colunas 
        gap: 13px;
        margin: 34px 0;
        */
        overflow-x: scroll;
        display: flex;
        gap: 32px;
    }

    .card-item {
        position: relative;
        border-radius: 8px;
        background: var(--independence-color);
        gap: 16px;
        width: 450px;
        flex: 0 0 450px;
        height: 200px;
    }

    .card-item-img {
        width: 200px;
        height: 180px;
    }

    .card-item-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 8px;
    }

    .card-item-info {
        flex: 1;
        position: relative;
        word-wrap: break-word; /* Quebra palavras longas para caberem no contêiner */
    }
    .card-item-info a h4 {
        white-space: normal; /* Permite que o texto quebre automaticamente */

    }

    .card-item-open {
        cursor: pointer;
        padding: 8px;
        border-radius: 100%;
        font-size: 13px;
        color: var(--black-color);
        float: right;
    }

    .card-item-open i {
        color: var(--orange-color);
        font-size: 32px;
    }


    .uas-item {
        
        height: 200px;
        width: 450px;
        
    }

    .uas-i-img {
    
        width: 152px;
    }

    

    /* ===== Slider item user ad ===== */

    .user-ad-slider {
        display: flex;
        gap: 16px;
        overflow-x: scroll;
        scroll-snap-type: x mandatory;
        padding: 16px;
        margin-bottom: var(--space-5);
        scrollbar-width: none;
    }

    .user-ad-slider.active {
        background-color: transparent !important;
    }

    .uas-item {
        scroll-snap-align: start;
        padding: 8px;
        position: relative;
        height: 144px;
        width: 500px;
        background: var(--white-color) !important;
        display: flex;
        border-radius: 8px;
        gap: 8px;
        flex-shrink: 0;
        color: var(--black-color);
    }

    .uas-i-img {
        position: relative;
        width: 112px;
    }

    .uas-i-img img {
        object-fit: cover;
        position: absolute;
        width: 100%;
        height: 100%;
        border-radius: 8px;
    }

    .uas-i-description {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        flex: 1;
    }

    .user-ad-slider::-webkit-scrollbar {
        display: none; /* Oculta a barra de rolagem */
    }

    .user-ad-slider:after {
        content: '';
        flex: 0 0 32px; /* Espaço para mostrar parte do próximo bloco */
    }

    .uas-i-d-icon {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }







    /* ======================================== */
    /* Add new ad page  */
    /* ======================================== */

    .afi-img label {
        position: relative;
        width: 33%;
        height: 300px;
        border: 1px solid var(--independence-color);
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
    }

    .afi-img label img {
        object-fit: contain;
    }

    /* ======================================== */
    /* Pricing page  */
    /* ======================================== */

    #pricing-page form {
        display: flex;
        justify-content: space-between;
        flex-direction: row;
        gap: 24px;

    }

    #pricing-page form label {
        flex: 1;

    }

    
    /* ======================================== */
    /* Detail page  */
    /* ======================================== */

   




    /* ==================== */
    /* Detail page end */
    /* ==================== */
    .ad-detail-slider {
        height: 416px;
        gap: 24px;
        margin-bottom: var(--space-5);
    }

    .ad-detail-slider-item {
        background: var(--independence-color);
        height: 352px;
        width: 348px;
        max-width: 350px;
        position: relative;
        border-radius: 16px;
        flex: 0 0 auto; /* evita esticar quando tem scroll */
    }


    /* ======================================== */
    /* Profile page */
    /* ======================================== */

    * {
        transition: 0.5s;
    }

    .profile-img {
        position: relative;
        width: 104px;
        height: 104px;
    }

    .profile-img img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .profile-info h3 {
        margin-bottom: 24px;
    }

    .pii-1 i,
    .pii-2 i,
    .pii-3 i {
        font-size: 32px;
    }

    .profile-info-icon {
        left: 134px;
    }

    .profile-cards {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: row;
        gap: 16px;
    }

    .card-1,
    .card-2,
    .card-3 {
        width: 504px;
        height: 128px;
        justify-content: center;
        align-items: center;
    }



/* ======================================== */
/* Sign in */
/* ======================================== */

#sign-in {
    display: flex;
    align-items: start;
    justify-content: center;
}

.sign-in-block {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.sign-in-block-title{
    text-align: center;
    margin-bottom: var(--space-5);
}

.sign-in-block-btns {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sign-in-block-btns button {
    background: var(--independence-color);
    color: var(--white-color);
    width: 250px;
    height: 48px;
    border: none;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    cursor: pointer;

}

.sign-in-block-btns button:hover {
    transition: 0.3s;
    border: 1px solid var(--orange-color);
}

.sign-in-block-btns button i {
    font-size: 16px;
}


}
