/* ====================================
   BLOG CONEXÃO A DOIS - STYLES
   ==================================== */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #DDB897;
    --primary-dark: #C9A57B;
    --text: #7B4D34;
    --text-light: #9D7A5E;
    --bg-light: #FFF8F3;
    --white: #FFFFFF;
    --shadow: rgba(123, 77, 52, 0.1);
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ====================================
   HEADER
   ==================================== */

.blog-header {
    background: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 60px;
    width: auto;
}

.logo-link {
    display: block;
}

.main-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-dark);
}

.nav-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow);
}

/* ====================================
   BLOG HERO
   ==================================== */

.blog-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.blog-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.95;
}

/* ====================================
   ARTICLES GRID
   ==================================== */

.articles-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.article-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(123, 77, 52, 0.15);
}

.article-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 30px;
}

.article-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.85rem;
}

.article-category {
    background: var(--primary);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 15px;
    font-weight: 600;
}

.article-date,
.article-reading-time {
    color: var(--text-light);
}

.article-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.article-title a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s;
}

.article-title a:hover {
    color: var(--primary-dark);
}

.article-excerpt {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    background: var(--bg-light);
    color: var(--text);
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.read-more {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: gap 0.3s;
}

.read-more:hover {
    gap: 5px;
}

/* ====================================
   ARTICLE PAGE
   ==================================== */

.article-page {
    padding: 40px 0 80px;
}

.article-page .container {
    max-width: 800px;
}

.breadcrumb {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--primary-dark);
}

.article-header {
    margin-bottom: 50px;
}

.article-page .article-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 25px;
    color: var(--text);
}

.article-page .article-meta {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* ====================================
   ARTICLE BODY
   ==================================== */

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-body h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin: 50px 0 25px;
    color: var(--text);
}

.article-body h3 {
    font-size: 1.5rem;
    margin: 40px 0 20px;
    color: var(--text);
}

.article-body h4 {
    font-size: 1.2rem;
    margin: 30px 0 15px;
    color: var(--text);
}

.article-body p {
    margin-bottom: 20px;
}

.article-body ul,
.article-body ol {
    margin: 20px 0 20px 30px;
}

.article-body li {
    margin-bottom: 10px;
}

.article-body strong {
    color: var(--text);
    font-weight: 600;
}

.article-body em {
    font-style: italic;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 25px;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 4px 15px var(--shadow);
}

.highlight-box p {
    margin: 0;
}

/* Tip Box */
.tip-box {
    background: var(--bg-light);
    border-left: 4px solid var(--primary);
    padding: 25px;
    margin: 30px 0;
    border-radius: 8px;
}

.tip-box h4 {
    margin-top: 0;
    margin-bottom: 15px;
}

.tip-box ul {
    margin-left: 20px;
}

/* Quote Box */
.quote-box {
    background: var(--white);
    border-left: 4px solid var(--primary-dark);
    padding: 30px;
    margin: 40px 0;
    box-shadow: 0 3px 15px var(--shadow);
    border-radius: 8px;
}

.quote-box blockquote {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-style: italic;
    margin-bottom: 15px;
    color: var(--text);
}

.quote-box cite {
    color: var(--text-light);
    font-size: 0.95rem;
    font-style: normal;
}

/* ====================================
   ARTICLE CTA
   ==================================== */

.article-cta {
    margin: 60px 0;
}

.cta-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 50px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 25px var(--shadow);
}

.cta-box h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 20px;
}

.cta-box p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    background: var(--white);
    color: var(--primary-dark);
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* ====================================
   RELATED ARTICLES
   ==================================== */

.related-articles {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid var(--bg-light);
}

.related-articles h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--text);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.related-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text);
    transition: background 0.3s, transform 0.3s;
}

.related-card:hover {
    background: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px var(--shadow);
}

.related-card h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.read-more-link {
    color: var(--primary-dark);
    font-weight: 600;
}

/* ====================================
   BLOG CTA SECTION
   ==================================== */

.blog-cta {
    background: var(--bg-light);
    padding: 80px 0;
}

.blog-cta .cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.blog-cta h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text);
}

.blog-cta p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

/* ====================================
   FOOTER
   ==================================== */

.blog-footer {
    background: var(--text);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    height: 80px;
    margin-bottom: 20px;
}

.footer-content > p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.social-links {
    margin: 20px 0;
}

.social-links a {
    color: var(--primary);
    font-size: 1.2rem;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--white);
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-nav a:hover {
    opacity: 1;
}

.copyright {
    margin-top: 30px;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* ====================================
   RESPONSIVE
   ==================================== */

@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

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

    .article-page .article-title {
        font-size: 2rem;
    }

    .article-body {
        font-size: 1rem;
    }

    .article-body h2 {
        font-size: 1.6rem;
    }

    .article-body h3 {
        font-size: 1.3rem;
    }

    .cta-box {
        padding: 30px 20px;
    }

    .cta-box h3 {
        font-size: 1.5rem;
    }

    .main-nav {
        gap: 15px;
        font-size: 0.9rem;
    }

    .nav-cta {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

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

@media (max-width: 480px) {
    .main-nav {
        flex-direction: column;
        gap: 10px;
    }

    .logo {
        height: 50px;
    }

    .article-page .article-meta {
        flex-direction: column;
        gap: 10px;
    }
}
