/* =========================================================
   RESET E CONFIGURAÇÕES GERAIS
   ========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Manrope', sans-serif;
}

body {
    min-height: 100vh;
    width: 100%;
    padding: 40px 0;

    /* Fundo dinâmico */
    background-image: url("../images/rain.jpg");
    background-size: cover;
    background-position: center;
    transition: background-image 0.6s ease;
    display: flex;
    justify-content: center;
}

/* =========================================================
   LAYOUT DUPLO (card + gráfico)
   ========================================================= */
.container-geral {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    width: 100%;
}

/* =========================================================
   CAIXA PRINCIPAL
   ========================================================= */
.caixa-maior {
    background: rgba(0, 0, 0, 0.75);
    border-radius: 25px;
    padding: 25px;
    width: 360px;

    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* =========================================================
   INPUT DE CIDADE
   ========================================================= */
.input-cidade {
    border: none;
    outline: none;
    padding: 12px;
    border-radius: 25px;
    font-size: 18px;
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    width: 100%;
    margin-bottom: 10px;
    transition: background-color 0.3s;
}

.input-cidade::placeholder {
    color: #ccc;
}

.input-cidade:focus {
    background-color: rgba(255, 255, 255, 0.25);
}

/* =========================================================
   BOTÃO DE BUSCA
   ========================================================= */
.botao-busca {
    border: none;
    outline: none;
    padding: 10px 14px;
    border-radius: 50px;
    background-color: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    float: right;
    transition: transform 0.25s, box-shadow 0.25s;
}

.botao-busca:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(255, 255, 0, 0.6);
}

.img-busca {
    width: 20px;
}

/* =========================================================
   INFORMAÇÕES DO CLIMA — VISUAL ORIGINAL RESTAURADO
   ========================================================= */
.caixa-media {
    margin-top: 30px;
    text-align: left;
}

.cidade {
    color: white;
    font-size: 28px;
    font-weight: 300;
}

.temp {
    font-size: 22px;
    color: white;
    margin-top: 15px;
}

.caixa-menor {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.img-previsao {
    width: 50px;
    height: 50px;
}

.texto-previsao {
    color: white;
    margin-left: 10px;
    font-size: 18px;
    text-transform: capitalize;
}

.umidade {
    color: white;
    margin-top: 20px;
    font-size: 16px;
}

/* =========================================================
   BOTÕES ESPECIAIS (paralelismo e gráfico)
   ========================================================= */
.teste-paralelo-btn,
.grafico-btn {
    display: block;
    margin-top: 20px;
    width: 100%;
    font-size: 14px;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    padding: 10px;
}

/* Hover pro */
.teste-paralelo-btn:hover,
.grafico-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 0 15px rgba(255, 255, 0, 0.6);
    border-color: yellow;
}

.teste-paralelo-btn::before,
.grafico-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 100%;
    height: 100%;

    background: linear-gradient(120deg,
        transparent,
        rgba(255, 255, 0, 0.5),
        transparent);
    transition: 0.4s ease;
}

.teste-paralelo-btn:hover::before,
.grafico-btn:hover::before {
    left: 120%;
}

/* =========================================================
   LINKS HOME / HISTÓRICO
   ========================================================= */
.botaoinicial,
.botaohistorico {
    display: block;
    margin: 20px auto 0 auto;
    width: fit-content;
    font-size: 16px;
    color: white;
    text-decoration: none;

    padding: 8px 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;

    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.botaoinicial:hover,
.botaohistorico:hover {
    color: yellow;
    transform: scale(1.08);
    box-shadow: 0 0 12px rgba(255, 255, 0, 0.5);
    border-color: yellow;
}

.botaoinicial::before,
.botaohistorico::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg,
        transparent,
        rgba(255, 255, 0, 0.5),
        transparent);
    transition: 0.4s ease;
}

.botaoinicial:hover::before,
.botaohistorico:hover::before {
    left: 120%;
}

/* =========================================================
   CAIXA DO GRÁFICO
   ========================================================= */
.caixa-grafico {
    width: 330px;
    height: 350px;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;

    padding: 15px;
    color: white;

    display: none;

    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
}
