/* Blog & Landing Page Styles — Minhas Aves */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f6fa;
    color: #333;
    line-height: 1.7;
}

a { color: #667eea; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.blog-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

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

.blog-logo {
    color: white;
    font-size: 1.4em;
    font-weight: bold;
    text-decoration: none;
}

.blog-nav {
    display: flex;
    gap: 24px;
}

.blog-nav a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.blog-nav a:hover, .blog-nav a.active {
    color: white;
    border-bottom-color: white;
    text-decoration: none;
}

.blog-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.blog-hamburger span {
    display: block;
    width: 24px;
    height: 3px;
    background: white;
    margin: 4px 0;
    border-radius: 2px;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 20px;
    text-align: center;
    color: white;
}

.hero-inner {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2em;
    opacity: 0.9;
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* CTA Buttons */
.cta-button {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1em;
    text-decoration: none;
    transition: all 0.2s;
}

.cta-button:hover {
    background: #218838;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.cta-large {
    padding: 18px 40px;
    font-size: 1.2em;
}

.cta-secondary {
    background: rgba(255,255,255,0.2);
    border: 2px solid white;
}

.cta-secondary:hover {
    background: rgba(255,255,255,0.3);
}

/* Features */
.features {
    padding: 60px 20px;
    background: white;
}

.features-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 30px 20px;
}

.feature-icon {
    font-size: 3em;
    display: block;
    margin-bottom: 15px;
}

.feature-card h3 {
    margin-bottom: 10px;
    color: #333;
}

.feature-card p {
    color: #666;
    font-size: 0.95em;
}

/* Species Section */
.species-section {
    padding: 60px 20px;
}

.species-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.species-inner h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8em;
    color: #333;
}

.species-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.species-card {
    display: block;
    background: white;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.species-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    text-decoration: none;
}

.species-card span {
    font-size: 2.5em;
    display: block;
    margin-bottom: 10px;
}

.species-card h3 {
    color: #333;
    margin-bottom: 6px;
}

.species-card p {
    color: #666;
    font-size: 0.85em;
}

/* Featured Articles */
.featured-articles {
    padding: 60px 20px;
    background: white;
}

.featured-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.featured-inner h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8em;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.article-card, .featured-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.2s;
}

.article-card:hover, .featured-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.article-card h2 {
    font-size: 1.2em;
    margin-bottom: 8px;
}

.article-card h2 a, .featured-card h3 a {
    color: #333;
    text-decoration: none;
}

.article-card h2 a:hover, .featured-card h3 a:hover {
    color: #667eea;
}

.article-date {
    color: #999;
    font-size: 0.85em;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    color: #999;
    font-size: 0.85em;
}

.reading-time {
    color: #999;
    font-size: 0.85em;
}

.reading-time::before {
    content: "·";
    margin-right: 16px;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    color: #667eea;
    font-weight: 500;
}

.view-all-link {
    display: block;
    text-align: center;
    margin-top: 30px;
    font-weight: 600;
    font-size: 1.1em;
}

/* Final CTA */
.final-cta {
    padding: 80px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-align: center;
    color: white;
}

.final-cta-inner {
    max-width: 600px;
    margin: 0 auto;
}

.final-cta h2 {
    font-size: 2em;
    margin-bottom: 15px;
}

.final-cta p {
    font-size: 1.15em;
    opacity: 0.9;
    margin-bottom: 25px;
}

/* Blog Article Layout */
.blog-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.blog-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.blog-article {
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.blog-article h1 {
    font-size: 2em;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.3;
}

.article-content {
    font-size: 1.05em;
    line-height: 1.8;
}

.article-content h2 {
    font-size: 1.5em;
    color: #333;
    margin: 35px 0 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #667eea;
}

.article-content h3 {
    font-size: 1.2em;
    margin: 25px 0 10px;
}

.article-content p {
    margin-bottom: 16px;
}

.article-content ul, .article-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content strong {
    color: #333;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.95em;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.article-content thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.article-content th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
}

.article-content td {
    padding: 10px 16px;
    border-bottom: 1px solid #eee;
}

.article-content tbody tr:last-child td {
    border-bottom: none;
}

.article-content tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.article-content tbody tr:hover {
    background: #f0f1f5;
}

@media (max-width: 768px) {
    .article-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .article-content th,
    .article-content td {
        padding: 8px 12px;
        white-space: nowrap;
    }
}

.article-content blockquote {
    border-left: 4px solid #667eea;
    padding: 12px 20px;
    margin: 20px 0;
    background: #f8f9fa;
    border-radius: 0 8px 8px 0;
}

/* Table of Contents */
.toc {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
}

.toc-title {
    font-size: 1.1em !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
    border: none !important;
    color: #555;
}

.toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc li {
    padding: 6px 0;
    border-bottom: 1px solid #e9ecef;
}

.toc li:last-child {
    border-bottom: none;
}

.toc a {
    color: #555;
    font-size: 0.95em;
    text-decoration: none;
}

.toc a:hover {
    color: #667eea;
}

/* Mid-article CTA */
.cta-mid-article {
    margin: 35px 0;
}

/* Related Articles */
.related-articles {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #eee;
}

.related-articles h3 {
    font-size: 1.3em;
    margin-bottom: 20px;
    color: #333;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    transition: all 0.2s;
}

.related-card:hover {
    background: #f0f1f5;
    transform: translateY(-2px);
}

.related-card h4 {
    margin-bottom: 8px;
    font-size: 1em;
    line-height: 1.4;
}

.related-card h4 a {
    color: #333;
    text-decoration: none;
}

.related-card h4 a:hover {
    color: #667eea;
}

.related-card p {
    color: #666;
    font-size: 0.85em;
    line-height: 1.5;
    margin: 0;
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 20px;
    font-size: 0.9em;
    color: #999;
}

.breadcrumb a {
    color: #667eea;
}

/* Guia Index Header */
.guia-header {
    text-align: center;
    padding: 40px 0;
}

.guia-header h1 {
    font-size: 2em;
    color: #333;
    margin-bottom: 10px;
}

.guia-header p {
    color: #666;
    font-size: 1.1em;
    max-width: 700px;
    margin: 0 auto;
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin: 40px 0;
}

.cta-box h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
}

.cta-box p {
    margin-bottom: 20px;
    opacity: 0.9;
}

/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: 80px;
    align-self: start;
}

.sidebar-widget {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.sidebar-widget h3 {
    margin-bottom: 12px;
    color: #333;
    font-size: 1.1em;
}

.sidebar-widget p {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.sidebar-cta {
    display: block;
    background: #667eea;
    color: white;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
}

.sidebar-cta:hover {
    background: #5568d3;
    text-decoration: none;
}

.sidebar-links {
    list-style: none;
    padding: 0;
}

.sidebar-links li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.sidebar-links li:last-child {
    border-bottom: none;
}

.sidebar-links a {
    color: #333;
    font-size: 0.9em;
}

.sidebar-links a:hover {
    color: #667eea;
}

/* Ad containers */
.ad-container {
    overflow: hidden;
    min-height: 50px;
    text-align: center;
    padding: 15px 0;
    max-width: 1200px;
    margin: 0 auto;
}

/* Footer */
.blog-footer {
    background: #333;
    color: #aaa;
    text-align: center;
    padding: 30px 20px;
    font-size: 0.9em;
}

.blog-footer a {
    color: #ccc;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-nav {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        flex-direction: column;
        padding: 20px;
        gap: 0;
    }

    .blog-nav.active {
        display: flex;
    }

    .blog-nav a {
        padding: 12px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .blog-hamburger {
        display: block;
    }

    .hero h1 {
        font-size: 1.8em;
    }

    .hero {
        padding: 50px 20px;
    }

    .features-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .species-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .blog-content-wrapper {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: static;
    }

    .blog-article {
        padding: 20px;
    }

    .blog-article h1 {
        font-size: 1.5em;
    }

    .final-cta h2 {
        font-size: 1.5em;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .article-meta {
        flex-wrap: wrap;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .species-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-inner {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media print {
    .ad-container, .blog-header, .blog-footer, .cta-box, .blog-sidebar {
        display: none !important;
    }
}
