/* assets/style.css - Estilos Principais */

/* ===== RESET & VARIÁVEIS ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1A4D8F;
    --secondary: #E8944A;
    --accent: #2D5F3F;
    --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);
}

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 ===== */
.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;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(45,95,63,0.3));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    color: var(--white);
}

.logo-name {
    font-size: 1.25rem;
    font-weight: bold;
}

.logo-tagline {
    font-size: 0.75rem;
    color: var(--secondary);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

.main-nav {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    color: var(--white);
    font-weight: 500;
    transition: opacity 0.3s;
}

.main-nav a:hover {
    opacity: 0.8;
}

/* ===== 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 ===== */
.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;
}

.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);
}

/* ===== FOOTER ===== */
.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(--white);
}

.social-icons {
    display: flex;
    gap: 1rem;
    font-size: 1.5rem;
}

.social-icons a {
    transition: transform 0.2s;
}

.social-icons a:hover {
    transform: scale(1.2);
}

.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(--white);
}

/* ===== POSTS RELACIONADOS ===== */
.related-posts {
    background: var(--white);
    padding: 3rem 0;
}

/* ===== 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;
    }
}