/* ===================================
   ESTILOS GLOBAIS - NÓS DE GRAVATA
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a1a2e;
    --secondary: #c41e3a;
    --accent: #d4a574;
    --light: #f5f3f0;
    --gray: #6b6b6b;
    --gray-light: #9a9a9a;
    --border: #e0e0e0;
    --white: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Georgia', serif;
    color: var(--primary);
    background: var(--light);
    line-height: 1.7;
}

/* ===================================
   HEADER & NAVIGATION
   =================================== */

header {
    background: var(--primary);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    font-size: 2rem;
}

nav {
    display: flex;
    gap: 2rem;
    list-style: none;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid transparent;
}

nav a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* ===================================
   CONTAINER
   =================================== */

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

/* ===================================
   BREADCRUMB
   =================================== */

.breadcrumb {
    padding: 1.5rem 0;
    font-size: 0.9rem;
    color: var(--gray);
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
}

.breadcrumb a {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.breadcrumb span {
    color: var(--primary);
    font-weight: 600;
}

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

.article-page {
    background: white;
    margin-bottom: 3rem;
}

.article-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 3rem 0;
}

.article-header .container {
    padding: 0 2rem;
}

.article-category {
    display: inline-block;
    background: var(--secondary);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.article-header h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: bold;
    letter-spacing: -0.5px;
}

.article-meta-header {
    display: flex;
    gap: 2rem;
    font-size: 0.95rem;
    color: #ccc;
    flex-wrap: wrap;
}

/* ===================================
   ARTICLE CONTENT
   =================================== */

.article-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    padding: 3rem 2rem;
}

.article-body {
    background: white;
}

.article-body section {
    margin-bottom: 2.5rem;
}

.article-body section h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.5rem;
}

.article-body section h3 {
    font-size: 1.3rem;
    margin: 1.5rem 0 0.8rem 0;
    color: var(--secondary);
}

.article-body p {
    margin-bottom: 1rem;
    text-align: justify;
    color: var(--gray);
    font-size: 1rem;
}

.article-body ul,
.article-body ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.article-body li {
    margin-bottom: 0.8rem;
    color: var(--gray);
}

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

/* Step Styling */
.step {
    background: linear-gradient(to right, rgba(196, 30, 58, 0.05), transparent);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--secondary);
    border-radius: 4px;
}

.step h3 {
    color: var(--secondary);
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 0.8rem;
}

.step p {
    margin-bottom: 0;
    color: var(--gray);
}

/* ===================================
   SIDEBAR
   =================================== */

.article-sidebar {
    padding: 2rem 0;
}

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

.sidebar-widget h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--primary);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.5rem;
}

.sidebar-widget ul {
    list-style: none;
}

.sidebar-widget ul li {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
}

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

.sidebar-widget a {
    color: var(--secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.sidebar-widget a:hover {
    color: var(--accent);
}

.cta-widget {
    background: linear-gradient(135deg, var(--primary), #16213e);
    color: white;
}

.cta-widget h3 {
    color: var(--accent);
    border-color: var(--accent);
}

.cta-widget p {
    color: #ccc;
    margin-bottom: 1rem;
}

.share-btn {
    width: 100%;
    padding: 0.8rem;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.share-btn:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

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

.related-articles {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--accent);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.related-card {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: white;
    padding: 2rem;
    border-radius: 8px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.related-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.related-card h4 {
    font-size: 1.1rem;
    margin: 0;
}

/* ===================================
   AUTHOR BIO
   =================================== */

.author-bio {
    background: rgba(196, 30, 58, 0.05);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--secondary);
}

.author-bio h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
}

.author-bio p {
    color: var(--gray);
    margin: 0;
}

/* ===================================
   COMMENTS SECTION
   =================================== */

.comments-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 3rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.comments-section h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--primary);
}

.comment {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: var(--light);
    border-radius: 4px;
    border-left: 4px solid var(--accent);
}

.comment strong {
    color: var(--secondary);
}

.comment p {
    margin: 0.5rem 0 0 0;
    color: var(--gray);
}

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

footer {
    background: var(--primary);
    color: white;
    padding: 3rem 2rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--accent);
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: var(--accent);
}

.footer-section p {
    color: #ccc;
    font-size: 0.95rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #ccc;
    font-size: 0.9rem;
}

/* ===================================
   SCROLL TO TOP
   =================================== */

.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--secondary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
    font-size: 1.5rem;
}

.scroll-to-top:hover {
    background: var(--accent);
    transform: scale(1.1);
}

.scroll-to-top.show {
    display: flex;
}

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

@media (max-width: 1024px) {
    .article-content {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        padding: 0;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    nav {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .article-header h1 {
        font-size: 2rem;
    }

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

    .article-meta-header {
        flex-direction: column;
        gap: 0.8rem;
    }

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

    .scroll-to-top {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        bottom: 1rem;
        right: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    nav {
        gap: 0.5rem;
    }

    nav a {
        font-size: 0.85rem;
    }

    .article-header {
        padding: 2rem 0;
    }

    .article-header h1 {
        font-size: 1.5rem;
    }

    .article-content {
        padding: 1.5rem 1rem;
    }

    .step {
        padding: 1rem;
    }

    .step h3 {
        font-size: 1.1rem;
    }
}

/* ===================================
   ANIMAÇÕES
   =================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-body section {
    animation: fadeIn 0.6s ease-out;
}

.sidebar-widget {
    animation: fadeIn 0.6s ease-out;
    animation-fill-mode: both;
}

.sidebar-widget:nth-child(1) { animation-delay: 0.1s; }
.sidebar-widget:nth-child(2) { animation-delay: 0.2s; }
.sidebar-widget:nth-child(3) { animation-delay: 0.3s; }

/* ===================================
   UTILITÁRIOS
   =================================== */

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

.mt-2 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.highlight {
    background: linear-gradient(120deg, rgba(196, 30, 58, 0.1), rgba(212, 165, 116, 0.1));
    padding: 0.2rem 0.4rem;
    border-radius: 2px;
}
