/*  --------------RESET-------------------*/

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body{
    height: 100vh;
    width: 100%;
    font-family: 'Roboto', sans-serif;
    
}
 /* -------- GRID CONTAINER ------- */
.grid-container {
    display: grid;
    grid-template-areas: 
        "na"
        "fi"
        "mm"
        "ff";
    min-height: auto;
    background-image: url(../imgs/bg-body-universe-4.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

 /* -------- TOP NAVBAR ------- */
.navbar {
    grid-area: na;
    width: 100vw;
    display: flex;
    justify-content: space-between;
    background-color: #2E1A17;
    padding: 1rem;
}

.gradient-text{
/*     
  background: linear-gradient(90deg, #8AD9FF, #3DB5FF, #1C6EE8, #7D5DFE, #DA82FF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: bold;
 */
  background: radial-gradient(circle, #C3F3FF, #53B9FF, #2D6AFF, #8640FF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: bold;
}

.branding{
    display: flex;
    color: #F3B67A;
}

.gradient-icon{
    background: linear-gradient(90deg, #8AD9FF, #3DB5FF, #1C6EE8, #7D5DFE, #DA82FF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 2rem;
    transition: transform 0.3s ease;
}

.branding img{
    height: 2.5rem;
    width: 2.5rem;
}

.dropdown-menu{
    display: flex;
    flex-direction: column;
    position: relative;
    align-items: flex-end;
}

.sub-menu{
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: all 1s ease-in-out;
    padding: 0 0.5rem;
    border-radius: 8px;
}
.dropdown-menu:hover .sub-menu{
    display: flex;
    max-height: 200px;
    opacity: 1;
    padding: 0.5rem;
}

.sub-menu a {
    font-size: 1.2rem;
    color: #F3B67A;
    text-decoration: none;
}

.sub-menu a:hover {
    color: #C97C37;
}


 /* -------- FORM FILTER ------- */
.filter {
    text-align: center;
    font-size: x-large;
    font-weight: bold;
    color: #2D6AFF;
    padding: 2rem;
    grid-area: fi ;
    width: 100vw;
}
.filter select{
    width: 90%;
    height: 2rem;
    border: 2px #1C6EE8;
    color: #2D6AFF;
    text-align: center;
    /* box-shadow: 2px 2px 5px #2D6AFF; */
    border-radius: 1rem;
    background-color: rgba(0, 0, 0, 0.566);
    
}

 /* -------- MAIN GALLERY ------- */
 .flex-container{
    height: 70vh;
    grid-area: mm ;
    display: flex;
    flex-direction: column;
    box-shadow: inset;
 }
.main-content {
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    overflow-y: auto;
}

.flex-item{
    width: 80%;
    margin: auto;
    min-height: 25rem;
    max-height: 100%;
    box-shadow: 0 0 10px rgba(27, 54, 134, 0.2);
    border-radius: 1rem;
}

 /* ---------CARDS--------- */

.card-body{
    width: 15rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0 0.8rem;
    background-color: #fff6e5b4 ;
    /* box-shadow: 2px 2px 5px #2D6AFF; */
}

.card-top{
    width: 100%;
    height: 60%;
    margin-top: 0.6rem;
    border-radius: 2rem;
}

.card-content {
    padding: 0 0.8rem;
    display: flex;
    flex-direction: column;
}

.card-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 2rem;
    background-color: #F3B67A;
    color: #1C6EE8;
    border: none;
    border-radius: 0.8rem;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.5s ease;
    margin-top: auto;
    margin-bottom: 0.6rem;
}

.card-button:hover {
    background-color: #C97C37;
}
 /* -------- PAGINATION DOWN NAVBAR ------- */

 /* --- Container ---- */
 .pagination-nav {
    display: flex;
    justify-content: center;
    padding: 0.5rem;
 }

 /* ---- Reset and structure ---- */
 .pagination {
    list-style: none;
    display: inline-flex;
    gap: 0.4rem;
    padding: 1rem;
    margin: 0;
 }

 /* ---- item list ---- */
 .page-item{
    display: inline-block;
 }

 /* ---- link button style ---- */
 .page-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: 8px;
  text-decoration: none;
  color: #1C6EE8;
  background: #2e1a17da;
  border: 1px solid #1C6EE8;
  font-weight: 500;
  transition: background 0.15s ease, transform 0.08s ease;
}




/* Hover / focus  */
.page-link:hover,
.page-link:focus {
  background: #2E1A17;
  outline: none;
  transform: translateY(-1px);
}

/* ------- Media querie paginator ------- */
@media (max-width: 480px) {
  .page-link {
    min-width: 34px;
    height: 34px;
    font-size: 0.9rem;
  }
}

/* --------- DOWN NAVBAR FOOTER --------- */

.down-footer{
    width: 100vw;
    min-height: 10vh;
    grid-area: ff ;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #2E1A17;

}


/* ------------ MEDIA QUERIES ------------- */

@media (min-width: 768px){
    .grid-container {
    display: grid;
    grid-template-columns: 20vw 1fr;
    grid-template-rows: 10vh 1fr 1fr 10vh;
    grid-template-areas: 
        "na na"
        "fi mm"
        "fi mm"
        "ff ff";
    min-height: auto;
    background-image: url(../imgs/bg-body-universe-4.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    /* gap: 0.8rem;
    margin: 0.5rem; */
}

     .navbar {
    grid-area: na;
    width: 100%;
    height: 100%;
    background-color: #2E1A17;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    gap: 1rem;
    border-radius: 0rem;
    
    }
    .dropdown-menu .main-link{
        display: none;
    }

   .sub-menu {
        display: flex;         
        flex-direction: row;
        gap: 0.8rem;
        max-height: none;
        opacity: 1;
        padding: 0;
        position: static;
    }

    .dropdown-menu:hover .sub-menu {
        max-height: none;
        opacity: 1;
        padding: 0;
        transition: none;
    }

    .filter {
    grid-area: fi ;
    background: #2e1a17da;
    border-left: 3px solid #2D6AFF;
    border-right: 3px solid #2D6AFF;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    width: 100%;
    height: 100%;
    }

    .flex-container{
        height: 100%;
        grid-area: mm ;
        display: flex;
        flex-direction: column;
        
    }
    .main-content {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-evenly;
        overflow-y: auto;
    }
    .flex-item{
        width: 30%;
        margin: 0;
        min-height: 10rem;
        /* box-shadow: 0 0 10px rgba(27, 54, 134, 0.2);
        border-radius: 1rem; */
    }
    .card-body{
        min-width: 10rem;
        height: 30%;
        /* box-shadow: 2px 2px 5px #2D6AFF; */
    }
    .card-top{
    width: 100%;
    height: 45%;
    margin-top: 0.6rem;
    border-radius: 2rem;
}
    .down-footer{
    background-color: #2E1A17;
    width: 100%;
    height: 100%;
    grid-area: ff ;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    }
    

} 

@media (min-width: 992px){
    .grid-container {
    display: grid;
    grid-template-columns: 20vw 1fr;
    grid-template-rows: 12vh 1fr 1fr 12vh;
    grid-template-areas: 
        "na fi"
        "na mm"
        "na mm"
        "ff mm";
    min-height: auto;
    background-image: url(../imgs/bg-body-universe-4.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    gap: 0.8rem;
    margin: 0.5rem;
}
     .navbar {
    grid-area: na;
    width: 100%;
    height: 100%;
    background-color: #2E1A17;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    gap: 1rem;
    border-radius: 0.8rem;
    
    }

    .branding{
        flex-direction: column-reverse;
        align-items: center;
        gap: 1rem;
    }
    .dropdown-menu .main-link{
        display: none;
    }

   .sub-menu {
        display: flex;         
        flex-direction: column;
        gap: 0.8rem;
        max-height: none;
        opacity: 1;
        padding: 0;
        position: static;
    }

    .dropdown-menu:hover .sub-menu {
        max-height: none;
        opacity: 1;
        padding: 0;
        transition: none;
    }

    .filter {
    display: flex;
    justify-content: center;
    grid-area: fi ;
    background-color:transparent;
    width: 100%;
    padding: 0;
    border-bottom: 1px solid #2D6AFF;
    border-top: 1px solid #2D6AFF;
    border-left: none;
    border-right: none;
    
}
    .filter form{
    width: 100%;
    }

    .filter select{
        width: 80%;
    }

    .flex-container{
        height: 100%;
        grid-area: mm ;
        display: flex;
        flex-direction: column;
        
    }
    .main-content {
        width: 100%;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-evenly;
        overflow-y: auto;
    }

    .flex-item{
        width: 20%;
        margin: 0;
        min-height: 10rem;
        /* box-shadow: 0 0 10px rgba(27, 54, 134, 0.2);
        border-radius: 1rem; */
    }
    .card-body{
        min-width: 10rem;
        height: 70%;
        /* box-shadow: 2px 2px 5px #2D6AFF; */
    }
    .card-top{
    width: 100%;
    height: 45%;
    margin-top: 0.6rem;
    border-radius: 2rem;
}
    .pagination{
    padding: 0rem;
 }
    .down-footer{
    background-color: transparent;
    border: 1px solid #2D6AFF;
    border-radius: 0.8rem;
    width: 20vw;
    height: 15%;
    grid-area: ff ;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    }
}



/* --------- IMAGE CARDS --------- */


.pa-1{
    background-image: url(../imgs/amatista-removebg-preview.png);
    background-position: center;
    background-size: cover;
}

.pa-2{
    background-image: url(../imgs/ambar-removebg-preview.png);
    background-position: center;
    background-size: cover;
}

.pa-3{
    background-image: url(../imgs/jade-removebg-preview.png);
    background-position: center;
    background-size: cover;
}

.pa-4{
    background-image: url(../imgs/malaquita-removebg-preview.png);
    background-position: center;
    background-size: cover;
}

.pa-5{
    background-image: url(../imgs/rodado-de-jaspe-rojo-mediano-500x500-removebg-preview.png);
    background-position: center;
    background-size: cover;
}

.pa-6{
    background-image: url(../imgs/rodocrosita-removebg-preview.png);
    background-position: center;
    background-size: cover;
}

.pa-7{
    background-image: url(../imgs/turmalina-negra-removebg-preview.png);
    background-position: center;
    background-size: cover;
}

.pa-8{
    background-image: url(../imgs/amatista-removebg-preview.png);
    background-position: center;
    background-size: cover;
}

.pa-9{
    background-image: url(../imgs/ambar-removebg-preview.png);
    background-position: center;
    background-size: cover;
}