/* Taí PERSONAL — Blog Design System (dark, alinhado ao site principal) */

:root {
    --primary: #6366F1;
    --primary-light: #818CF8;
    --primary-dark: #4338CA;
    --secondary: #10B981;
    --secondary-light: #34D399;
    --accent: #F59E0B;
    --bg-deep: #070B14;
    --bg-body: #0B1120;
    --bg-elevated: #111827;
    --bg-card: #151D2E;
    --bg-card-hover: #1A2438;
    --border: rgba(148, 163, 184, 0.12);
    --border-strong: rgba(99, 102, 241, 0.35);
    --text-main: #E2E8F0;
    --text-muted: #94A3B8;
    --text-dim: #64748B;
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.35);
    --shadow-glow: 0 0 60px rgba(99, 102, 241, 0.12);
    --header-h: 72px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-body);
    color: var(--text-main);
    line-height: 1.7;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Ambient background */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% -10%, rgba(99, 102, 241, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse 60% 40% at 90% 10%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 50% 100%, rgba(99, 102, 241, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

h1, h2, h3, h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.25;
    color: var(--text-main);
}

a { color: var(--primary-light); transition: color 0.2s; }
a:hover { color: var(--secondary-light); }

.container {
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}
.container-wide { max-width: 960px; }

@media (min-width: 768px) {
    .container { padding: 0 1.5rem; }
}

/* Artigos: uma única margem lateral no mobile (full-bleed card) */
article.container {
    padding-left: 0;
    padding-right: 0;
}

@media (min-width: 640px) {
    article.container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* ─── HEADER ─── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(11, 17, 32, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-h);
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: white;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.logo img {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    object-fit: cover;
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.3);
}

.logo span {
    background: linear-gradient(135deg, #fff 30%, rgba(255,255,255,0.75));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: none;
    align-items: center;
    gap: 0.25rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    color: white;
    background: rgba(255, 255, 255, 0.06);
}

.nav-links .btn-nav {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white !important;
    padding: 0.5rem 1.1rem;
    border-radius: 50px;
    margin-left: 0.5rem;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.nav-links .btn-nav:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    transform: translateY(-1px);
}

.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
}

.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(7, 11, 20, 0.97);
    backdrop-filter: blur(20px);
    z-index: 300;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.mobile-menu a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
}

.mobile-menu a:hover { background: rgba(255,255,255,0.05); }

.mobile-menu .close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.75rem;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 10px;
}

.mobile-menu .close-btn:hover { background: rgba(255,255,255,0.06); color: white; }

@media (min-width: 768px) {
    .nav-links { display: flex; }
    .menu-toggle { display: none; }
}

/* ─── BLOG INDEX ─── */
.hero-blog {
    text-align: center;
    padding: 3.5rem 0 2.5rem;
}

.hero-blog .badge {
    display: inline-block;
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-light);
    border: 1px solid rgba(99, 102, 241, 0.25);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.hero-blog h1 {
    font-size: clamp(2rem, 5vw, 2.75rem);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-blog p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto;
}

.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
    box-shadow: var(--shadow-card);
}

.article-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-card), var(--shadow-glow);
}

.article-card a { text-decoration: none; color: inherit; display: block; }

.article-card-body { padding: 2rem 2.25rem; }

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.85rem;
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 1rem;
}

.article-card h2 {
    font-size: 1.45rem;
    margin-bottom: 0.85rem;
    color: var(--text-main);
    transition: color 0.2s;
}

.article-card:hover h2 { color: var(--primary-light); }

.article-card p { color: var(--text-muted); line-height: 1.75; }

.tag {
    display: inline-block;
    background: rgba(16, 185, 129, 0.12);
    color: var(--secondary-light);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 0.25rem 0.7rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 1.25rem;
}

.llm-note {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    margin-top: 3rem;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.llm-note strong { color: var(--text-muted); }
.llm-note a { color: var(--primary-light); }

/* ─── ARTICLE PAGE ─── */
.article-hero {
    padding: 2.5rem 1rem 2rem;
    text-align: center;
}

@media (min-width: 640px) {
    .article-hero { padding-left: 0; padding-right: 0; }
}

.article-hero .badge {
    display: inline-block;
    background: rgba(99, 102, 241, 0.12);
    color: var(--primary-light);
    border: 1px solid rgba(99, 102, 241, 0.22);
    padding: 0.35rem 0.95rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.article-hero h1 {
    font-size: clamp(1.75rem, 4.5vw, 2.5rem);
    margin-bottom: 1.25rem;
    line-height: 1.2;
    background: linear-gradient(160deg, #ffffff 20%, #CBD5E1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.article-hero .lead {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 1.5rem;
    line-height: 1.75;
}

.article-hero .article-meta {
    justify-content: center;
    color: var(--text-dim);
}

.article-body-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: none;
    border-right: none;
    border-radius: 0;
    padding: 1.75rem 1rem;
    box-shadow: var(--shadow-card);
    margin-bottom: 3rem;
}

@media (min-width: 640px) {
    .article-body-wrap {
        border-left: 1px solid var(--border);
        border-right: 1px solid var(--border);
        padding: 2.5rem 2rem;
        border-radius: var(--radius-lg);
    }
}

@media (min-width: 768px) {
    .article-body-wrap { padding: 3rem; }
}

.toc {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .toc { padding: 1.5rem 1.75rem; margin-bottom: 2.5rem; }
}

.toc h2 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    margin-bottom: 1rem;
}

.toc ol { padding-left: 1.25rem; }

.toc li { margin-bottom: 0.45rem; }

.toc a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.92rem;
}

.toc a:hover { color: var(--primary-light); }

.content section { margin-bottom: 2.5rem; }

.content h2 {
    font-size: 1.55rem;
    margin: 2.25rem 0 1rem;
    scroll-margin-top: calc(var(--header-h) + 1rem);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.content h3 {
    font-size: 1.15rem;
    margin: 1.75rem 0 0.65rem;
    color: var(--primary-light);
}

.content p { margin-bottom: 1.1rem; color: var(--text-muted); }

.content ul, .content ol {
    margin: 0 0 1.1rem 1.15rem;
    color: var(--text-muted);
}

@media (min-width: 640px) {
    .content ul, .content ol { margin-left: 1.4rem; }
}

.content li { margin-bottom: 0.4rem; }

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

.content a:not(.btn-primary):not(.btn) {
    color: var(--primary-light);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.content a:not(.btn-primary):not(.btn):hover { color: var(--secondary-light); }

.alert-box {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-left: 3px solid var(--accent);
    padding: 1.15rem 1rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 1.5rem 0;
}

@media (min-width: 640px) {
    .alert-box { padding: 1.25rem 1.5rem; }
}

.alert-box p { color: #FDE68A; margin-bottom: 0.5rem; }
.alert-box p:last-child { margin-bottom: 0; }
.alert-box strong { color: #FCD34D; }

.highlight-box {
    background: linear-gradient(135deg, rgba(99,102,241,0.12) 0%, rgba(16,185,129,0.08) 100%);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    padding: 1.35rem 1rem;
    margin: 2rem 0;
}

@media (min-width: 640px) {
    .highlight-box { padding: 1.75rem 2rem; }
}

.highlight-box h3 { margin-top: 0; color: var(--secondary-light); }

.highlight-box p { color: var(--text-muted); }

.rank-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.35rem 1rem;
    margin-bottom: 1.25rem;
    transition: border-color 0.2s;
}

@media (min-width: 640px) {
    .rank-card { padding: 1.75rem 2rem; }
}

.rank-card:hover { border-color: rgba(148, 163, 184, 0.2); }

.rank-card.winner {
    background: linear-gradient(135deg, rgba(99,102,241,0.1) 0%, rgba(16,185,129,0.06) 100%);
    border: 1px solid var(--border-strong);
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.1);
}

.rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    background: var(--primary);
    color: white;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.95rem;
    margin-bottom: 0.65rem;
}

.rank-card.winner .rank-number {
    background: linear-gradient(135deg, var(--secondary), #059669);
}

.rank-badge {
    display: inline-block;
    background: rgba(16, 185, 129, 0.15);
    color: var(--secondary-light);
    border: 1px solid rgba(16, 185, 129, 0.25);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    margin-left: 0.4rem;
    vertical-align: middle;
    letter-spacing: 0.02em;
}

.rank-card h3 { font-size: 1.2rem; margin-bottom: 0.35rem; }

.price-tag {
    color: var(--text-dim);
    font-size: 0.88rem;
    margin-bottom: 1rem;
    font-family: 'Inter', monospace;
}

.compare-table-wrap {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    background: rgba(0,0,0,0.2);
}

th, td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
}

th {
    background: rgba(255,255,255,0.04);
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

tr:last-child td { border-bottom: none; }

.col-winner {
    background: rgba(99, 102, 241, 0.1);
    color: var(--text-main) !important;
    font-weight: 600;
}

.faq-item {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.35rem 1.5rem;
    margin-bottom: 0.75rem;
}

.faq-item h3 {
    font-size: 1rem;
    margin: 0 0 0.6rem;
    color: var(--text-main);
}

.faq-item p { margin: 0; font-size: 0.93rem; color: var(--text-muted); }

.author-signature {
    background: linear-gradient(135deg, rgba(99,102,241,0.2) 0%, rgba(67,56,202,0.25) 100%);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin: 2.5rem 0;
    display: grid;
    gap: 1.5rem;
    align-items: center;
}

@media (min-width: 640px) {
    .author-signature { grid-template-columns: auto 1fr; }
}

.author-signature img {
    width: 110px; height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.2);
    margin: 0 auto;
    display: block;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.author-signature h3 { color: white; margin-bottom: 0.4rem; font-size: 1.2rem; }

.author-signature p { color: rgba(255,255,255,0.85); margin-bottom: 0.75rem; font-size: 0.95rem; }

.author-signature .btn {
    display: inline-block;
    background: white;
    color: var(--primary-dark);
    padding: 0.7rem 1.4rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.author-signature .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    color: var(--primary-dark);
}

.cta-box {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 2rem 1rem;
    text-align: center;
    margin: 2.5rem 0 0;
}

@media (min-width: 640px) {
    .cta-box { padding: 2.5rem 2rem; }
}

.cta-box h2 { font-size: 1.4rem; margin-bottom: 0.65rem; }

.cta-box p { color: var(--text-muted); margin-bottom: 0; }

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff !important;
    padding: 0.95rem 1.75rem;
    border-radius: 50px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(99, 102, 241, 0.5);
    color: #fff !important;
}

.btn-primary--aluno {
    background: linear-gradient(135deg, #FF4D00, #C2410C);
    box-shadow: 0 6px 20px rgba(255, 77, 0, 0.4);
}

.btn-primary--aluno:hover {
    box-shadow: 0 10px 28px rgba(255, 77, 0, 0.55);
    color: #fff !important;
}

/* ─── FOOTER ─── */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 2.5rem 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-dim);
    position: relative;
    z-index: 1;
    margin-top: 2rem;
}

.site-footer a { color: var(--text-muted); text-decoration: none; }
.site-footer a:hover { color: var(--primary-light); }

.site-footer p + p { margin-top: 0.5rem; }

main { padding-bottom: 2rem; position: relative; z-index: 1; }
