/* ===========================================
   DIGAO ORIGINAL - BLOG CSS
   Estilos compartilhados para todos os artigos
   =========================================== */

:root {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-card: #111111;
    --bg-author: #0d1117;
    --accent: #00FF88;
    --accent-dim: #00cc6a;
    --accent-glow: rgba(0, 255, 136, 0.15);
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #666666;
    --border: #222222;
    --border-light: #333333;
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.8;
    font-size: 17px;
}

/* ===== HEADER ===== */
.header {
    position: sticky;
    top: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    padding: 1rem 0;
}

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

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo span {
    color: var(--accent);
}

.logo .blog-tag {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--accent);
}

/* ===== MAIN CONTENT ===== */
.main {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    display: flex;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

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

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

/* ===== ARTICLE HEADER ===== */
.article-header {
    margin-bottom: 3rem;
}

.article-meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    align-items: center;
}

.article-tag {
    background: var(--bg-card);
    padding: 0.3rem 0.85rem;
    border-radius: 100px;
    border: 1px solid var(--border);
    font-size: 0.8rem;
}

.article-date {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.article-reading-time {
    color: var(--accent);
    font-size: 0.85rem;
}

h1 {
    font-family: var(--font-display);
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.article-intro {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.7;
    border-left: 3px solid var(--accent);
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

/* ===== ARTICLE CONTENT ===== */
.article-content h2 {
    font-family: var(--font-display);
    font-size: 1.85rem;
    font-weight: 600;
    margin: 3.5rem 0 1.5rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.article-content h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    margin: 2.5rem 0 1rem;
    color: var(--text-primary);
}

.article-content p {
    margin-bottom: 1.75rem;
    color: var(--text-secondary);
}

.article-content ul,
.article-content ol {
    margin: 1.75rem 0;
    padding-left: 1.75rem;
}

.article-content li {
    margin-bottom: 0.85rem;
    color: var(--text-secondary);
}

.article-content a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.article-content a:hover {
    border-bottom-color: var(--accent);
}

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

.article-content code {
    font-family: var(--font-mono);
    background: var(--bg-card);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.9em;
    border: 1px solid var(--border);
}

.article-content blockquote {
    border-left: 4px solid var(--accent);
    padding: 1.5rem 1.5rem 1.5rem 2rem;
    margin: 2.5rem 0;
    background: var(--accent-glow);
    border-radius: 0 8px 8px 0;
    color: var(--text-primary);
    font-style: italic;
}

.article-content blockquote p {
    margin-bottom: 0;
    color: var(--text-primary);
}

/* ===== TABLES ===== */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2.5rem 0;
    overflow: hidden;
    border-radius: 8px;
}

.article-content th,
.article-content td {
    padding: 1rem 1.25rem;
    text-align: left;
    border: 1px solid var(--border);
}

.article-content th {
    background: var(--bg-card);
    font-weight: 600;
    color: var(--text-primary);
}

.article-content td {
    color: var(--text-secondary);
}

.article-content tr:hover td {
    background: var(--bg-secondary);
}

/* ===== HIGHLIGHT BOX ===== */
.highlight-box {
    background: linear-gradient(135deg, var(--bg-card) 0%, #0a1510 100%);
    border: 1px solid var(--accent-dim);
    border-radius: 12px;
    padding: 2rem;
    margin: 2.5rem 0;
}

.highlight-box h4 {
    font-family: var(--font-display);
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.highlight-box p {
    margin-bottom: 0;
}

/* ===== AUTHOR SECTION ===== */
.author-section {
    background: var(--bg-author);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    margin: 4rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.author-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-dim));
}

.author-header {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    flex-shrink: 0;
}

.author-info {
    flex: 1;
}

.author-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 0.25rem;
}

.author-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.author-title {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.author-bio {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.author-social {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.author-social a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.author-social a:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.author-social svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* ===== AD BLOCKS ===== */
.ad-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem;
    margin: 2.5rem 0;
    text-align: center;
    min-height: 100px;
}

.ad-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

/* ===== FAQ SECTION ===== */
.faq-section {
    margin: 4rem 0;
}

.faq-section h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: border-color 0.2s;
}

.faq-item:hover {
    border-color: var(--border-light);
}

.faq-question {
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent);
    transition: transform 0.2s;
}

.faq-item.open .faq-question::after {
    content: '-';
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
    display: none;
    line-height: 1.7;
}

.faq-item.open .faq-answer {
    display: block;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, var(--bg-card) 0%, #0a1a10 100%);
    border: 1px solid var(--accent);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
}

.cta-section h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    position: relative;
}

.cta-section p {
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
    position: relative;
    font-size: 1.05rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--accent);
    color: #000000 !important;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 255, 136, 0.35);
    color: #000000 !important;
}

.cta-button svg {
    width: 22px;
    height: 22px;
}

/* ===== INLINE CTA ===== */
.cta-inline {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    padding: 1.5rem 1.75rem;
    margin: 2.5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cta-inline p {
    margin: 0;
    color: var(--text-secondary);
    flex: 1;
    font-size: 1rem;
}

.cta-inline .cta-button {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
}

/* ===== RELATED ARTICLES ===== */
.related-articles {
    margin: 4rem 0;
}

.related-articles h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.related-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem;
    text-decoration: none;
    transition: all 0.2s;
}

.related-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.related-card h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.related-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 3rem 0;
    margin-top: 4rem;
}

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

.footer-text {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .header-content {
        padding: 0 1rem;
    }

    .nav-links {
        display: none;
    }

    .main {
        padding: 2rem 1rem;
    }

    h1 {
        font-size: 2rem;
    }

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

    .author-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .author-social {
        justify-content: center;
    }

    .cta-section {
        padding: 2rem 1.5rem;
    }

    .cta-inline {
        flex-direction: column;
        text-align: center;
    }

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

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* ===== SCHEMA.ORG SR-ONLY ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
