/* Importa fonte personalizada */
@import url('https://fonts.googleapis.com/css2?family=Tuffy:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* Reset e fonte padrão */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tuffy', sans-serif;
}

/* Fundo da página com imagem */
body {
    background-image: url("./assets/mary-hinton-J5BJXHvWjco-unsplash.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Container principal centralizado */
.container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 90%;
    max-width: 460px;
    padding: 20px;
    margin: 20px auto;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    background-color: rgba(18, 18, 18, 0.9);
    border-radius: 20px;
    color: #E0E0E0;
    text-align: left;
}

/* Card de informações do clima com animação de expansão */
.card {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 2s cubic-bezier(.4,2,.6,1), opacity 1.5s;
}

/* Card expandido (aparece com animação) */
.card.expandir {
    max-height: 500px; /* ajuste conforme necessário */
    opacity: 1;
    overflow: visible;
}

/* Área de busca (input + botão) */
.input-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

/* Campo de texto para cidade */
#cidade-input {
    height: 40px;
    width: 250px;
    padding: 10px 15px;
    font-size: 17px;
    border: 1px solid #cccccc;
    border-radius: 20px;
    background-color: #1e1e1e;
    color: #aaaaaa;
    outline: none;
}

/* Placeholder do campo */
#cidade-input::placeholder {
    color: #aaaaaa;
    opacity: 1;
}

/* Efeito ao focar no campo */
#cidade-input:focus {
    border-color: #007BFF;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* Botão de busca */
.buscar-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #007BFF;
    color: white;
    cursor: pointer;
    margin-left: 10px;
    transition: all 0.3s ease;
}

/* Efeito hover no botão */
.buscar-btn:hover {
    background-color: #0056b3;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Efeito ao clicar no botão */
.buscar-btn:active {
    background-color: #003f7f;
    transform: scale(0.95);
}

/* Ícone do botão */
.buscar-btn i {
    font-size: 20px;
}

/* Títulos e textos */
h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #FFD700;
}

h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #FFFFFF;
}

p {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 10px;
    color: #E0E0E0;
}

span {
    font-size: 14px;
    font-weight: 300;
    color: #00BFFF;
}

/* Linha de condição: ícone + texto alinhados */
#linha-condicao {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Condição: ícone + texto */
#condicao {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Ícone do clima */
.icone-clima {
    width: 32px;
    height: 32px;
    margin: 0;
}

