/*
Theme Name: Notícias Tailwind - Claro (pronto)
Theme URI:  https://example.com/noticias-tailwind
Author:      Seu Nome
Description: Tema de notícias tipo Newspaper - modo claro padrão, botão dark mode disponível. Paleta #ff4300.
Version:     1.3.0
Text Domain: noticias-tailwind
License:     GPLv2 or later
*/

/* ===============================
   BASE GERAL - MODO CLARO
================================== */
body {
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
    background-color: #fafafa;
    color: #222;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    color: #ff4300;
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover {
    color: #e63d00;
}

/* ===============================
   HEADER
================================== */
.site-header {
    border-bottom: 1px solid #e5e5e5;
    padding: 1rem 0;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.site-branding .site-logo {
    max-height: 48px;
    width: auto;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.menu {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.menu li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    position: relative;
}
.menu li a:hover {
    color: #ff4300;
}
.menu li a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: #ff4300;
    transition: width 0.3s ease;
}
.menu li a:hover::after {
    width: 100%;
}

/* ===============================
   BOTÕES E ELEMENTOS INTERATIVOS
================================== */
.menu-toggle,
.dark-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.3rem;
    color: #333;
    transition: color 0.2s ease;
}
.menu-toggle:hover,
.dark-toggle:hover {
    color: #ff4300;
}

/* Ícone do menu hambúrguer */
.menu-icon {
    width: 24px;
    height: 2px;
    background: #333;
    position: relative;
    transition: all 0.3s ease;
}
.menu-icon::before,
.menu-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: #333;
    left: 0;
    transition: all 0.3s ease;
}
.menu-icon::before { top: -7px; }
.menu-icon::after { top: 7px; }

/* ===============================
   DARK MODE
================================== */
body.dark-mode {
    background-color: #1e1e1e;
    color: #eee;
}

body.dark-mode a {
    color: #ff784d;
}
body.dark-mode a:hover {
    color: #ff4300;
}

body.dark-mode .site-header {
    background-color: #2a2a2a;
    border-bottom-color: #333;
    box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

body.dark-mode .menu li a {
    color: #eee;
}
body.dark-mode .menu li a:hover {
    color: #ff4300;
}

/* Ícones do modo escuro */
.dark-icon,
.light-icon {
    display: none;
}

body.dark-mode .dark-icon {
    display: inline;
}

body:not(.dark-mode) .light-icon {
    display: inline;
}

/* ===============================
   RESPONSIVIDADE
================================== */
@media (max-width: 768px) {
    .site-nav {
        display: none;
    }

    .site-nav.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        padding: 1rem;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        animation: fadeIn 0.2s ease;
    }

    body.dark-mode .site-nav.active {
        background: #2a2a2a;
    }

    .menu {
        flex-direction: column;
        gap: 1rem;
    }

    .menu-toggle {
        display: block;
    }
}

/* ===============================
   ANIMAÇÕES SUAVES
================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
