/* --- CONFIGURAÇÕES GERAIS E RESETS --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #f8f9fa;
    --bg-card: #ffffff;
    --text-main: #212529;
    --text-muted: #6c757d;
    --border-color: #e9ecef;
    --accent-color: #000000;
    --accent-hover: #333333;
    --status-pos: #2b9348;
    --status-neg: #d90429;
    --radius-main: 12px;
    --shadow-subtle: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --transition-fast: opacity 0.2s ease, background-color 0.2s ease;
}

html {
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-main);
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- HEADER & COMPONENTES DE NAVEGAÇÃO --- */
.main-header {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1140px;
    margin: 0 auto;
    padding: 15px 20px;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--accent-color);
}

.logo span {
    font-weight: 400;
    color: var(--text-muted);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--text-main);
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu a:hover {
    color: var(--text-muted);
}

/* --- LAYOUT E SEÇÕES DO CONTEÚDO --- */
.main-content {
    flex: 1;
    padding-top: 30px;
    padding-bottom: 50px;
}

.section-block {
    margin-top: 40px;
}

.section-title {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.02em;
}

/* --- BLOCOS DE RESUMO OTIMIZADOS PARA AEO/GEM --- */
.aeo-summary {
    background-color: var(--bg-card);
    border-left: 4px solid var(--accent-color);
    padding: 15px;
    border-radius: 4px var(--radius-main) var(--radius-main) 4px;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
    box-shadow: var(--shadow-subtle);
}

/* --- BLOCOS DE ANÚNCIOS ADSENSE --- */
.ad-container {
    text-align: center;
    margin: 25px auto;
    padding: 10px;
    background-color: var(--bg-card);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-main);
}

.ad-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

/* --- HERO WIDGET / RELÓGIO --- */
.hero-widget {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    align-items: center;
}

.hero-info h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 10px;
}

.hero-info p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.5;
}

.live-clock-card {
    background-color: var(--accent-color);
    color: #ffffff;
    padding: 25px;
    border-radius: var(--radius-main);
    text-align: center;
    box-shadow: var(--shadow-subtle);
}

.clock-time {
    font-size: 2.2rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

.clock-date {
    font-size: 0.85rem;
    margin-top: 5px;
    opacity: 0.8;
    text-transform: capitalize;
}

/* --- CARDS E GRIDS EM COMPONENTES --- */

/* Grid Clima */
.weather-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
}

.main-weather-card {
    background-color: var(--bg-card);
    padding: 25px;
    border-radius: var(--radius-main);
    box-shadow: var(--shadow-subtle);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.weather-search {
    display: flex;
    background-color: var(--bg-primary);
    border-radius: 8px;
    padding: 5px 10px;
    border: 1px solid var(--border-color);
}

.weather-search input {
    border: none;
    background: none;
    outline: none;
    padding: 8px;
    width: 100%;
    font-family: inherit;
    font-size: 0.9rem;
}

.weather-search button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
}

.weather-primary-info {
    margin-top: 25px;
}

.weather-city {
    font-size: 1.1rem;
    font-weight: 600;
}

.weather-temp-container {
    margin: 10px 0;
}

.weather-temp {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.weather-unit {
    font-size: 1.5rem;
    font-weight: 500;
    vertical-align: super;
}

.weather-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-transform: capitalize;
}

.details-weather-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.detail-card {
    background-color: var(--bg-card);
    padding: 20px;
    border-radius: var(--radius-main);
    box-shadow: var(--shadow-subtle);
    display: flex;
    align-items: center;
    gap: 15px;
}

.detail-icon {
    font-size: 1.5rem;
    color: var(--text-muted);
    width: 30px;
    text-align: center;
}

.detail-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.detail-value {
    font-size: 1.05rem;
    font-weight: 600;
}

/* Grid Finanças */
.finance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.finance-card {
    background-color: var(--bg-card);
    padding: 20px;
    border-radius: var(--radius-main);
    box-shadow: var(--shadow-subtle);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.finance-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.finance-name {
    font-size: 0.9rem;
    font-weight: 500;
}

.finance-name i {
    margin-right: 4px;
}

.finance-tag {
    font-size: 0.75rem;
    background-color: var(--bg-primary);
    padding: 3px 6px;
    border-radius: 4px;
    color: var(--text-muted);
    font-weight: 600;
}

.finance-value {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 5px;
    font-variant-numeric: tabular-nums;
}

.finance-pct {
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    width: max-content;
    padding: 2px 6px;
    border-radius: 4px;
}

.status-positive {
    background-color: rgba(43, 147, 72, 0.1);
    color: var(--status-pos);
}

.status-negative {
    background-color: rgba(217, 4, 41, 0.1);
    color: var(--status-neg);
}

/* Interface Horóscopo */
.horoscope-interface {
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius-main);
    box-shadow: var(--shadow-subtle);
}

.selector-wrapper {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.selector-wrapper label {
    font-weight: 500;
    font-size: 0.95rem;
}

.styled-select {
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-primary);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    cursor: pointer;
    min-width: 160px;
}

.horoscope-display-card {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.horoscope-display-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.horoscope-display-header i {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.horoscope-display-header h3 {
    font-size: 1.15rem;
    font-weight: 600;
}

.horoscope-body p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333333;
}

/* --- FOOTER / RODAPÉ --- */
.main-footer {
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    text-align: center;
    margin-top: 60px;
}

.footer-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-sub {
    font-size: 0.8rem !important;
    margin-top: 5px;
    opacity: 0.7;
}

/* --- RESPONSIVIDADE (MOBILE-FIRST BREAKPOINTS) --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-card);
        border-bottom: 1px solid var(--border-color);
        padding: 20px;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    }

    .nav-menu.open {
        display: block;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 15px;
    }

    .hero-widget {
        grid-template-columns: 1fr;
    }

    .weather-grid {
        grid-template-columns: 1fr;
    }

    .selector-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .styled-select {
        width: 100%;
    }
}