/* ==========================================================================
   Consulta de Tempo — Componentes
   Campos de busca, botões, tabela quinzenal e redes sociais do rodapé
   Tiago Lucas (Git Tiagolucasoo)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@600;700;800&display=swap');

/* 1) Campos de busca */
input,
select {
  padding: 13px 16px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--texto);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--cartao-borda);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

input::placeholder {
  color: #7e90a6;
}

input:focus,
select:focus {
  border-color: var(--azul-claro);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 4px rgba(69, 196, 255, 0.16);
}

select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%239db0c6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

/* Enquanto o país não foi escolhido, o select exibe o "placeholder" */
.Pesquisa select:has(option[value="00"]:checked) {
  color: var(--texto-suave);
}

/* 1.1) Sugestões de cidade (autocompletar) */
.sugestoes {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 50;
  background: #101b2e;
  border: 1px solid var(--cartao-borda);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--sombra);
  display: none;
}

.sugestoes.aberta {
  display: block;
}

.sugestao {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 11px 14px;
  cursor: pointer;
}

.sugestao + .sugestao {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sugestao:hover {
  background: rgba(69, 196, 255, 0.12);
}

.sugestao strong {
  font-weight: 600;
  font-size: 0.95rem;
}

.sugestao small {
  color: var(--texto-suave);
  font-size: 0.8rem;
}

option {
  background-color: #101b2e;
  color: var(--texto);
  padding: 10px 14px;
  font-size: 1rem;
}

/* 2) Botão principal — Pesquisar */
button {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  padding: 13px 28px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--azul) 0%, #1273a8 100%);
  box-shadow: 0 8px 20px rgba(27, 151, 213, 0.28);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

button:hover {
  transform: translateY(-2px);
  filter: brightness(1.07);
  box-shadow: 0 12px 26px rgba(27, 151, 213, 0.4);
}

button:active {
  transform: translateY(0);
  filter: brightness(0.97);
}

button:focus-visible {
  outline: 3px solid rgba(69, 196, 255, 0.55);
  outline-offset: 2px;
}

/* 3) Botões menores — GPS e Limpar */
button.menor {
  width: 49px;
  height: 49px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, var(--laranja) 0%, #b06a2c 100%);
  box-shadow: 0 8px 20px rgba(220, 133, 61, 0.25);
}

button.menor:hover {
  box-shadow: 0 12px 26px rgba(220, 133, 61, 0.38);
}

/* 4) Tabela quinzenal */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 14px;
  overflow: hidden;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.03);
}

thead td {
  background: linear-gradient(90deg, #1273a8, var(--azul));
  color: #fff;
  padding: 13px 14px;
  text-align: center;
  font-weight: 600;
}

thead td p {
  font-weight: 600;
}

tbody td {
  padding: 12px 14px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}

tbody tr:hover {
  background: rgba(69, 196, 255, 0.1);
  cursor: pointer;
}

/* 5) Rodapé — logo tiagolucas.tech (adaptada para a paleta do projeto) */
.container-logo {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-weight: 700;
  font-size: 1.2rem;
  padding: 8px 12px;
  border-radius: 12px;
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.container-logo:hover {
  background-color: rgba(69, 196, 255, 0.07);
}

.container-logo:focus-visible {
  outline: 2px solid var(--azul-claro);
  outline-offset: 2px;
}

.logo-item1,
.logo-item3 {
  color: var(--azul-claro);
}

.logo-item2 {
  color: var(--texto);
}

.logo-item4 {
  color: var(--laranja-claro);
}

.container-logo span {
  display: inline-block;
  letter-spacing: 0.5px;
  transition: transform 0.25s ease, color 0.25s ease;
}

/* Animações de hover */
.container-logo:hover .logo-item1 {
  transform: translateY(-3px);
}

.container-logo:hover .logo-item2 {
  color: var(--azul-claro);
  transform: skewX(-5deg);
}

.container-logo:hover .logo-item3 {
  transform: rotate(-10deg);
}

.container-logo:hover .logo-item4 {
  transform: scale(1.25) rotate(8deg);
  animation: pulo 0.6s ease-in-out;
}

@keyframes pulo {
  0%, 100% {
    transform: scale(1.25) rotate(8deg) translateY(0);
  }
  50% {
    transform: scale(1.25) rotate(8deg) translateY(-6px);
  }
}
