/* --- R E S E T S --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #0d1117; /* Fundo escuro padrão da sua marca */
    color: #c9d1d9;
    min-height: 100vh;
    display: flex;
    justify-content: center; 
    align-items: center;
    padding: 2rem 1rem;
}

/* --- CONTAINER PRINCIPAL --- */
.app-container {
    width: 100%;
    max-width: 450px;
    background-color: #161b22; /* Card cinza escuro */
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

/* --- HEADER --- */
header {
    text-align: center;
    margin-bottom: 2rem;
}

header h1 {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 0.3rem;
}

header h3 {
    color: #8b949e;
    font-size: 0.9rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* --- ENTRADA DE DADOS & CAIXA DE BUSCA --- */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.input-group label {
    font-size: 0.9rem;
    color: #8b949e;
    font-weight: 500;
}

/* Agrupa o input e o botão na mesma linha horizontal */
.search-box {
    display: flex;
    gap: 10px;
}

.search-box input {
    flex: 1;
    background-color: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    color: #ffffff;
    outline: none;
    transition: border-color 0.2s ease;
}

.search-box input:focus {
    border-color: #00ff00; /* Acende em verde ao clicar */
}

/* --- BOTÃO DE BUSCA --- */
#btn-buscar {
    background-color: #00ff00;
    color: #000000;
    font-weight: bold;
    font-size: 1rem;
    padding: 0 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

#btn-buscar:hover {
    background-color: #00cc00;
    transform: translateY(-1px);
}

/* --- ÁREA DO EXIBIÇÃO DO RESULTADO --- */
.resultado-container {
    background-color: #21262d;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 2rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* Bloco principal: agrupa o ícone do tempo e o número */
.clima-principal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.clima-icone {
    font-size: 3rem; /* Emoji de tamanho grande */
    line-height: 1;
}

.clima-temp {
    font-size: 3.5rem;
    font-weight: bold;
    color: #ffffff;
}

.clima-temp .graus {
    color: #00ff00; /* O símbolo de grau brilha em verde */
    font-size: 2rem;
    font-weight: 500;
    vertical-align: super;
}

#clima-descricao {
    font-size: 1.2rem;
    font-weight: 500;
    color: #c9d1d9;
    text-transform: capitalize; /* Deixa a primeira letra maiúscula */
}

/* --- CONTAINER DOS DETALHES INFERIORES --- */
.clima-detalhes {
    width: 100%;
    display: flex;
    justify-content: space-around;
    border-top: 1px solid #30363d;
    margin-top: 10px;
    padding-top: 15px;
}

.detalhe-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detalhe-item .label {
    font-size: 0.8rem;
    color: #8b949e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detalhe-item .valor {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
}
