@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=UnifrakturMaguntia&display=swap');

@import url('../css/variables.css');



* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  
}

a.btn{
  text-decoration: none;
  
}

.btn{
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-mobile {
  font-size: 1.5rem;
}

.btn-default{
  background: var(--color-primary-1);
  color: var(--color-neutral-0);
  
  &:hover {
    background: var(--color-primary-2);
    
  }
}

.btn-outlined {
  background: transparent;
  color: var(--color-primary-1);
  border: 2px solid var(--color-primary-1);
  
  &:hover {
    background: var(--color-primary-1);
    color: var(--color-neutral-0)
  }
  
}

.title {
  font-size: 2.5rem;
  text-transform: uppercase;
  color: var(--color-neutral-8);
  font-weight: 700;
  position: relative;
  
  &::before {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--color-primary-1);
    position: absolute;
    bottom: 0;
    border-radius: 30px;
  }
  
  
}



header {
  background-color: var(--color-neutral-1);
  padding: 12px 4%;
  position: sticky;
  top: 0;
  z-index: 1;
  
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    
     .logo {
    width: 180px;
    }
    ul {
      display: none;
      list-style: none;
      flex-direction: column;
      gap: 0.5rem;
      width: 100%;
      position: absolute;
      top: 80px;
      background: var(--color-neutral-1);
      left: 0;
      padding: 1rem;
      
      &.show {
        display: flex;
      }
    .btn-default{
      display: flex;
    }
      
      li {
        text-align: center;
        
        a{
          color: var(--color-neutral-8);
          text-decoration: none;
          font-size: 1rem;
          font-weight: 500;
          transition: all 0.3s ease;
          
          &:hover{
            color: var(--color-primary-1);
            border-bottom: 1px solid var(--color-primary-1);
          }
          
        }
        
      }
      
      
      
    }
    .btn-default {
      display: none;
    }
    
  }
  
}


@media (min-width: 769px) {
  header  {
    .navbar{
      .btn-mobile{
        display: none;
      }
      ul{
        display: flex;
        flex-direction: row;
        position: static;
        gap: 1rem;
        width: auto;
        padding: 0;
        
      }
      .btn-default{
        display: block;
      }
    }
  }
}


#container{
  background-image: url('../images/background-mobile.png');
  background-size: contain;
  
}




#home{
  display: flex ;
  flex-direction: column;
  gap: 12px;
  align-items: center ;
  min-height: calc(100vh - 96px);
  padding: 32px 4%;
  padding-top: clamp(0px,5vw,32px);
  
  .home-image{
    width: clamp(300px,50%,400px);
  }
  .home-title{
    color: var(--color-neutral-8);
    text-align: center;
    font-size: clamp(3rem,5vw,4,3rem);
    text-transform: uppercase;
    line-height: 1.2;
    max-width: 700px;
    
    span{
      color: var(--color-primary-1);
    }
  }
  .home-description{
    color: var(--color-neutral-9);
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    max-width: 600px;
  }
  
  .home-actions {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    
    
  }
  
}






#trending{
  padding: 32px 4%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  min-height: calc(100vh - 96px);
  
  .trending-cards{
    .trending-card{
      position: relative;
      
      
      img{
        width: clamp(300px, 5vw, 600px);
      }
      
      .trending-rate {
        background: var(--color-neutral-0);
        position: absolute;
        bottom: 70px;
        right: 70px;
        padding: 5px 10px;
        border-radius: 5px;
        
        i{
          color: var(--color-secondary-1);
        }
        
      }
      .trending-card-description{
        display: flex;
        flex-direction: column;
        text-align: center;
        font-size: 1.3rem;
        font-weight: 600;
        color: var(--color-neutral-8);
        
        span{
          font-size: 1rem;
          font-weight: 500;
          color: var(--color-neutral-7);
          
          
        }
        
      }
      
    }
  }
  
  
}



#about{
  padding: 32px 4%;
  display: flex;
  flex-direction: column;
  align-items: center;  
  background: var(--color-primary-1);
  background-image: url('../images/about/bg-about.png');
  min-height: calc(100vh - 96px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  border-radius: 32px;
  
  .title{
    color: var(--color-neutral-0);
    
    &::before{
      background: var(--color-secondary-1);
    }
  }
  .about-content{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    
    .about-image{
      width: clamp(300px, 50vw, 500px);
      
      
    }
    .about-info{
      padding: 24px;
      border-radius: 20px;  
      background-color: var(--color-primary-2);
      box-shadow: 0 4px 6px rgb(0, 0, 0, 0.1);
      
      h3{
        color: var(--color-neutral-0);
       font-size: 1.8rem;
        margin-bottom: 4px;
        
        span{
          color: var(--color-secondary-1);
        }
        
      }
      
      p{
        color: var(--color-neutral-0);
        font-size: 1rem;
        
        
        span{
          color: var(--color-secondary-1);
          font-weight: 500;
        }
      }
      
    }
    
  }
}

#footer {
  background-color: var(--color-neutral-1);
  padding: 40px 20px 20px;
  border-top: 2px solid var(--color-neutral-2);
  color: var(--color-neutral-7);

  .footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    text-align: center;

    .footer-brand {
      .logo {
        width: 60px;
        margin-bottom: 16px;
      }
      p {
        font-size: 0.9rem;
        color: var(--color-neutral-6);
        max-width: 250px;
      }
    }

    .footer-links {
      display: flex;
      flex-direction: column;
      gap: 32px;

      h4 {
        color: var(--color-neutral-8);
        margin-bottom: 16px;
        text-transform: uppercase;
        font-size: 0.85rem;
        letter-spacing: 1px;
      }

      ul {
        list-style: none;
        li a {
          text-decoration: none;
          color: var(--color-neutral-6);
          font-size: 0.95rem;
          transition: color 0.3s;
          &:hover { color: var(--color-primary-1); }
        }
      }

      .social-icons {
        display: flex;
        gap: 20px;
        justify-content: center;
        a {
          font-size: 1.5rem;
          color: var(--color-neutral-7);
          transition: transform 0.3s;
          &:hover { 
            color: var(--color-primary-1);
            transform: translateY(-3px);
          }
        }
      }
    }
  }

  .footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--color-neutral-2);
    text-align: center;
    font-size: 0.8rem;
    color: var(--color-neutral-5);
    span {
      color: var(--color-primary-1);
      font-weight: 700;
    }
  }
}

@media (min-width:768px) {
 #container{
   background-image: url('../images/background-desktop.png');
   background-size: cover;
   background-position: start;
   background-repeat: no-repeat;
 }
 
  #trending {
    .trending-cards {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 24px;
      
      
      
    }
  }
  
  
  #footer {
    padding: 60px 80px 30px;

    .footer-content {
      flex-direction: row;
      justify-content: space-between;
      align-items: flex-start;
      text-align: left;
      max-width: 1200px;
      margin: 0 auto;

      .footer-brand {
        p { text-align: left; }
      }

      .footer-links {
        flex-direction: row;
        gap: 80px;
        
        .social-icons {
          justify-content: flex-start;
        }
      }
    }
  }
  
}
  

@media (min-width:1200px) {
  #about{
    margin: 4%;
    justify-content: center;    

    
    .about-content{
      flex-direction: row;
      align-items: center;
      gap: 48px;
      
      
      
    }
    
    .about-image{
      order:1;
    }
    .about-info:first-child{
      order: 2;
    }
    .about-info:last-child {
      order: 3;
    }

  }
}


/* para caso a api não carregue */
.skeleton-card {
  width: clamp(300px, 90%, 350px);
  height: 400px;
  background: linear-gradient(
    90deg,
    var(--color-neutral-2) 25%,
    var(--color-neutral-3) 50%,
    var(--color-neutral-2) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 20px;
  margin-bottom: 20px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Animação de entrada */
.trending-card {
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
}

/* Delay */
.trending-card:nth-child(1) { animation-delay: 0.1s; }
.trending-card:nth-child(2) { animation-delay: 0.2s; }
.trending-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


#header {
  transition: box-shadow 0.3s ease;
}


.trending-card {
  transition: transform 0.3s ease;
}

.trending-card:hover {
  transform: translateY(-5px);
}

.trending-card img {
  transition: transform 0.3s ease;
}

.trending-card:hover img {
  transform: scale(1.02);
}