/* RESPONSIVIDADE */
@media (max-width: 600px) {
  .btn-calculadora {
    width: 3.5rem;
    height: 3.5rem;
  }

  .front {
    font-size: 1.25rem;
    padding: 0.75rem 1.25rem;
  }

  .display-calculadora {
    font-size: 1.5rem;
    height: 4rem;
  }
}

.calculadora-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0; /* Garante que não há margem */
  padding: 0; /* Garante que não há padding */
  box-sizing: border-box;
}

/* CENTRALIZAÇÃO DA CALCULADORA */
.main-calculadora {
  display: flex;
  flex-direction: column;
  width: fit-content;
  max-width: 100%;
  border: 3px solid #333;
  box-shadow: 0px 4px 30px #73b369;
  border-radius: 1.25rem;
  padding: 1rem;
  background-color: #a5cd50;
}

/* DISPLAY DA CALCULADORA */
.display-calculadora {
  pointer-events: none;
  text-align: right;
  font-family: "Poppins", sans-serif;
  font-size: 2rem;
  height: 5rem;
  color: #eee;
  background-color: #3a3231;
  border: 1px solid #333;
  border-radius: 0.625rem;
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
  width: 100%;
  box-sizing: border-box;
}

/* GRADE DOS BOTÕES */
.btn-calculadora-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  width: 100%;
  margin: 0 auto;
}

/* BOTÕES BASE */
.btn-calculadora {
  width: 4.5rem;
  height: 4.5rem;
  font-family: "Poppins", sans-serif;
  font-size: 1.75rem;
  border: none;
  background: none;
  padding: 0;
}

/* BOTÕES INTERATIVOS */
.pushable {
  position: relative;
  background: transparent;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  transition: filter 250ms;
}

.pushable:focus-visible {
  outline: 2px solid #efc936;
  outline-offset: 4px;
}

/* SOMBRA DOS BOTÕES */
.shadow {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(239, 201, 54, 0.6);
  border-radius: 0.5rem;
  filter: blur(2px);
  will-change: transform;
  transform: translateY(2px);
  transition: transform 600ms cubic-bezier(0.3, 0.7, 0.4, 1);
}

/* BORDA DA SOMBRA DOS BOTÕES */
.edge {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  border-radius: 0.5rem;
  background: linear-gradient(
    to right,
    #9f8200 0%,
    #bf9e1f 8%,
    #bf9e1f 92%,
    #9f8200 100%
  );
}

/* FRENTE DOS BOTÕES */
.front {
  display: block;
  position: relative;
  border-radius: 0.5rem;
  background: #f1c92a;
  padding: 1rem 2rem;
  color: #eee;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 1.5rem;
  transform: translateY(-4px);
  transition: transform 600ms cubic-bezier(0.3, 0.7, 0.4, 1);
}

/* HOVER E ACTIVE */
.pushable:hover {
  filter: brightness(110%);
}

.pushable:hover .front {
  transform: translateY(-6px);
  transition: transform 250ms cubic-bezier(0.3, 0.7, 0.4, 1.5);
}

.pushable:active .front {
  transform: translateY(-2px);
  transition: transform 34ms;
}

.pushable:hover .shadow {
  transform: translateY(4px);
  transition: transform 250ms cubic-bezier(0.3, 0.7, 0.4, 1.5);
}

.pushable:active .shadow {
  transform: translateY(1px);
  transition: transform 34ms;
}

/* BOTÃO VERMELHO (C) */
.pushable.red .edge {
  background: linear-gradient(to right, #802222 0%, #a83333 100%);
}
.pushable.red .front {
  background: #d44444;
}

/* BOTÃO VERDE (=) */
.pushable.green .edge {
  background: linear-gradient(to right, #3b7d3b 0%, #4caf50 100%);
}
.pushable.green .front {
  background: #4caf50;
}
