/* =========================================================
   assets/css/style.css
   Organizado em Seções Lógicas para Fácil Fragmentação
   ========================================================= */

/* ===========================
   1. RESET & VARIÁVEIS GLOBAIS
   =========================== */

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

:root {
    /* Colors - Minimal & Clean */
    --primary-color: #000000;
    --secondary-color: #3B82F6;
    --accent-color: #10B981;
    --text-primary: #242121;
    --text-secondary: #64686e;
    --text-light: #9CA3AF;
    --bg-primary: #fcfcfc;
    --bg-secondary: #FAFAFA;
    --bg-hover: #F5F5F5;
    --border-color: #E5E7EB;
    --border-light: #F3F4F6;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 4rem;
    
    /* Typography */
    --font-display: 'Syne', sans-serif;
    --font-primary: 'Inter', sans-serif;
    --font-mono: 'Fira Code', monospace;
    --font-size-base: 16px;
    --line-height-base: 1.6;
    --line-height-tight: 1.2;
    
    /* Transitions e shadows */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    --max-width: 1100px;
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: var(--line-height-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--secondary-color);
}

/* ===========================
   2. LAYOUT BASE
   =========================== */

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.main-content {
    min-height: 70vh;
}

section {
    padding: var(--spacing-xl) 0;
}

/* ===========================
   3. BUTTONS
   =========================== */

.btn {
    display: inline-block;
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.95rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 1px solid;
}

.btn-primary {
    padding: 0.7rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn-primary:hover {
    background: #333;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--text-primary);
}

/* ===========================
   4. HEADER & NAVIGATION
   =========================== */

.site-header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: var(--spacing-md) 0;
}

.navbar {
    padding: 0;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 75px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
    align-items: center;
    margin: 0;
}

.nav-item a {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-secondary);
    padding: var(--spacing-xs) 0;
    border-bottom: 2px solid transparent;
    transition: all var(--transition-fast);
}

.nav-item:hover a,
.nav-item.active a {
    color: var(--text-primary);
    border-bottom-color: var(--primary-color);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-fast);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: var(--bg-primary);
        border-bottom: 1px solid var(--border-color);
        padding: var(--spacing-md);
        gap: var(--spacing-sm);
        display: none;
        opacity: 0;
        transform: translateY(-10px);
        transition: all var(--transition-fast);
    }

    .nav-menu.active {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }

    .nav-item {
        width: 100%;
        text-align: center;
    }

    .nav-item a {
        display: block;
        padding: var(--spacing-sm) 0;
        font-size: 1.1rem;
    }

    .logo img {
        height: 60px;
    }
}

/* ===========================
   5. HERO SECTIONS
   =========================== */

/* Hero Padrão - Compacto e Centralizado */
.hero {
    max-width: 900px;
    margin: 0 auto;
    padding: 0.5rem 1rem 0.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.hero .hero-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0;
    margin: 0;
}

.hero .hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.hero .hero-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.hero .hero-subtitle .highlight {
    color: var(--text-primary);
    text-decoration: underline;
    text-decoration-color: var(--border-color);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.hero .hero-subtitle .highlight:hover {
    text-decoration-color: var(--secondary-color);
}

.hero .hero-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    max-width: 680px;
}

/* Hero Home - Duas Colunas */
.hero-home {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-md) var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background-color: var(--bg-primary);
}

.hero-home .hero-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    text-align: left;
}

.hero-home-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    font-family: var(--font-primary);
    color: var(--text-primary);
    text-align: left;
}

.hero-home-title {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: var(--line-height-tight);
    color: var(--text-primary);
    margin: 0;
}

.hero-home-subtitle {
    font-family: var(--font-primary);
    font-size: 1.35rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0;
}

.hero-home-description {
    font-family: var(--font-primary);
    font-size: 1.05rem;
    font-weight: 400;
    line-height: var(--line-height-base);
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.hero-home-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.hero-home-image img {
    max-width: 65%;
    height: auto;
    display: block;
}

@media screen and (max-width: 1024px) {
    .hero-home {
        flex-direction: column;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: var(--spacing-xl) var(--spacing-md);
    }

    .hero-home-text {
        width: 100% !important;
        max-width: 700px;
        margin: 0 auto;
    }

    .hero-home-image {
        display: none !important;
    }
}

/* ===========================
   6. TITLES & TYPOGRAPHY
   =========================== */

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    letter-spacing: -0.02em;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.view-all {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.view-all:hover {
    color: var(--text-primary);
}

.section-subtitle {
    color: #555;
    font-size: 1.1rem;
    margin-top: 1rem;
}

.section-divider {
    border: 0;
    border-top: 2px solid var(--secondary-color);
    margin: 1rem 0;
    width: 60px;
}

/* ===========================
   7. CATEGORIES
   =========================== */

.categories-section {
    background: var(--bg-secondary);
    padding: var(--spacing-xl) 0;
}

.categories-section .section-title {
    text-align: center;
}

.categories-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.category-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm) var(--spacing-md);
    text-align: center;
    transition: all var(--transition-fast);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.category-card:hover {
    border-color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.category-icon,
.category-icone {
    font-size: 1.25rem;
}

.category-card h3 {
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
}

/* ===========================
   8. SERVICES
   =========================== */

.services-section {
    padding: var(--spacing-xl) 0;
}

.services-section .section-title {
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.service-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    transition: all var(--transition-normal);
    max-width: 340px;
    width: 100%;
    text-align: center;
}

.service-card:hover {
    border-color: var(--text-primary);
    box-shadow: var(--shadow-md);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    letter-spacing: -0.01em;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

@media screen and (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
        justify-items: center;
        justify-content: center;
    }

    .service-card {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media screen and (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }
}

/* ===========================
   9. ARTICLES
   =========================== */

.articles-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-secondary);
}

.articles-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.articles-section .section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.articles-section .view-all {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--secondary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.articles-section .view-all:hover {
    color: var(--primary-color);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.article-card {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.article-thumb {
    display: flex;
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: 50% 50%;
}

.article-content {
    padding: var(--spacing-md);
}

.article-category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: var(--spacing-xs);
    text-transform: uppercase;
}

.article-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 var(--spacing-xs) 0;
    line-height: 1.4;
    color: var(--text-primary);
}

.article-title a {
    color: inherit;
    text-decoration: none;
}

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

.article-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
    line-height: var(--line-height-base);
}

.article-meta {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-light);
}

.article-meta span {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.article-date,
.article-views {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

@media screen and (max-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
        justify-items: center;
        justify-content: center;
    }

    .article-card {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media screen and (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .section-title {
        text-align: center;
        font-size: 1.8rem;
    }
}

/* Adicionar após a seção 9 de ARTICLES, antes da seção 10 */

.article-category a {
    color: var(--secondary-color);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: 600;
}

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

.article-single-category {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    text-decoration: none;
}

.article-single-category:hover {
    color: var(--secondary-color);
}

/* Garantir que article-views apareça corretamente */
.article-views {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

/* ===========================
   ARTICLE VIEWS STYLE
   =========================== */

/* Garantir que article-views seja sempre visível */
.article-views {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.4rem !important;
    font-size: 0.875rem !important;
    color: var(--text-light) !important;
    white-space: nowrap !important;
    flex-wrap: nowrap !important;
}

/* Para a página de artigos */
.article-card .article-meta .article-views {
    visibility: visible !important;
    opacity: 1 !important;
    max-width: 100% !important;
    overflow: visible !important;
}

/* Para a página individual de artigos */
.article-single-page .article-meta {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.article-single-page .article-meta > span {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.article-single-page .article-meta .article-views {
    visibility: visible !important;
    opacity: 1 !important;
}

/* Para a página de podcasts */
.podcast-section .article-card .article-meta .article-views {
    visibility: visible !important;
    opacity: 1 !important;
}

/* ===========================
   10. ARTICLE SINGLE PAGE
   =========================== */

.article-single-page {
    padding: var(--spacing-xl) 0;
}

.article-single-container {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.article-single-header {
    margin-bottom: var(--spacing-2xl);
}

.article-single-category {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.article-single-title {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.article-single-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.article-single-image {
    margin: 2rem 0;
}

.article-single-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

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

/* Conteúdo do Artigo */
.article-single-content {
    font-family: 'Helvetica', 'Arial', sans-serif;
    line-height: 1.7;
    font-size: 16px;
    color: #222;
    word-wrap: break-word;
}

.article-single-content h1,
.article-single-content h2,
.article-single-content h3,
.article-single-content h4,
.article-single-content h5,
.article-single-content h6 {
    font-weight: 700;
    margin: 1.5em 0 0.5em 0;
    line-height: 1.3;
}

.article-single-content h1 { font-size: 2.2em; }
.article-single-content h2 { font-size: 1.8em; }
.article-single-content h3 { font-size: 1.5em; }
.article-single-content h4 { font-size: 1.3em; }
.article-single-content h5 { font-size: 1.1em; }
.article-single-content h6 { font-size: 1em; }

.article-single-content p {
    margin: 1em 0;
}

.article-single-content ul,
.article-single-content ol {
    margin: 1em 0 1em 2em;
    padding: 0;
}

.article-single-content li {
    margin: 0.5em 0;
}

.article-single-content a {
    color: #007bff;
    text-decoration: none;
}

.article-single-content a:hover {
    text-decoration: underline;
}

.article-single-content blockquote {
    border-left: 4px solid #ccc;
    padding-left: 1em;
    margin: 1em 0;
    color: #555;
    font-style: italic;
    background: #f9f9f9;
}

.article-single-content code {
    font-family: var(--font-mono);
    background: #f5f5f5;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-size: 0.95em;
}

.article-single-content pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 1em;
    border-radius: 5px;
    overflow-x: auto;
    margin: 1em 0;
}

.article-single-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    font-size: 0.95em;
}

.article-single-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 1em 0;
    overflow-x: auto;
    display: block;
}

.article-single-content th,
.article-single-content td {
    border: 1px solid #ccc;
    padding: 0.6em 1em;
    text-align: left;
}

.article-single-content th {
    background: #f4f4f4;
    font-weight: 600;
}

.article-single-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1em auto;
    border-radius: 4px;
}

.article-single-content em,
.article-single-content i {
    font-style: italic;
}

.article-single-content strong,
.article-single-content b {
    font-weight: bold;
}

.article-single-content hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 2em 0;
}

.article-single-content del {
    text-decoration: line-through;
}

.article-single-content .MathJax {
    display: inline-block;
    margin: 0.5em 0;
}

@media screen and (max-width: 768px) {
    .article-single-content table {
        display: block;
        overflow-x: auto;
    }
}

/* Article Share */
.article-single-share {
    margin-top: var(--spacing-2xl);
    text-align: center;
}

.article-single-share h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.share-buttons a,
.share-buttons button.copy-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 140px;
    height: 42px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.share-buttons svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.share-buttons a:hover,
.share-buttons button.copy-link:hover {
    background-color: var(--bg-hover);
    transform: translateY(-1px);
}

.share-buttons a.fb svg { fill: #1877f2; }
.share-buttons a.tw svg { fill: #1da1f2; }
.share-buttons a.li svg { fill: #0077b5; }
.share-buttons button.copy-link svg { fill: #222; }

/* ===========================
   11. ABOUT PAGE
   =========================== */

.about-section,
.resume-section {
    padding: 80px 0;
    background-color: var(--bg-primary);
    font-family: var(--font-primary);
    color: var(--text-primary);
}

.about-section .container,
.resume-section .container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.about-content {
    line-height: var(--line-height-base);
    font-size: var(--font-size-base);
    margin: 0 auto;
}

.about-content h2 {
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-sm);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    border-left: 4px solid var(--primary-color);
    padding-left: 12px;
}

.about-content p {
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
}

.about-list {
    margin: 16px 0 24px 0;
    padding: 0;
    list-style: none;
}

.about-list li {
    margin-bottom: 10px;
    padding-left: 1.2em;
    position: relative;
}

.about-list li::before {
    content: "⚙️";
    position: absolute;
    left: 0;
}

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

.about-content a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.about-content a:hover {
    opacity: 0.75;
}

.resume-section {
    text-align: center;
    background-color: var(--bg-secondary);
}

.resume-section h2 {
    font-size: 1.8rem;
    margin-bottom: var(--spacing-sm);
}

.resume-section p {
    margin-bottom: var(--spacing-md);
    font-size: 1rem;
    color: var(--text-secondary);
}

.resume-section .btn {
    padding: 0.75rem 1.8rem;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    text-align: center;
}

/* ===========================
   12. CONTACT PAGE
   =========================== */

.contact-section {
    padding: 40px 0;
    background-color: #f9f9f9;
}

.contact-section .contact-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.contact-section .contact-form label {
    display: flex;
    flex-direction: column;
    font-weight: 500;
    font-size: 0.93rem;
    color: #333;
}

.contact-section .contact-form input,
.contact-section .contact-form textarea {
    padding: 6px 10px;
    font-size: 0.93rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    transition: border-color 0.2s;
}

.contact-section .contact-form input:focus,
.contact-section .contact-form textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
}

.contact-section .contact-form textarea {
    resize: vertical;
    min-height: 70px;
}

.contact-section .btn-primary {
    padding: 0.7rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.contact-section .btn-primary:hover {
    background: #333;
}

.contact-success,
.contact-error {
    margin-bottom: 10px;
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 0.93rem;
}

.contact-success {
    background-color: #D1FAE5;
    color: #065F46;
}

.contact-error {
    background-color: #FEE2E2;
    color: #B91C1C;
}

.contact-info {
    margin-top: 18px;
    text-align: center;
    font-size: 0.93rem;
}

.contact-info a {
    color: #4B5563;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* ===========================
   13. PODCAST PAGE
   =========================== */

.podcast-section {
    padding: var(--spacing-xl) 0;
}

.podcast-single {
    padding: var(--spacing-xl) 0;
}

.podcast-single-container {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.podcast-title {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
}

.podcast-video {
    margin-bottom: var(--spacing-lg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.podcast-video iframe {
    width: 100%;
    height: 480px;
}

.podcast-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

.podcast-descricao {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

.podcast-apresentacao {
    background: var(--bg-secondary);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
    line-height: 1.7;
    color: var(--text-primary);
}

.podcast-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.podcast-links a {
    display: inline-block;
    padding: 0.65rem 1.2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.podcast-links a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.article-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: var(--spacing-md);
}

.article-links a {
    display: inline-block;
    padding: 0.65rem 1.2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.article-links a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ===========================
   14. DOWNLOADS PAGE
   =========================== */

.downloads-section {
    padding: var(--spacing-xl) 0;
}

.downloads-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    max-width: 700px;
    margin: 0 auto;
}

.download-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
}

.download-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.download-meta {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.download-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.download-actions .btn-primary {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
}

.like-btn,
.dislike-btn {
    border: none;
    background: #f3f4f6;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.like-btn:hover,
.dislike-btn:hover {
    background: #e5e7eb;
}

/* ===========================
   15. PAGINATION
   =========================== */

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.pagination a {
    display: inline-block;
    padding: 8px 14px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.pagination a:hover {
    background-color: var(--bg-hover);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.pagination a.active {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
    pointer-events: none;
}

/* ===========================
   16. FOOTER
   =========================== */

.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
    margin-top: var(--spacing-2xl);
}

.newsletter-section {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
    border-bottom: 1px solid var(--border-color);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    letter-spacing: -0.01em;
}

.newsletter-section p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    font-size: 0.95rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    max-width: 450px;
    margin: 0 auto;
}

.newsletter-input {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color var(--transition-fast);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--text-primary);
}

.newsletter-input::placeholder {
    color: var(--text-light);
}

.newsletter-btn {
    width: 100%;
    padding: 0.7rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-top: var(--spacing-xs);
}

.newsletter-btn:hover {
    background: #333;
}

.newsletter-message {
    margin-top: var(--spacing-sm);
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.newsletter-message.success {
    background: #D1FAE5;
    color: #065F46;
}

.newsletter-message.error {
    background: #FEE2E2;
    color: #991B1B;
}

.footer-content {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    display: grid;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-column h4 {
    margin-bottom: var(--spacing-sm);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-xs);
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

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

.social-links {
    display: flex;
    gap: var(--spacing-sm);
}

.social-links a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    color: var(--text-secondary);
}

.social-links a:hover {
    background: var(--text-primary);
    border-color: var(--text-primary);
    color: white;
}

.footer-bottom {
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-light);
    font-size: 0.875rem;
}

.footer-legal {
    display: flex;
    gap: var(--spacing-md);
    list-style: none;
}

.footer-legal a {
    color: var(--text-light);
}

.footer-legal a:hover {
    color: var(--text-primary);
}

/* ===========================
   17. UTILITY & MISC
   =========================== */

.no-content {
    text-align: center;
    padding: var(--spacing-2xl) var(--spacing-lg);
    color: var(--text-secondary);
}

.no-content h2 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.cta-section {
    background: var(--bg-secondary);
    text-align: center;
    padding: var(--spacing-2xl) 0;
}

.cta-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

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

.page-header {
    background: var(--bg-primary);
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    letter-spacing: -0.02em;
}

.page-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

::selection {
    background: var(--primary-color);
    color: white;
}

/* ===========================
   18. ANIMATIONS & EFFECTS
   =========================== */

.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    z-index: 999;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--secondary-color);
    width: 0%;
    z-index: 1001;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

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

.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* ===========================
   19. DARK MODE
   =========================== */

body.dark-mode {
    --bg-primary: #121212;
    --bg-secondary: #1e1e1e;
    --text-primary: #ffffff;
    --border-color: #333;
}

/* ===============================
   Seções Legais: Privacidade e Termos
   =============================== */
.legal-section {
    padding: 60px 20px;
    background-color: #f9f9f9;
}

.legal-section .container {
    max-width: 800px;
    margin: 0 auto;
}

.legal-section h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    color: #222;
}

.legal-section p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
    color: #555;
}

.legal-section h2:first-child {
    margin-top: 0;
}


/* ===================================
   EMBEDS - Spotify, YouTube, etc.
   =================================== */

/* Container base para todos os embeds */
.embed-container {
    margin: 2rem auto;
    max-width: 100%;
    clear: both;
}

/* Embeds de vídeo responsivos (YouTube, Vimeo) */
.video-embed {
    position: relative;
    padding-bottom: 56.25%; /* Aspect ratio 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

/* Spotify embed */
.spotify-embed {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    background: #000;
}

.spotify-embed iframe {
    border-radius: 12px;
    display: block;
}

/* Twitter embed */
.twitter-embed {
    display: flex;
    justify-content: center;
    margin: 2rem auto;
}

.twitter-embed .twitter-tweet {
    margin: 0 auto !important;
}

/* Instagram embed */
.instagram-embed {
    display: flex;
    justify-content: center;
    margin: 2rem auto;
    min-height: 400px;
}

.instagram-embed .instagram-media {
    margin: 0 auto !important;
}

/* TikTok embed */
.tiktok-embed {
    display: flex;
    justify-content: center;
    margin: 2rem auto;
}

.tiktok-embed blockquote {
    margin: 0 auto !important;
}

/* CodePen embed */
.codepen-embed {
    margin: 2rem auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Gist embed */
.gist-embed {
    margin: 2rem auto;
    border-radius: 8px;
    overflow: hidden;
}

.gist-embed .gist {
    max-width: 100%;
}

.gist-embed .gist .gist-file {
    border-radius: 8px;
}

/* SoundCloud embed */
.soundcloud-embed {
    margin: 2rem auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Responsividade mobile */
@media (max-width: 768px) {
    .embed-container {
        margin: 1.5rem 0;
    }
    
    .video-embed {
        border-radius: 8px;
    }
    
    .spotify-embed {
        border-radius: 8px;
    }
    
    .codepen-embed iframe {
        height: 300px !important;
    }
}

/* Loading placeholder para embeds que demoram */
.embed-container.loading {
    min-height: 200px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: embedLoading 1.5s infinite;
    border-radius: 12px;
}

@keyframes embedLoading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Dark mode para embeds (opcional) */
@media (prefers-color-scheme: dark) {
    .embed-container.loading {
        background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
        background-size: 200% 100%;
    }
}