@import url('config.css');

body {
  font-family: "Poppins", sans-serif;
  background: var(--fundo-escuro);

  .header {
    background-color: var(--cor-laranjaEscuro);
    color: var(--cor-branco);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 100px;
    margin-bottom: 20px;

    img {
      width: 110px;
      height: 110px;
    }

    nav {
      display: flex;
      flex-direction: row;
      gap: 20px;

      .btnMain {
        display: flex;
        flex-direction: row;
        gap: 5px;
        font-size: 1.4rem;
        font-weight: bolder;
        position: relative;

        input {
          display: none;
        }

        label {
          cursor: pointer;
        }

        .op {
          display: none;
        }
      }

      #calc:checked ~ .calc {
        display: flex;
      }

      #conv:checked ~ .conv {
        display: flex;
      }

      :checked ~ .op {
        display: flex;
        flex-direction: column;
        text-align: left;
        position: absolute;
        top: 100%;
        left: -5%;
        margin-left: 10px;
        padding: 15px;
        width: 160px;
        background-color: var(--cor-branco);
        border-radius: 10px;

        a {
          color: var(--cor-preto);
          font-size: 1.1rem;
          font-weight: 500;
          cursor: pointer;
          padding: 5px;
          width: 100%;
          transition: all 0.3s ease;

          &:hover {
            text-decoration: underline;
            color: var(--cor-branco);
            background-color: var(--cor-laranjaClaro);
            border-radius: 8px;
          }
        }
      }
    }
  }

  #main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 40px;

    .card {
      background: var(--escuro-cinzaMedio);
      width: 270px;
      height: 200px;
      border-radius: 15px;
      box-shadow: 0 4px 10px #0000001a;
      overflow: hidden;
      transition: transform 0.5s ease, box-shadow 0.2s ease;

      a {
        text-decoration: none;
      }

      &:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px #0000009d;

        .card-content {
          i {
            color: var(--cor-roxo);
          }

          .tag {
            background: var(--cor-roxo);
          }
        }
      }

      img {
        width: 100%;
        height: 150px;
        object-fit: cover;
      }

      .card-content {
        padding: 15px;

        i {
          color: var(--cor-laranjaClaro);
          font-size: 2rem;
          transition: color 0.3s ease;
        }

        h3 {
          margin: 10px 0;
          color: var(--cor-branco);
          font-size: 1.2rem;
        }

        p {
          color: var(--claro-cinzaMedio);
          font-size: 0.95rem;
          line-height: 1.4;
          margin-bottom: 8px;
        }

        .tag {
          background: var(--cor-laranjaClaro);
          color: var(--cor-branco);
          font-size: 0.8rem;
          font-weight: bold;
          padding: 5px 8px;
          border-radius: 10px;
          transition: background 0.3s ease;
        }
      }
    }
  }

  /* Tablet */
  @media (max-width: 1024px) and (min-width: 768px) {
    .header {
      padding: 0 40px;
    }

    img {
      width: 70px;
      height: 70px;
    }

    nav {
      gap: 15px;

      .btnMain {
        gap: 4px;
        font-size: 1.2rem;
      }
    }
  }
  
  /* Mobile */
  @media (max-width: 767px) {

    .header {
      flex-direction: column;
      align-items: center;
      padding: 0 10px 20px 10px;
    }

    img {
      width: 55px;
      height: 55px;
    }

    nav {
      flex-direction: column;

      .btnMain {
        label {
          font-size: 1.2rem;
        }
      }
    }

    #main-content {
      padding: 20px;
      flex-direction: column;
      align-items: center;

      .card {
        width: 90%;
        max-width: 270px;
      }
    }
  }
}
