/* assets/style.css - Estilos Principais - ATUALIZADO COM DOURADO VIBRANTE! */

/* ===== RESET & VARIÁVEIS ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1A4D8F;
    --secondary: #E8944A;
    --accent: #2D5F3F;
    --gold: #FFD700; /* NOVO: Dourado vibrante */
    --gold-dark: #FFA500; /* NOVO: Dourado escuro */
    --dark: #1C1C1E;
    --light: #F8F9FA;
    --gray: #6C757D;
    --white: #FFFFFF;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.15);
    --shadow-gold: 0 4px 15px rgba(255, 165, 0, 0.4); /* NOVO: Sombra dourada */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--light);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== CONTAINERS ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER - ATUALIZADO! ===== */
.site-header {
    background: var(--primary);
    color: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ===== ÍCONE DOURADO VIBRANTE! ===== */
.logo-icon {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: var(--shadow-gold);
}

.logo:hover .logo-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(255, 165, 0, 0.6);
}

/* Gráfico de Barras SVG */
.logo-icon::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M5 9.2h3V19H5V9.2zM10.6 5h2.8v14h-2.8V5zm5.6 8H19v6h-2.8v-6z"/></svg>') center/60% no-repeat;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.logo-name {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--white);
}

/* ===== TAGLINE DOURADO! ===== */
.logo-tagline {
    font-size: 0.85rem;
    color: var(--gold);
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== NAVEGAÇÃO - ATUALIZADO COM DOURADO! ===== */
.main-nav {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    color: var(--white);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.main-nav a:hover {
    color: var(--gold);
}

/* Underline dourado ao hover */
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-dark));
    transition: transform 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* Link ativo em dourado */
.main-nav a.active {
    color: var(--gold);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* Focus states em dourado */
.main-nav a:focus-visible,
.menu-toggle:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 4px;
    border-radius: 4px;
}

/* ===== POST DESTAQUE ===== */
.featured-post {
    background: var(--white);
    padding: 3rem 0;
}

.featured-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.featured-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
}

.featured-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin: 1rem 0;
}

.featured-title a {
    color: var(--dark);
    transition: color 0.3s;
}

.featured-title a:hover {
    color: var(--primary);
}

.featured-subtitle {
    font-size: 1.25rem;
    color: var(--gray);
    margin: 1rem 0;
}

.category-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
}

.post-meta {
    display: flex;
    gap: 1rem;
    color: var(--gray);
    font-size: 0.875rem;
    margin: 1rem 0;
}

.btn-primary {
    display: inline-block;
    background: var(--secondary);
    color: var(--white);
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===== GRID DE POSTS ===== */
.posts-grid {
    padding: 4rem 0;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--dark);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.post-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--accent);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.card-content {
    padding: 1.5rem;
}

.card-meta {
    font-size: 0.875rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.card-title {
    font-size: 1.25rem;
    margin: 0.5rem 0;
    line-height: 1.4;
}

.card-title a {
    color: var(--dark);
    transition: color 0.3s;
}

.card-title a:hover {
    color: var(--primary);
}

.card-excerpt {
    color: var(--gray);
    margin: 1rem 0;
}

.card-link {
    color: var(--secondary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===== POST INDIVIDUAL ===== */
.post-single {
    padding: 3rem 0;
}

.post-header {
    text-align: center;
    margin-bottom: 3rem;
}

.post-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin: 1rem 0;
    color: var(--dark);
}

.post-subtitle {
    font-size: 1.5rem;
    color: var(--gray);
    margin: 1rem 0;
}

.post-featured-image {
    margin: 3rem 0;
    border-radius: 12px;
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: auto;
}

.post-featured-image figcaption {
    padding: 1rem;
    background: var(--light);
    text-align: center;
    font-size: 0.875rem;
    color: var(--gray);
}

.post-content {
    font-size: 1.125rem;
    line-height: 1.8;
    margin: 3rem 0;
}

.post-content p {
    margin-bottom: 1.5rem;
}

/* ===== BOTÕES DE COMPARTILHAMENTO ===== */
.share-buttons {
    background: var(--light);
    padding: 2rem;
    border-radius: 12px;
    margin: 3rem 0;
}

.share-buttons h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.share-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.share-btn.whatsapp {
    background: #25D366;
    color: var(--white);
}

.share-btn.facebook {
    background: #1877F2;
    color: var(--white);
}

.share-btn.telegram {
    background: #0088cc;
    color: var(--white);
}

.share-btn.twitter {
    background: #000000;
    color: var(--white);
}

.share-btn.copy-link {
    background: var(--gray);
    color: var(--white);
}

/* ===== NEWSLETTER - ATUALIZADO! ===== */
.newsletter {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
    padding: 4rem 0;
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
}

.newsletter-form input:focus {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-secondary:hover {
    transform: translateY(-2px);
}

.btn-secondary:focus {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

/* ===== FOOTER - ATUALIZADO! ===== */
.site-footer {
    background: var(--dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.footer-about p {
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
}

.footer-links h4,
.footer-social h4 {
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--gold);
}

.social-icons {
    display: flex;
    gap: 1rem;
    font-size: 1.5rem;
}

.social-icons a {
    transition: transform 0.2s, color 0.3s;
}

.social-icons a:hover {
    transform: scale(1.2);
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
}

.footer-menu {
    display: flex;
    gap: 1.5rem;
}

.footer-menu a {
    color: rgba(255,255,255,0.7);
    transition: color 0.3s;
}

.footer-menu a:hover {
    color: var(--gold);
}

/* ===== POSTS RELACIONADOS ===== */
.related-posts {
    background: var(--white);
    padding: 3rem 0;
}

/* ===== SKIP LINK (ACESSIBILIDADE) ===== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    z-index: 100;
    font-weight: 600;
    border-radius: 0 0 8px 0;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary);
        flex-direction: column;
        padding: 1rem;
        display: none;
    }
    
    .main-nav.active {
        display: flex;
    }
    
    .featured-content {
        grid-template-columns: 1fr;
    }
    
    .featured-title {
        font-size: 2rem;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .share-icons {
        flex-direction: column;
    }
    
    .logo-icon {
        width: 45px;
        height: 45px;
    }
    
    .logo-name {
        font-size: 1.1rem;
    }
    
    .logo-tagline {
        font-size: 0.75rem;
    }
}

/* ===== ANIMAÇÕES SUAVES ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-card,
.featured-content {
    animation: fadeIn 0.6s ease-out;
}

/* ===== UTILITÁRIOS ===== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}