/* ============================================
   BLOG POST CONTENT STYLES
   Estilos customizados para posts do blog
   ============================================ */

/* External Links - Ícone Suave */
.blog-content a[href^="http"]::after,
.blog-content a[href^="https://"]::after {
    content: "↗";
    display: inline-block;
    margin-left: 0.4rem;
    /* Mais espaço para a seta */
    font-size: 0.85em;
    opacity: 0.8;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Springy */
    color: #4ade80;
    /* Green */
    vertical-align: middle;
}

.blog-content a[href^="http"]:hover::after,
.blog-content a[href^="https://"]:hover::after {
    opacity: 1;
    color: #fff;
    transform: translate(3px, -3px);
}

/* Links - Estilo "Neon Laser" (Clean & Bright) */
.blog-content a {
    color: #4ade80 !important;
    /* Green */
    font-weight: 600;
    text-decoration: none;
    position: relative;
    padding: 0 0.3rem;
    /* Padding interno aumentado */
    margin: 0 0.3rem;
    /* Margem externa aumentada */
    border-bottom: 2px solid rgba(74, 222, 128, 0.3);
    /* Linha base discreta */
    transition: all 0.2s ease;
    border-radius: 4px;
    /* Slight roundness */
}

/* Removemos pseudo-elementos antigos */
.blog-content a::before {
    display: none !important;
}

/* Efeito Hover: Intense Glow + Background Hint */
.blog-content a:hover {
    color: #fff !important;
    background: rgba(74, 222, 128, 0.15);
    /* Fundo sutil */
    border-bottom-color: #4ade80;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.8), 0 0 20px rgba(74, 222, 128, 0.4);
    /* Laser Glow */
    transform: translateY(-1px);
}

/* Listas não-ordenadas - Bullets customizados */
/* Listas não-ordenadas - Cyberpunk Chevron */
.blog-content ul>li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 0.8rem;
    transition: transform 0.2s ease;
}

.blog-content ul>li::before {
    content: "»";
    position: absolute;
    left: 0;
    color: #4ade80;
    /* Green */
    font-weight: 800;
    font-family: 'Consolas', 'Monaco', monospace;
    /* Techier font */
    font-size: 1.2em;
    line-height: 1.5;
    text-shadow: 0 0 5px rgba(74, 222, 128, 0.5);
    transition: all 0.2s ease;
}

.blog-content ul>li:hover {
    transform: translateX(5px);
    /* Slide right */
}

.blog-content ul>li:hover::before {
    color: #fff;
    text-shadow: 0 0 10px #4ade80, 0 0 20px #4ade80;
    /* Intense Glow */
}

/* Listas aninhadas */
.blog-content ul ul>li::before {
    content: "›";
    font-size: 1.4em;
    opacity: 0.8;
}


/* Decoração Antiga Removida - Usando novo padrão Orbitron */

/* NEGRITO EM VERDE NEON - Destaque especial */
.blog-content strong {
    position: relative;
    display: inline-block;
    color: #00ff41 !important;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
    transition: all 0.2s ease;
}

.blog-content strong:hover {
    background-color: rgba(0, 255, 65, 0.1) !important;
    text-shadow: 0 0 15px rgba(0, 255, 65, 0.5);
    transform: translateY(-1px);
}

/* Linhas horizontais */
.blog-content hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 255, 65, 0.3), transparent);
    margin: 2rem 0 1rem 0;
    /* Base reduzida para 1rem */
}

/* Fix: Remove margem gigante quando um elemento segue o HR */
.blog-content hr+* {
    margin-top: 0 !important;
    padding-top: 1rem !important;
    /* Pequeno respiro interno, se necessário */
}

/* Figures (Imagens e Tabelas Wrappers) */
.blog-content figure {
    margin: 3rem 0;
    display: block;
}

/* ============================================
   MELHORIAS DE ESPAÇAMENTO E RITMO VISUAL
   ============================================ */

/* Paragraphs - Justified text with proper spacing */
.blog-content p {
    text-align: left !important;
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

/* Cabeçalhos - H2 Diferenciado com Glow e Tamanho */
/* Cabeçalhos - H2 Diferenciado com Glow e Tamanho */
/* Cabeçalhos - H2 Diferenciado com Glow e Tamanho */
/* Cabeçalhos - H2 Diferenciado com Glow e Tamanho */
/* Cabeçalhos - H2 Diferenciado com Glow e Tamanho */
.blog-content h1,
.blog-content h2,
.blog-content h3 {
    font-family: 'Orbitron', sans-serif !important;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 1.5rem !important;
    margin-bottom: 1rem !important;
    position: relative;
    display: inline-block;
    width: 100%;
}

.blog-content h1 {
    color: #4ade80 !important;
    /* Green (Primary) */
    font-size: 1.8rem;
    text-shadow: 0 0 20px rgba(74, 222, 128, 0.3);
    border-bottom: none;
    /* Remove default border */
}

/* Gradient line for H1 */
.blog-content h1::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, rgba(74, 222, 128, 1) 0%, rgba(74, 222, 128, 0) 80%);
}

.blog-content h2 {
    color: #22d3ee !important;
    /* Cyan (Secondary) */
    font-size: 1.35rem;
    /* Reduced from 1.5rem */
    text-shadow: 0 0 15px rgba(34, 211, 238, 0.3);
    margin-top: 1.25rem !important;
    border-bottom: none;
}

/* Gradient line for H2 - Thinner */
.blog-content h2::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(34, 211, 238, 1) 0%, rgba(34, 211, 238, 0) 60%);
}

/* Cleanup old vertical bar if present on H2 */
.blog-content h2::before {
    display: none !important;
}

.blog-content h3 {
    color: #d946ef !important;
    /* Purple (Tertiary) */
    font-size: 1.15rem;
    /* Reduced from 1.25rem */
    font-weight: 600;
    margin-top: 1rem !important;
    text-shadow: 0 0 10px rgba(217, 70, 239, 0.3);
    border-bottom: none;
}

/* Purple Line for H3 */
.blog-content h3::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(217, 70, 239, 1) 0%, rgba(217, 70, 239, 0) 50%);
    /* Shorter fade for H3 */
}

/* Small accent for H3 - Terminal Style */
.blog-content h3::before {
    content: '> ';
    color: #d946ef;
    opacity: 0.8;
    margin-right: 0.5rem;
    font-weight: 800;
}

/* FIX: Restore code block background and styling */
.blog-content pre {
    background: #0f172a !important;
    /* Slate-900 */
    border: 1px solid rgba(148, 163, 184, 0.1) !important;
    padding: 0 !important;
    /* Code element handles padding */
    margin: 2rem 0 !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3) !important;
    overflow: hidden !important;
    /* Contain corners */
}

/* Ensure code inside pre matches formatting */
.blog-content pre code {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    font-family: 'JetBrains Mono', 'Fira Code', monospace !important;
    font-size: 0.9em;
    padding: 1.25rem 1.5rem;
    display: block;
    overflow-x: auto;
    color: #cbd5e1;
    /* Slate-300 */
    line-height: 1.6;
}

/* Override HighlightJS background/border if present */
.blog-content .hljs,
.blog-content pre code.hljs,
.blog-content code[class*="language-"],
.blog-content pre[class*="language-"] {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* ============================================
   RESTORED MISSING SECTIONS
   ============================================ */

/* FIX CRÍTICO: Anula margem do H2/H3 se vier log após um HR */
.blog-content hr+h1,
.blog-content hr+h2,
.blog-content hr+h3 {
    margin-top: 1rem !important;
    /* Pequeno respiro após divider */
    padding-top: 0 !important;
}

/* Parágrafos - Leitura confortável */
.blog-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Listas - Espaçamento generoso */
.blog-content ul,
.blog-content ol {
    margin-top: 1.5rem;
    margin-bottom: 2.5rem;
}

/* Remove margem negativa antiga */
.blog-content p+ul,
.blog-content p+ol {
    margin-top: 0.5rem !important;
}

/* Itens de lista - Espaçamento vertical */
.blog-content ul li+li,
.blog-content ol li+li {
    margin-top: 1rem;
}

/* ============================================
   COMPONENTES REUTILIZÁVEIS
   ============================================ */

/* Callout/Alert System */
.blog-content .blog-callout {
    padding: 1.5rem;
    margin: 2rem 0;
    border-left: 4px solid;
    border-radius: 0 0.5rem 0.5rem 0;
    background: rgba(15, 17, 26, 0.5);
    /* Base dark */
}

.blog-content .blog-callout h4 {
    margin-top: 0 !important;
    margin-bottom: 0.5rem !important;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-content .blog-callout p {
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Variant: Danger (Red - Xamarin EOL) */
.blog-content .blog-callout.danger {
    border-color: #ff003c;
    /* Cyberpunk Red */
    background: linear-gradient(90deg, rgba(255, 0, 60, 0.1) 0%, rgba(15, 17, 26, 0) 100%);
    box-shadow: 0 0 15px rgba(255, 0, 60, 0.1);
}

.blog-content .blog-callout.danger h4 {
    color: #ff003c;
    text-shadow: 0 0 8px rgba(255, 0, 60, 0.4);
}

/* Variant: Warning (Yellow/Amber) */
.blog-content .blog-callout.warning {
    border-color: #f59e0b;
    /* Amber 500 */
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.1) 0%, rgba(15, 17, 26, 0) 100%);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.1);
}

.blog-content .blog-callout.warning h4 {
    color: #f59e0b;
    text-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

/* Variant: Info (Blue) */
.blog-content .blog-callout.info {
    border-color: #3b82f6;
    /* Blue 500 */
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.1) 0%, rgba(15, 17, 26, 0) 100%);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.1);
}

.blog-content .blog-callout.info h4 {
    color: #3b82f6;
    text-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
}

/* Variant: Success (Green - Simpler than CTA) */
.blog-content .blog-callout.success {
    border-color: #00ff41;
    /* Neon Green */
    background: linear-gradient(90deg, rgba(0, 255, 65, 0.1) 0%, rgba(15, 17, 26, 0) 100%);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.1);
}

.blog-content .blog-callout.success h4 {
    color: #00ff41;
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.4);
}

/* Checklist Customizada (Substitui emojis feios) */
.blog-content .checklist {
    list-style: none;
    padding-left: 0;
    margin: 2rem 0;
}

.blog-content .checklist li {
    position: relative;
    padding-left: 2rem;
    /* Espaço para o ícone */
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
}

/* Remove a seta padrão (▸) se houver conflito */
.blog-content .checklist li::before {
    content: "\f00c" !important;
    /* FontAwesome Check */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    /* Ajuste fino vertical */
    color: #00ff41;
    /* Neon Green */
    font-size: 1em;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
    /* Glow */
}

/* Exceções de proximidade */
.blog-content h2+p,
.blog-content h3+p {
    margin-top: 0 !important;
}

/* Limpeza primeiro/último */
.blog-content>*:first-child {
    margin-top: 0 !important;
}

/* Responsive Iframe (YouTube Embeds) */
/* Responsive Iframe (Universal Support) */
.blog-content iframe,
.blog-content .video-responsive iframe,
.blog-content video {
    width: 100% !important;
    aspect-ratio: 16 / 9;
    height: auto !important;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    margin: 2rem 0;
    display: block;
    border: none;
}

/* Cleanup old container wrapper styles if present */
.blog-content .video-responsive {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    height: auto;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
}


/* ============================================
   MARKDIG ALERTS SUPPORT (GitHub Style)
   ============================================ */

.blog-content .markdown-alert {
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    border-left: 4px solid;
    border-radius: 0 0.5rem 0.5rem 0;
    background: rgba(15, 17, 26, 0.5);
    /* Base Dark */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.blog-content .markdown-alert-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 0.5rem !important;
    letter-spacing: 0.05em;
}

/* Icons scaling */
.blog-content .markdown-alert-icon {
    width: 1.25em;
    height: 1.25em;
    fill: currentColor;
}

/* Red / Caution / Danger */
.blog-content .markdown-alert-caution,
.blog-content .markdown-alert-danger {
    border-color: #ff003c;
    background: linear-gradient(90deg, rgba(255, 0, 60, 0.1) 0%, rgba(15, 17, 26, 0) 100%);
    box-shadow: 0 0 15px rgba(255, 0, 60, 0.05);
    /* Subtle Glow */
}

.blog-content .markdown-alert-caution .markdown-alert-title,
.blog-content .markdown-alert-danger .markdown-alert-title {
    color: #ff003c;
    text-shadow: 0 0 10px rgba(255, 0, 60, 0.3);
}

/* Yellow / Warning */
.blog-content .markdown-alert-warning {
    border-color: #f59e0b;
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.1) 0%, rgba(15, 17, 26, 0) 100%);
}

.blog-content .markdown-alert-warning .markdown-alert-title {
    color: #f59e0b;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

/* Green / Tip */
.blog-content .markdown-alert-tip {
    border-color: #00ff41;
    background: linear-gradient(90deg, rgba(0, 255, 65, 0.1) 0%, rgba(15, 17, 26, 0) 100%);
}

.blog-content .markdown-alert-tip .markdown-alert-title {
    color: #00ff41;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

/* Blue / Note */
.blog-content .markdown-alert-note {
    border-color: #3b82f6;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.1) 0%, rgba(15, 17, 26, 0) 100%);
}

.blog-content .markdown-alert-note .markdown-alert-title {
    color: #3b82f6;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

/* Purple / Important */
.blog-content .markdown-alert-important {
    border-color: #d946ef;
    background: linear-gradient(90deg, rgba(217, 70, 239, 0.1) 0%, rgba(15, 17, 26, 0) 100%);
}

.blog-content .markdown-alert-important .markdown-alert-title {
    color: #d946ef;
    text-shadow: 0 0 10px rgba(217, 70, 239, 0.3);
}

/* ============================================
   CYBER CTA (Enhanced with Animations)
   ============================================ */
.blog-content .cyber-cta {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 3rem auto;
    padding: 3rem 2.5rem;
    background: linear-gradient(135deg, #080a0f 0%, #0d1117 50%, #080a0f 100%);
    border: 2px solid #00ff41;
    border-radius: 16px;
    text-align: center;
    max-width: 100%;
    box-shadow:
        0 0 30px rgba(0, 255, 65, 0.15),
        inset 0 0 60px rgba(0, 255, 65, 0.03);
    animation: cta-glow 3s ease-in-out infinite;
    overflow: hidden;
}

/* Animated glow effect */
@keyframes cta-glow {

    0%,
    100% {
        box-shadow: 0 0 30px rgba(0, 255, 65, 0.15), inset 0 0 60px rgba(0, 255, 65, 0.03);
        border-color: #00ff41;
    }

    50% {
        box-shadow: 0 0 50px rgba(0, 255, 65, 0.3), inset 0 0 80px rgba(0, 255, 65, 0.05);
        border-color: #5aff85;
    }
}

/* Corner accents */
.blog-content .cyber-cta::before,
.blog-content .cyber-cta::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border: 3px solid #00ff41;
    z-index: 10;
}

.blog-content .cyber-cta::before {
    top: 10px;
    left: 10px;
    border-right: none;
    border-bottom: none;
}

.blog-content .cyber-cta::after {
    bottom: 10px;
    right: 10px;
    border-left: none;
    border-top: none;
}

/* Hide any leftover HUD elements */
.blog-content .cyber-cta .cta-grid,
.blog-content .cyber-cta .corner,
.blog-content .cyber-cta-content {
    display: contents !important;
}

/* Headings - Gradient glow effect */
.blog-content .cyber-cta h1,
.blog-content .cyber-cta h2,
.blog-content .cyber-cta h3,
.blog-content .cyber-cta h4 {
    font-family: 'Orbitron', sans-serif !important;
    font-size: 1.8rem !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    background: linear-gradient(90deg, #00ff41, #7dffb3, #00ff41) !important;
    background-size: 200% auto !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    animation: title-shimmer 3s linear infinite !important;
    margin: 0 0 1.5rem 0 !important;
    padding: 0 !important;
    border: none !important;
    filter: drop-shadow(0 0 20px rgba(0, 255, 65, 0.5));
}

@keyframes title-shimmer {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

/* Paragraphs */
.blog-content .cyber-cta p {
    color: #cbd5e1 !important;
    font-size: 1.15rem;
    line-height: 1.8;
    margin: 0 auto 2rem auto !important;
    max-width: 650px;
}

/* Links/Buttons - Enhanced */
.blog-content .cyber-cta a {
    position: relative !important;
    display: inline-block !important;
    padding: 1.2rem 3rem !important;
    background: linear-gradient(135deg, #00ff41 0%, #00cc33 100%) !important;
    color: #000 !important;
    font-weight: 900 !important;
    font-family: 'Orbitron', sans-serif !important;
    font-size: 1rem !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    letter-spacing: 1px !important;
    border-radius: 8px !important;
    border: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow:
        0 0 25px rgba(0, 255, 65, 0.4),
        0 4px 15px rgba(0, 0, 0, 0.3) !important;
    margin-top: 1rem;
    overflow: hidden !important;
}

/* Button shine effect */
.blog-content .cyber-cta a::before {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent) !important;
    transition: left 0.5s ease !important;
}

.blog-content .cyber-cta a:hover::before {
    left: 100% !important;
}

.blog-content .cyber-cta a:hover {
    background: linear-gradient(135deg, #5aff85 0%, #00ff41 100%) !important;
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow:
        0 0 50px rgba(0, 255, 65, 0.6),
        0 8px 25px rgba(0, 0, 0, 0.4) !important;
    color: #000 !important;
}

/* Remove default link ::after */
.blog-content .cyber-cta a::after {
    display: none !important;
    content: none !important;
}

/* ============================================
   LIGHTBOX (Full Screen Image Viewer)
   ============================================ */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(8, 10, 15, 0.95);
    /* Deep dark background */
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-container {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-image.active {
    transform: scale(1);
    box-shadow: 0 0 50px rgba(0, 255, 65, 0.1), 0 0 0 1px rgba(0, 255, 65, 0.3);
    /* Subtle neon border */
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.2s;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    color: #00ff41;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}