/*
Theme Name: CahFelix Tech WP
Description: Modern WordPress theme with dark design system, optimized for tech blogs and professional portfolios. Features responsive design, syntax highlighting, social sharing, and performance optimizations.
Version: 1.2.0
Author: Cah Felix
Author URI: https://cahfelix.com
Text Domain: cahfelix-tech-wp
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, dark-theme, responsive-layout, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready, accessibility-ready
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4

🚀 Desenvolvido por Cah Felix - Engineering Manager Sênior
💡 Transformando ideias em software escalável e confiável
🎯 Especialista em arquitetura de sistemas e liderança técnica
*/

/*
 * ═══════════════════════════════════════════════════════════════════════════════
 * 🎨 CahFelix Tech WP - Professional Design System
 * ═══════════════════════════════════════════════════════════════════════════════
 *
 * 📋 THEME OVERVIEW:
 * Modern WordPress theme designed for tech professionals, engineering managers,
 * and developers who want a clean, performant, and accessible blog platform.
 *
 * 🎯 KEY FEATURES:
 * • Dark theme with HSL color system for perfect contrast
 * • Responsive design with mobile-first approach
 * • Syntax highlighting for code blocks
 * • Social sharing integration
 * • SEO optimized structure
 * • Performance optimized CSS with variables
 * • Accessibility compliant (WCAG 2.1)
 * • PWA ready architecture
 *
 * 🛠️ TECHNICAL STACK:
 * • CSS Custom Properties (CSS Variables)
 * • Modern CSS Grid & Flexbox
 * • Semantic HTML5 structure
 * • WordPress best practices
 * • Mobile-first responsive design
 * • Optimized for Core Web Vitals
 *
 * 👨‍💻 AUTHOR INFO:
 * • Name: Cah Felix
 * • Role: Senior Engineering Manager
 * • Expertise: Software Architecture, Team Leadership, Scalable Systems
 * • Website: https://cahfelix.com
 * • GitHub: https://github.com/cahfelix
 * • LinkedIn: https://linkedin.com/in/cahfelix
 * • Email: camila.felix@unico.io
 *
 * 📅 VERSION HISTORY:
 * • v1.0.0 - Initial release with basic dark theme
 * • v1.1.0 - Added social sharing and syntax highlighting
 * • v1.2.0 - CSS optimization with variables and performance improvements
 *
 * 📄 LICENSE:
 * This theme is licensed under GPL v2 or later.
 * You are free to use, modify, and distribute this theme.
 *
 * ═══════════════════════════════════════════════════════════════════════════════
 */
:root {
    /* Dark Theme Colors (HSL) */
    --background: 220 13% 9%;
    --foreground: 220 9% 95%;

    --card: 220 13% 11%;
    --card-foreground: 220 9% 95%;

    --primary: 220 9% 95%;
    --primary-foreground: 220 13% 9%;

    --secondary: 220 13% 15%;
    --secondary-foreground: 220 9% 95%;

    --muted: 220 13% 20%;
    --muted-foreground: 220 9% 65%;

    --accent: 217 91% 60%;
    --accent-foreground: 220 13% 9%;

    --border: 220 13% 20%;
    --input: 220 13% 15%;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* Border Radius */
    --radius: 0.5rem;
    --radius-sm: 0.25rem;
    --radius-lg: 0.75rem;

    /* Typography */
    --font-sm: 14px;
    --font-base: 16px;
    --font-lg: 18px;
    --font-xl: 20px;
    --font-2xl: 24px;

    /* Borders */
    --border-default: 1px solid hsl(var(--border));
    --border-top: 1px solid hsl(var(--border));
    --border-bottom: 1px solid hsl(var(--border));

    /* Common Spacing Values */
    --spacing-24: 24px;
    --spacing-32: 32px;
    --spacing-48: 48px;

    /* Code syntax highlighting - Dark theme */
    --code-keyword: #ff6b6b;
    --code-comment: #51cf66;
    --code-default: #c9d1d9;
}

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-color: hsl(var(--border));
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: hsl(var(--foreground));
    background-color: hsl(var(--background));
    font-size: var(--font-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
    font-variation-settings: normal;
    padding-top: 80px; /* Espaço para o header fixo */
}
/* Link de pular conteúdo movido para assets/css/utilities.css */

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: hsl(var(--foreground));
    margin: 0;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.875rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
    margin: 0 0 var(--spacing-md);
    line-height: 1.6;
}

/* Links */
a {
    color: hsl(var(--accent));
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: hsl(var(--accent) / 0.8);
}

/* Buttons */
.engineer-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
    border: none;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.engineer-btn:hover {
    background: hsl(var(--accent) / 0.9);
    transform: translateY(-1px);
}

.engineer-btn-outline {
    background: transparent;
    color: hsl(var(--accent));
    border: 1px solid hsl(var(--accent) / 0.3);
}

.engineer-btn-outline:hover {
    background: hsl(var(--accent) / 0.1);
    border-color: hsl(var(--accent) / 0.5);
}

/* Container System - Engineer Trails Standard */
.engineer-container {
    max-width: 56rem; /* 896px - Padrão Engineer Trails */
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.engineer-container-wide {
    max-width: 56rem; /* 896px - Mantém consistência */
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.engineer-section {
    width: 100%;
    padding: var(--spacing-3xl) 0;
}

/* Utility Classes movidas para assets/css/utilities.css */

/* ===== CATEGORY & ARCHIVE STYLES ===== */

/* Category Links nos Posts */
.cahfelix-post-categories {
    font-size: var(--font-sm);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    line-height: 1.5;
    margin-bottom: var(--spacing-sm);
    margin-top: var(--spacing-xs);
}

.cahfelix-category-link {
    color: hsl(var(--accent));
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    display: inline-block;
    padding: 2px 0;
}

.cahfelix-category-link:hover {
    text-decoration: underline;
}





/* ===== HERO SECTION DA HOME ===== */
.cahfelix-blog-hero {
    background: hsl(var(--background));
    padding: var(--spacing-3xl) 0;
    border-bottom: var(--border-bottom);
    margin-bottom: var(--spacing-2xl);
}

.cahfelix-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.cahfelix-blog-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: var(--spacing-lg);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.cahfelix-blog-subtitle {
    font-size: var(--font-lg);
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
}

/* CahFelix Containers com cores Engineer Trails */
.cahfelix-container {
    max-width: 56rem; /* 896px - Padrão Engineer Trails */
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    background: hsl(var(--background));
    color: hsl(var(--foreground));
}

.cahfelix-container-wide {
    max-width: 56rem; /* 896px - Padrão Engineer Trails */
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-lg);
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    min-height: calc(100vh - 80px);
}

/* Header Engineer Trails Style */
.engineer-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: hsl(var(--background) / 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid hsl(var(--border) / 0.5);
    transition: all 0.3s ease;
    height: 80px;
}

.engineer-header.scrolled {
    background: hsl(var(--background) / 0.9);
    border-bottom: 1px solid hsl(var(--border));
    box-shadow: 0 10px 30px hsl(var(--background) / 0.6);
}

/* Reading progress bar */
.reading-progress {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    background: transparent;
    overflow: hidden;
}

.reading-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, hsl(var(--accent)), hsl(var(--accent) / 0.6));
    transition: width 0.15s linear;
}

.engineer-nav {
    max-width: 56rem;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
    height: 80px;
}

.engineer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: hsl(var(--foreground));
    text-decoration: none;
    letter-spacing: -0.025em;
    transition: color 0.2s ease;
}

.engineer-logo:hover {
    color: hsl(var(--accent));
}

.engineer-logo-icon {
    width: 32px;
    height: 32px;
    background: hsl(var(--accent));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--accent-foreground));
    flex-shrink: 0;
}

.engineer-logo-text {
    font-size: 1.125rem;
    font-weight: 700;
}

.engineer-nav-links {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
}

.engineer-nav-links a {
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    /* Sem font-size definido - herda do body (16px) igual ao React */
    font-weight: 400;
    transition: all 0.2s ease;
    position: relative;
}

.engineer-nav-links a:hover {
    color: hsl(var(--foreground));
}

.engineer-nav-links a.active,
.engineer-nav-links a.current-menu-item {
    color: hsl(var(--accent));
}

/* Underline animation for nav links */
.engineer-nav-links a::after,
.engineer-nav-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    height: 2px;
    width: 0;
    background: hsl(var(--accent));
    transition: width 0.2s ease;
}

.engineer-nav-links a:hover::after,
.engineer-nav-menu a:hover::after,
.engineer-nav-links a.active::after,
.engineer-nav-menu a.active::after,
.engineer-nav-menu a.current-menu-item::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.engineer-mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    position: relative;
    z-index: 60;
    color: hsl(var(--muted-foreground));
    transition: all 0.2s ease;
    z-index: 1001;
    pointer-events: auto;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.engineer-mobile-toggle:hover {
    color: hsl(var(--foreground));
    background: hsl(var(--accent) / 0.1);
    border-radius: 4px;
}

.engineer-mobile-toggle:focus-visible {
    outline: 2px solid hsl(var(--accent));
    outline-offset: 2px;
}

.engineer-mobile-toggle:hover {
    color: hsl(var(--foreground));
}
/* Estados de foco movidos para assets/css/utilities.css */

.engineer-menu-icon {
    display: block;
}

.engineer-close-icon {
    display: none;
}

.engineer-mobile-toggle.active {
    color: hsl(var(--accent));
    background: hsl(var(--accent) / 0.1);
    border-radius: 4px;
}

.engineer-mobile-toggle.active .engineer-menu-icon {
    display: none;
}

.engineer-mobile-toggle.active .engineer-close-icon {
    display: block;
}

/* Header Mobile (1024px) */

/* Menu Mobile Dropdown - Versão Ultra Simples */
.engineer-mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: hsl(var(--background));
    border-top: 1px solid hsl(var(--border));
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Quando ativo via JavaScript */
.engineer-mobile-menu[style*="display: block"] {
    display: block !important;
}

/* Prevenir scroll quando menu aberto */
body.no-scroll {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

.engineer-mobile-menu-content {
    padding: var(--spacing-lg) var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.mobile-nav-link,
.engineer-mobile-nav-menu a {
    display: block;
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    /* Sem font-size definido - herda do body (16px) igual ao React */
    font-weight: 400;
    padding: var(--spacing-md) 0;
    transition: color 0.2s ease;
    border-bottom: 1px solid hsl(var(--border) / 0.2);
}

.mobile-nav-link:hover,
.engineer-mobile-nav-menu a:hover {
    color: hsl(var(--foreground));
    text-decoration: underline;
}

.mobile-nav-link.active,
.engineer-mobile-nav-menu a.active {
    color: hsl(var(--foreground));
    font-weight: 500;
}

.mobile-nav-link:last-child,
.engineer-mobile-nav-menu a:last-child {
    border-bottom: none;
}

/* Menu do WordPress Engineer Style */
.engineer-nav-menu {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.engineer-nav-menu li {
    margin: 0;
    padding: 0;
}

/* Links do menu WordPress com estilo consistente */
.engineer-nav-menu a {
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    /* Sem font-size definido - herda do body (16px) igual ao React */
    font-weight: 400;
    transition: all 0.2s ease;
    position: relative;
}

.engineer-nav-menu a:hover {
    color: hsl(var(--foreground));
}

.engineer-nav-menu a.active,
.engineer-nav-menu a.current-menu-item {
    color: hsl(var(--accent));
}

/* Hero Section Engineer Style */
.engineer-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--spacing-3xl) var(--spacing-lg);
    position: relative;
}

.engineer-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--spacing-lg);
    color: hsl(var(--foreground));
}

.engineer-hero .accent {
    color: hsl(var(--accent));
}

.engineer-hero p {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: hsl(var(--muted-foreground));
    max-width: 32rem;
    margin: 0 auto var(--spacing-2xl);
    line-height: 1.5;
}

/* Sections Layout */
.engineer-section {
    padding: var(--spacing-3xl) 0;
}

.engineer-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-2xl);
    color: hsl(var(--foreground));
}

/* Posts Grid Engineer Style */
.engineer-posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
}

/* CahFelix Posts Grid com cores Engineer Trails */
.cahfelix-posts-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    margin-top: 32px;
    background: hsl(var(--background));
}

.cahfelix-main-content {
    background: hsl(var(--background));
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2xl); /* 48px de espaçamento entre posts */
}

/* Posts na página principal */
.cahfelix-main-content .cahfelix-post-card {
    background: hsl(var(--card));
    border: var(--border-default);
    border-radius: var(--radius);
    padding: var(--spacing-xl);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    gap: var(--spacing-24);
    align-items: flex-start;
}

.cahfelix-main-content .cahfelix-post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px hsl(var(--background) / 0.3);
    border-color: hsl(var(--accent) / 0.3);
}

/* Conteúdo do post (texto) */
.cahfelix-post-content {
    flex: 1;
    min-width: 0;
}

/* Imagem destacada lateral estilo CahFelix */
.cahfelix-featured-image {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    overflow: hidden;
    border-radius: 8px;
}

.cahfelix-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cahfelix-featured-image:hover img {
    transform: scale(1.05);
}

/* Meta info dos posts na página principal */
.cahfelix-main-content .cahfelix-post-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.cahfelix-main-content .cahfelix-post-meta .avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

/* Título dos posts na página principal */
.cahfelix-main-content .cahfelix-post-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
    color: hsl(var(--foreground));
}

.cahfelix-main-content .cahfelix-post-title:hover {
    color: hsl(var(--accent));
}

/* Excerpt dos posts na página principal */
.cahfelix-main-content .cahfelix-post-excerpt {
    font-size: 1rem;
    line-height: 1.6;
    color: hsl(var(--muted-foreground));
    margin-bottom: var(--spacing-lg);
}

/* Footer dos posts na página principal */
.cahfelix-main-content .cahfelix-post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid hsl(var(--border));
}

/* Tags dos posts na página principal */
.cahfelix-main-content .cahfelix-post-tags {
    display: flex;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
}

.cahfelix-main-content .cahfelix-post-tag {
    background: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    text-decoration: none;
}

.cahfelix-main-content .cahfelix-post-tag:hover {
    background: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
}

/* Tempo de leitura dos posts na página principal */
.cahfelix-main-content .cahfelix-read-time {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    font-weight: 500;
}

.cahfelix-sidebar {
    background: hsl(var(--card));
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    border: var(--border-default);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.engineer-post-card {
    background: hsl(var(--card));
    border: var(--border-default);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.engineer-post-card:hover {
    border-color: hsl(var(--accent) / 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px hsl(var(--background) / 0.3);
}

.engineer-post-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: hsl(var(--foreground));
    transition: color 0.2s ease;
}

.engineer-post-card:hover h3 {
    color: hsl(var(--accent));
}

/* Focus states for interactive cards/tags/buttons */
.engineer-post-card:focus-within,
.cahfelix-post-card:focus-within {
    outline: 2px solid hsl(var(--accent));
    outline-offset: 2px;
}

.cahfelix-tag:focus-visible,
.cahfelix-btn:focus-visible,
.cahfelix-btn-outline:focus-visible {
    outline: 2px solid hsl(var(--accent));
    outline-offset: 2px;
}

.engineer-post-card p {
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
}

.engineer-post-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.engineer-author-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: hsl(var(--secondary));
}

/* Technology Tags */
.engineer-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.engineer-tech-tag {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius);
    border: 1px solid;
    transition: all 0.2s ease;
}

/* Colorful tech tags */
.engineer-tech-tag.blue {
    background: hsl(217 91% 60% / 0.2);
    color: hsl(217 91% 70%);
    border-color: hsl(217 91% 60% / 0.3);
}

.engineer-tech-tag.green {
    background: hsl(142 76% 36% / 0.2);
    color: hsl(142 76% 50%);
    border-color: hsl(142 76% 36% / 0.3);
}

.engineer-tech-tag.purple {
    background: hsl(262 83% 58% / 0.2);
    color: hsl(262 83% 70%);
    border-color: hsl(262 83% 58% / 0.3);
}

.engineer-tech-tag.orange {
    background: hsl(25 95% 53% / 0.2);
    color: hsl(25 95% 65%);
    border-color: hsl(25 95% 53% / 0.3);
}

.engineer-tech-tag.pink {
    background: hsl(330 81% 60% / 0.2);
    color: hsl(330 81% 70%);
    border-color: hsl(330 81% 60% / 0.3);
}

.engineer-tech-tag.cyan {
    background: hsl(188 94% 43% / 0.2);
    color: hsl(188 94% 55%);
    border-color: hsl(188 94% 43% / 0.3);
}

.cahfelix-post-meta {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-bottom: 12px;
    font-size: 13px;
    color: #6b6b6b;
}

.cahfelix-author-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 8px;
    background: hsl(var(--muted));
}

.cahfelix-post-date {
    margin-left: 8px;
}

.cahfelix-post-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    color: hsl(var(--foreground));
    margin-bottom: 8px;
    text-decoration: none;
}

.cahfelix-post-title:hover {
    color: hsl(var(--accent));
}

.cahfelix-post-excerpt {
    font-size: var(--font-base);
    color: #6b6b6b;
    line-height: 1.4;
    margin-bottom: 12px;
}

.cahfelix-post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #6b6b6b;
    flex-wrap: wrap;
    gap: 8px;
}

.cahfelix-read-time {
    background: hsl(var(--secondary));
    padding: 2px 8px;
    border-radius: var(--radius);
    font-size: 12px;
}

/* Post Individual estilo Medium com cores Engineer Trails */
.cahfelix-article {
    max-width: 56rem; /* 896px - Padrão Engineer Trails */
    margin: 0 auto;
    padding: var(--spacing-3xl) var(--spacing-lg);
    background: hsl(var(--background));
    color: hsl(var(--foreground));
}

.cahfelix-article-header {
    margin-bottom: 48px;
}

/* Featured Image do Artigo */
.cahfelix-article-featured-image {
    margin: var(--spacing-2xl) 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 6px -1px hsl(var(--border) / 0.1);
}

.cahfelix-article-featured-image img {
    width: 100%;
    height: auto;
    max-height: 240px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.cahfelix-article-featured-image:hover img {
    transform: scale(1.02);
}

.breadcrumbs {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 16px;
}

.breadcrumbs a {
    color: hsl(var(--muted-foreground));
}

.breadcrumbs a:hover {
    color: hsl(var(--foreground));
    text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   SEARCH FORM STYLES
   ═══════════════════════════════════════════════════════════════════════════════ */

.cahfelix-search-form {
    width: 100%;
    margin-bottom: 24px;
}

.cahfelix-search-wrapper {
    display: flex;
    gap: 8px;
    align-items: center;
}

.cahfelix-search-input {
    flex: 1;
    padding: 12px 16px;
    font-size: 1rem;
    border: 1px solid hsl(var(--border));
    border-radius: 8px;
    background: hsl(var(--card));
    color: hsl(var(--foreground));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.cahfelix-search-input::placeholder {
    color: hsl(var(--muted-foreground));
}

.cahfelix-search-input:focus {
    outline: none;
    border-color: hsl(var(--accent));
    box-shadow: 0 0 0 3px hsl(var(--accent) / 0.1);
    background: hsl(var(--card));
}

.cahfelix-search-button {
    padding: 12px 16px;
    background: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
}

.cahfelix-search-button:hover {
    background: hsl(var(--accent) / 0.9);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px hsl(var(--accent) / 0.2);
}

.cahfelix-search-button:active {
    transform: translateY(0);
}

.cahfelix-search-button svg {
    width: 18px;
    height: 18px;
}

.cahfelix-article-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.1;
    color: hsl(var(--foreground));
    margin-bottom: var(--spacing-24);
    letter-spacing: -0.5px;
}

.cahfelix-article-subtitle {
	font-size: 20px;
	color: hsl(var(--muted-foreground));
	line-height: 1.55;
	margin-bottom: var(--spacing-24);
	font-weight: 400;
}

.cahfelix-article-meta {
    display: flex;
    align-items: center;
    padding: 16px 0;
    border-top: 1px solid hsl(var(--border));
    border-bottom: 1px solid hsl(var(--border));
}

.cahfelix-article-author {
    display: flex;
    align-items: center;
    flex: 1;
}

.cahfelix-article-author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 12px;
    background: hsl(var(--muted));
}

.cahfelix-article-author-info h4 {
    font-size: var(--font-base);
    font-weight: 500;
    color: hsl(var(--foreground));
    margin-bottom: 2px;
}

.cahfelix-article-author-info p {
    font-size: var(--font-sm);
    color: hsl(var(--muted-foreground));
    margin: 0;
}

/* Conteúdo do Artigo com cores Engineer Trails */
.cahfelix-article-content {
    font-size: 1.0625rem; /* ~17px */
    line-height: 1.75;
    color: hsl(var(--foreground));
    margin-top: 32px;
    max-width: 68ch; /* leitura confortável */
    margin-left: auto;
    margin-right: auto;
    hyphens: auto;
    -webkit-hyphens: auto;
    word-break: normal;
}

.cahfelix-article-content p {
    margin-bottom: 1.25em;
}

/* Primeiro parágrafo mantém tamanho padrão para consistência visual */

.cahfelix-article-content h1,
.cahfelix-article-content h2,
.cahfelix-article-content h3 {
    font-weight: 700;
    color: hsl(var(--foreground));
    margin: 2.5rem 0 1rem 0;
    line-height: 1.25;
    letter-spacing: -0.01em;
    scroll-margin-top: 96px; /* para âncoras */
}

.cahfelix-article-content h1 {
	font-size: 30px;
}

.cahfelix-article-content h2 {
    font-size: var(--font-2xl);
    margin-top: 3rem; /* mais espaço acima do h2 no single */
    margin-bottom: 1.25rem; /* um pouco mais de respiro abaixo */
}

.cahfelix-article-content h3 {
	font-size: 20px;
}

.cahfelix-article-content blockquote,
.cahfelix-article-content .wp-block-quote {
    border-left: 3px solid hsl(var(--accent) / 0.7);
    margin: 1.5rem 0;
    padding-left: 1rem;
    font-style: normal;
    font-size: 1.0625rem; /* ~17px */
    line-height: 1.8;
    color: hsl(var(--muted-foreground));
    background: hsl(var(--secondary) / 0.15);
    border-radius: 4px;
}

.cahfelix-article-content blockquote p,
.cahfelix-article-content .wp-block-quote p {
    margin: 0;
}

.cahfelix-article-content blockquote cite,
.cahfelix-article-content .wp-block-quote cite {
    display: block;
    margin-top: 8px;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    font-style: normal;
}

/* Gutenberg quote grande: manter discreto */
.cahfelix-article-content .wp-block-quote.is-style-large {
	border-left-width: 2px;
	font-size: 1.125rem; /* leve aumento apenas */
}

/* Pullquote com visual minimalista alinhado ao tema */
.cahfelix-article-content .wp-block-pullquote {
	margin: var(--spacing-24) 0;
	padding: 12px 0;
	background: transparent;
	border-top: var(--border-top);
	border-bottom: var(--border-bottom);
	border-left: 0;
	border-right: 0;
	text-align: center;
}

.cahfelix-article-content .wp-block-pullquote:before,
.cahfelix-article-content .wp-block-pullquote:after {
    content: none;
}

.cahfelix-article-content .wp-block-pullquote blockquote {
	margin: 0;
	padding: 0;
	border: 0;
	font-style: normal;
	font-size: 1.125rem;
	line-height: 1.6;
	color: hsl(var(--muted-foreground));
}

.cahfelix-article-content .wp-block-pullquote p {
    margin: 0;
}

.cahfelix-article-content .wp-block-pullquote cite {
    display: block;
    margin-top: 8px;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    font-style: normal;
}

/* Listas melhoradas com indentação e espaçamento */
.cahfelix-article-content ul,
.cahfelix-article-content ol {
    margin: var(--spacing-24) 0;
    list-style-position: outside; /* Garante que os marcadores fiquem fora do conteúdo */
}

.cahfelix-article-content li {
    margin-bottom: 12px; /* Aumentado de 8px para 12px */
    line-height: 1.7; /* Melhor legibilidade */
    color: hsl(var(--foreground));
}

/* Itens de listas aninhadas com espaçamento específico */
.cahfelix-article-content ul ul li,
.cahfelix-article-content ol ol li,
.cahfelix-article-content ul ol li,
.cahfelix-article-content ol ul li {
    margin-bottom: 8px; /* Espaçamento menor para listas aninhadas */
    margin-top: 4px; /* Pequeno espaço superior para separação */
}

/* Listas aninhadas */
.cahfelix-article-content ul ul,
.cahfelix-article-content ol ol,
.cahfelix-article-content ul ol,
.cahfelix-article-content ol ul {
    margin: 16px 0; /* Aumentado de 8px para 16px para melhor separação */
    list-style-position: outside; /* Garante marcadores corretos em listas aninhadas */
}

/* Estilos específicos para ul */
.cahfelix-article-content ul {
    list-style-type: disc;
    padding-left: 40px; /* Espaço específico para marcadores de ul */
}

.cahfelix-article-content ul ul {
    list-style-type: circle;
    padding-left: 30px; /* Espaço menor para listas aninhadas */
}

.cahfelix-article-content ul ul ul {
    list-style-type: square;
    padding-left: 30px; /* Espaço consistente para terceiro nível */
}

/* Estilos específicos para ol */
.cahfelix-article-content ol {
    list-style-type: decimal;
    padding-left: 40px; /* Espaço específico para numeração de ol */
}

.cahfelix-article-content ol ol {
    list-style-type: lower-alpha;
    padding-left: 30px; /* Espaço menor para listas aninhadas */
}

.cahfelix-article-content ol ol ol {
    list-style-type: lower-roman;
    padding-left: 30px; /* Espaço consistente para terceiro nível */
}

.cahfelix-article-content a {
    color: hsl(var(--accent));
    text-decoration: none;
    transition: color 0.2s ease;
}

.cahfelix-article-content a:hover {
    color: hsl(var(--accent) / 0.8);
}

.cahfelix-article-content img {
    max-width: 100%;
    height: auto;
    margin: 32px 0;
    border-radius: 4px;
}

/* Inline code */
.cahfelix-article-content code {
    background: hsl(var(--secondary));
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: var(--font-base);
    color: var(--code-keyword);
}

/* Code blocks - Medium style */
.cahfelix-article-content pre,
.cahfelix-article-content .wp-block-code {
    background: hsl(var(--card));
    padding: 32px;
    border-radius: 4px;
    overflow-x: auto;
    margin: var(--spacing-32) 0;
    border: var(--border-default);
    font-family: source-code-pro, Menlo, Monaco, "Courier New", Courier, monospace;
    line-height: 1.4;
    position: relative;
}

.cahfelix-article-content pre code,
.cahfelix-article-content .wp-block-code code {
    background: none;
    padding: 0;
    font-size: var(--font-sm);
    color: hsl(var(--foreground));
    font-family: source-code-pro, Menlo, Monaco, "Courier New", Courier, monospace;
    line-height: 1.4;
}

/* Simplified syntax highlighting - 3 colors only */
.cahfelix-article-content pre .hljs-comment,
.cahfelix-article-content pre .hljs-quote {
    color: var(--code-comment);
}

.cahfelix-article-content pre .hljs-keyword,
.cahfelix-article-content pre .hljs-selector-tag,
.cahfelix-article-content pre .hljs-literal,
.cahfelix-article-content pre .hljs-name,
.cahfelix-article-content pre .hljs-string,
.cahfelix-article-content pre .hljs-meta .hljs-string,
.cahfelix-article-content pre .hljs-number,
.cahfelix-article-content pre .hljs-function,
.cahfelix-article-content pre .hljs-attr {
    color: var(--code-keyword);
}

.cahfelix-article-content pre .hljs-variable,
.cahfelix-article-content pre .hljs-template-variable,
.cahfelix-article-content pre .hljs-regexp,
.cahfelix-article-content pre .hljs-link,
.cahfelix-article-content pre .hljs-title,
.cahfelix-article-content pre .hljs-symbol,
.cahfelix-article-content pre .hljs-bullet,
.cahfelix-article-content pre .hljs-section,
.cahfelix-article-content pre .hljs-meta,
.cahfelix-article-content pre .hljs-class .hljs-title,
.cahfelix-article-content pre .hljs-type,
.cahfelix-article-content pre .hljs-built_in,
.cahfelix-article-content pre .hljs-params,
.cahfelix-article-content pre .hljs-subst {
    color: var(--code-default);
}

/* Language label for code blocks */
.cahfelix-article-content pre::before {
    content: attr(data-lang);
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 12px;
    color: hsl(var(--muted-foreground));
    text-transform: lowercase;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Override highlight.js styles to match Medium exactly */
.cahfelix-article-content pre code.hljs {
    background: transparent !important;
    padding: 0 !important;
    color: #c9d1d9 !important;
}

/* Medium-specific code block styling */
.cahfelix-article-content .wp-block-preformatted {
    background: hsl(var(--card)) !important;
    border: var(--border-default) !important;
    border-radius: 4px !important;
    padding: var(--spacing-32) !important;
    margin: var(--spacing-32) 0 !important;
    font-family: source-code-pro, Menlo, Monaco, "Courier New", Courier, monospace !important;
    font-size: var(--font-sm) !important;
    line-height: 1.4 !important;
    overflow-x: auto !important;
    color: hsl(var(--foreground)) !important;
}

.cahfelix-article-content .wp-block-preformatted code {
    background: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    font-family: source-code-pro, Menlo, Monaco, "Courier New", Courier, monospace !important;
    font-size: var(--font-sm) !important;
    line-height: 1.4 !important;
    color: hsl(var(--foreground)) !important;
}

/* Ensure proper spacing and formatting */
.cahfelix-article-content .wp-block-preformatted {
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
}

/* Simplified code highlighting - using CSS variables */
.cahfelix-article-content pre .hljs-comment {
    font-style: italic !important;
}

/* Sidebar */
.cahfelix-trending {
    position: sticky;
    top: 100px;
}

.cahfelix-trending h3 {
    font-size: var(--font-base);
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cahfelix-trending-item {
    display: flex;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid hsl(var(--border));
}

.cahfelix-trending-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.cahfelix-trending-number {
    font-size: 32px;
    font-weight: 700;
    color: hsl(var(--muted-foreground) / 0.3);
    margin-right: 16px;
    line-height: 1;
}

.cahfelix-trending-content h4 {
    font-size: var(--font-base);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 4px;
}

.cahfelix-trending-content h4 a {
    color: hsl(var(--foreground));
    text-decoration: none;
    transition: color 0.2s ease;
}

.cahfelix-trending-content h4 a:hover {
    color: hsl(var(--accent));
}

.cahfelix-trending-content p {
    font-size: 13px;
    color: hsl(var(--muted-foreground));
}

/* Sistema de Paginação Unificado CahFelix */
.cahfelix-pagination {
    margin: 48px 0 32px;
    display: flex;
    justify-content: center;
}

.cahfelix-pagination .page-numbers {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.cahfelix-pagination .page-numbers li {
    margin: 0;
}

.cahfelix-pagination .page-numbers a,
.cahfelix-pagination .page-numbers span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 8px 12px;
    border: var(--border-default);
    border-radius: var(--radius);
    background: hsl(var(--card));
    color: hsl(var(--foreground));
    text-decoration: none;
    font-weight: 500;
    font-size: var(--font-sm);
    transition: all 0.2s ease;
    gap: 6px;
}

/* Hover em todos os elementos da paginação */
.cahfelix-pagination .page-numbers a:hover {
    background: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
    border-color: hsl(var(--accent));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px hsl(var(--accent) / 0.2);
}

/* Página atual */
.cahfelix-pagination .page-numbers .current {
    background: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
    border-color: hsl(var(--accent));
    font-weight: 600;
}

/* Botões de navegação (anterior/próximo) - herdam estilos base */
.cahfelix-pagination .page-numbers .prev,
.cahfelix-pagination .page-numbers .next {
    padding: 8px 16px;
    font-weight: 500;
}

.cahfelix-pagination .page-numbers .prev svg,
.cahfelix-pagination .page-numbers .next svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.cahfelix-pagination .page-numbers .prev:hover svg {
    transform: translateX(-2px);
}

.cahfelix-pagination .page-numbers .next:hover svg {
    transform: translateX(2px);
}

.cahfelix-pagination .page-numbers .dots {
    background: transparent;
    border: none;
    color: hsl(var(--muted-foreground));
    cursor: default;
}

.cahfelix-pagination .page-numbers .dots:hover {
    background: transparent;
    transform: none;
}

/* ===== SEÇÃO RESPONSIVA ===== */

/* Footer do Artigo - Seção do Autor */
.cahfelix-article-footer {
    margin-top: var(--spacing-24);
    padding: 20px 0 16px;
    border-top: var(--border-top);
}

.cahfelix-article-footer .cahfelix-article-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
}

.cahfelix-article-footer .cahfelix-article-author-avatar {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50%;
    flex-shrink: 0;
}

.cahfelix-article-footer .cahfelix-article-author-info h4 {
    font-size: var(--font-base);
    font-weight: 500;
    color: hsl(var(--foreground));
    margin-bottom: 4px;
    line-height: 1.2;
}

.cahfelix-article-footer .cahfelix-article-author-info p {
    font-size: var(--font-sm);
    line-height: 1.4;
    color: hsl(var(--muted-foreground));
    margin: 0;
}

/* Seção "Posts Relacionados" - Engineer Trails Style */
.cahfelix-related-posts {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid hsl(var(--border));
}

.cahfelix-related-posts h3 {
    font-size: 20px;
    font-weight: 500;
    color: hsl(var(--foreground));
    margin-bottom: 8px;
    line-height: 1.2;
}

.cahfelix-related-subtitle {
    font-size: 14px;
    color: hsl(var(--muted-foreground));
    margin-bottom: 20px;
    font-style: italic;
}

/* Navegação entre posts - Reutilizando design system da paginação */
.post-nav {
    margin: 8px 0 20px;
    padding: 16px 0 0;
    border-top: 1px solid hsl(var(--border));
}

.post-nav-inner {
    display: flex;
    gap: 16px;
    max-width: 100%;
    justify-content: space-between;
}

/* Estilo dos links de navegação - Reutilizando estilo da paginação */
.post-nav-prev,
.post-nav-next {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 44px;
    height: 44px;
    padding: 8px 16px;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    background: hsl(var(--card));
    color: hsl(var(--foreground));
    text-decoration: none;
    font-weight: 500;
    font-size: var(--font-sm);
    transition: all 0.2s ease;
}

.post-nav-prev:hover,
.post-nav-next:hover {
    background: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
    border-color: hsl(var(--accent));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px hsl(var(--accent) / 0.2);
    text-decoration: none;
}

.post-nav-prev svg,
.post-nav-next svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.post-nav-prev:hover svg {
    transform: translateX(-2px);
}

.post-nav-next:hover svg {
    transform: translateX(2px);
}



/* Navegação de Posts Mobile */

/* Prevent body scroll when mobile menu open */
body.no-scroll {
    overflow: hidden;
}

/* Grid layout para posts relacionados */
.cahfelix-related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.cahfelix-post-card {
    background: hsl(var(--card));
    border: var(--border-default);
    border-radius: var(--radius);
    padding: var(--spacing-xl);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: fit-content;
    cursor: pointer;
}

.cahfelix-post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px hsl(var(--background) / 0.5);
    border-color: hsl(var(--accent) / 0.5);
    background: hsl(var(--card) / 0.95);
}

/* Meta info dos posts relacionados */
.cahfelix-post-card .cahfelix-post-meta {
    margin-bottom: var(--spacing-sm);
}

.cahfelix-post-card .cahfelix-post-meta span {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Título dos posts relacionados */
.cahfelix-post-card .cahfelix-post-title {
    margin-bottom: var(--spacing-md);
}

.cahfelix-post-card .cahfelix-post-title a {
    font-size: 1.125rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    text-decoration: none;
    line-height: 1.4;
    display: block;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cahfelix-post-card:hover .cahfelix-post-title a {
    color: hsl(var(--accent));
}

/* Excerpt dos posts relacionados */
.cahfelix-post-card .cahfelix-post-excerpt {
    font-size: 0.875rem;
    line-height: 1.6;
    color: hsl(var(--muted-foreground));
    margin-bottom: var(--spacing-md);
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cahfelix-post-card:hover .cahfelix-post-excerpt {
    color: hsl(var(--foreground));
}

/* Footer dos posts relacionados */
.cahfelix-post-card .cahfelix-post-footer {
    margin-top: auto;
    padding-top: var(--spacing-sm);
    border-top: 1px solid hsl(var(--border));
}

.cahfelix-post-card .cahfelix-read-time {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    font-weight: 500;
}

.cahfelix-post-excerpt {
    font-size: 15px;
    line-height: 1.4;
    color: hsl(var(--muted-foreground));
    margin-bottom: 12px;
}

.cahfelix-post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cahfelix-read-time {
    font-size: 13px;
    color: #6b6b6b;
    font-weight: 400;
}

/* Botões estilo Medium com cores Engineer Trails */
.cahfelix-btn {
    background: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: var(--font-sm);
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.cahfelix-btn:hover {
    background: hsl(var(--accent) / 0.9);
    color: hsl(var(--accent-foreground));
    transform: translateY(-1px);
}

.cahfelix-btn-outline {
    background: transparent;
    color: hsl(var(--accent));
    border: 1px solid hsl(var(--accent) / 0.3);
}

.cahfelix-btn-outline:hover {
    background: hsl(var(--accent) / 0.1);
    color: hsl(var(--accent));
    border-color: hsl(var(--accent) / 0.5);
}

/* Tags estilo Medium com cores Engineer Trails */
.cahfelix-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 32px 0 24px 0;
    max-width: 68ch;
    margin-left: auto;
    margin-right: auto;
    padding-top: 24px;
    border-top: 1px solid hsl(var(--border) / 0.3);
    justify-content: center;
}

.cahfelix-tag {
    background: hsl(var(--secondary) / 0.6);
    color: hsl(var(--muted-foreground));
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid hsl(var(--border) / 0.5);
    display: inline-block;
    letter-spacing: 0.01em;
}

.cahfelix-tag:hover {
    background: hsl(var(--accent) / 0.15);
    color: hsl(var(--accent));
    border-color: hsl(var(--accent) / 0.4);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px hsl(var(--accent) / 0.1);
}

/* Tags no single post - sempre visíveis (sem animação) */
.single .cahfelix-tags .cahfelix-tag {
    opacity: 1 !important;
    transform: none !important;
    transition: all 0.2s ease;
}

.single .cahfelix-tags .cahfelix-tag:hover {
    transform: translateY(-1px) !important;
}

/* Tags no footer dos post cards (menores) */
.cahfelix-post-footer .cahfelix-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 0;
}

.cahfelix-post-footer .cahfelix-tag {
    background: hsl(var(--secondary) / 0.5);
    color: hsl(var(--muted-foreground));
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
}

.cahfelix-post-footer .cahfelix-tag:hover {
    background: hsl(var(--accent) / 0.1);
    color: hsl(var(--accent));
}

/* Footer Engineer Trails Style - Replicando design exato */
.engineer-footer {
    width: 100%;
    background: linear-gradient(135deg, hsl(var(--card)), hsl(var(--card) / 0.8), hsl(var(--accent) / 0.05));
    border-top: 1px solid hsl(var(--border) / 0.5);
    margin-top: var(--spacing-3xl);
}

.engineer-footer-container {
    max-width: 56rem;
    margin: 0 auto;
    padding: 4rem var(--spacing-lg);
}

/* Main Footer Grid */
.engineer-footer-grid {
    display: grid;
    gap: 3rem;
    grid-template-columns: 1fr 1fr 1fr;
    margin-bottom: 3rem;
}

/* Brand Section */
.engineer-footer-brand {
    grid-column: 1;
}

.engineer-footer-brand-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.engineer-footer-logo {
    width: 2.5rem;
    height: 2.5rem;
    background: hsl(var(--accent));
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--accent-foreground));
}

.engineer-footer-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin: 0;
    line-height: 1.2;
}

.engineer-footer-title {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin: 0;
    line-height: 1.2;
}

.engineer-footer-description {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
    margin: 0;
}

/* Center Column (Empty) */
.engineer-footer-center {
    grid-column: 2;
}

/* Contact Section */
.engineer-footer-contact {
    grid-column: 3;
}

.engineer-footer-contact-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.engineer-footer-social {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.engineer-footer-social-link {
    color: hsl(var(--muted-foreground));
    transition: all 0.2s ease;
    padding: 0.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.engineer-footer-social-link:hover {
    color: hsl(var(--accent));
    background: hsl(var(--accent) / 0.1);
    transform: scale(1.1);
}

.engineer-footer-social-link svg {
    width: 20px;
    height: 20px;
}

/* Divider */
.engineer-footer-divider {
    border-top: 1px solid hsl(var(--border) / 0.3);
    padding-top: 2rem;
}

/* Bottom Section */
.engineer-footer-bottom {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .engineer-footer-bottom {
        flex-direction: row;
        gap: 1rem;
    }
}

.engineer-footer-made {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.engineer-footer-heart {
    color: #ef4444;
    animation: pulse 2s infinite;
}

.engineer-footer-coffee {
    color: #f59e0b;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.engineer-footer-right-content {
    text-align: center;
}

@media (min-width: 768px) {
    .engineer-footer-right-content {
        text-align: right;
    }
}

.engineer-footer-quote {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground) / 0.7);
    margin: 0 0 0.25rem 0;
    line-height: 1.4;
}

.engineer-footer-copyright {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground) / 0.5);
    margin: 0;
    line-height: 1.4;
}

/* Footer Mobile */

/* Footer - Design limpo e minimalista inspirado no engineer-trails-studio */

/* Links dentro do conteúdo dos artigos */
.cahfelix-article-content a {
    color: hsl(var(--accent));
    text-decoration: none;
}

.cahfelix-article-content a:hover {
    color: hsl(var(--accent) / 0.8);
}

/* Estilos de links dos títulos dos posts definidos na seção principal */

/* Links da navegação */
.cahfelix-nav-links a {
    color: #6b6b6b;
    text-decoration: none;
}

.cahfelix-nav-links a:hover {
    color: #242424;
}

/* Links das tags - removido (duplicado) - estilos principais nas linhas 1816-1863 */

/* Links do trending */
.cahfelix-trending-content a {
    color: hsl(var(--foreground));
    text-decoration: none;
}

.cahfelix-trending-content a:hover {
    color: hsl(var(--accent));
}

/* Sistema de paginação unificado - utiliza apenas .cahfelix-pagination */

/* Correção do avatar para ser redondo */
.cahfelix-author-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 8px;
    display: inline-block;
    vertical-align: middle;
}

.cahfelix-article-author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 12px;
    display: inline-block;
    vertical-align: middle;
}

/* Reset de estilos padrão do Gravatar */
.cahfelix-author-avatar img,
.cahfelix-article-author-avatar img {
    border-radius: 50%;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== LAYOUT ANTERIOR COM CORES ENGINEER TRAILS ===== */

/* Hero Section */
.cahfelix-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--spacing-3xl) var(--spacing-lg);
    background: hsl(var(--background));
}

.cahfelix-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--spacing-lg);
    color: hsl(var(--foreground));
}

.cahfelix-accent {
    color: hsl(var(--accent));
}

.cahfelix-hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: hsl(var(--muted-foreground));
    max-width: 32rem;
    margin: 0 auto var(--spacing-2xl);
    line-height: 1.5;
}

.cahfelix-hero-cta {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    flex-wrap: wrap;
}









.cahfelix-read-more {
    color: hsl(var(--accent));
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.cahfelix-read-more:hover {
    color: hsl(var(--accent) / 0.8);
}

/* CTA Center */
.cahfelix-cta-center {
    text-align: center;
}

/* ===== ENGINEER TRAILS RESPONSIVIDADE ===== */

/* ===== MEDIA QUERIES RESPONSIVAS ===== */

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Movimento reduzido movido para assets/css/animations.css */

/* Tipografia – refinamentos para leitura */
.cahfelix-article-content h1,
.cahfelix-article-content h2,
.cahfelix-article-content h3 {
    text-wrap: balance;
}

.cahfelix-article-content p,
.cahfelix-article-content li,
.cahfelix-article-content blockquote {
    -webkit-hyphens: auto;
    hyphens: auto;
    overflow-wrap: break-word;
}

.cahfelix-article-content a {
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
    -webkit-text-decoration-skip-ink: auto;
    text-decoration-skip-ink: auto;
}

::selection {
    background: hsl(var(--accent) / 0.25);
    color: hsl(var(--foreground));
}

.cahfelix-article-content figure {
    margin: 32px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cahfelix-article-content figure img {
    margin-bottom: 12px;
}

.cahfelix-article-content figcaption {
    font-size: 0.875rem;
    line-height: 1.5;
    color: hsl(var(--muted-foreground));
    text-align: center;
    margin-top: 8px;
    padding: 0 12px;
    font-style: italic;
    max-width: 100%;
}

/* Legenda de imagem alternativa (wp-block-image) */
.cahfelix-article-content .wp-block-image figcaption {
    font-size: 0.875rem;
    line-height: 1.5;
    color: hsl(var(--muted-foreground));
    text-align: center;
    margin-top: 8px;
    font-style: italic;
}

.cahfelix-article-content hr {
    border: none;
    border-top: 1px solid hsl(var(--border));
    margin: 40px 0;
}

.cahfelix-article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--spacing-24) 0;
    font-size: 0.95rem; /* Ligeiramente menor que o texto do artigo (1.0625rem) */
}

.cahfelix-article-content th,
.cahfelix-article-content td {
    border: var(--border-default);
    padding: 12px 16px;
    font-size: inherit; /* Herda do table */
}

.cahfelix-article-content th {
    background: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
    text-align: left;
}

/* Responsive & improved tables inside post content */
.cahfelix-article-content .table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 0;
    border-radius: 0;
    margin: 24px 0;
}

.cahfelix-article-content .table-responsive table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    min-width: 100%; /* responsivo no mobile */
}

.cahfelix-article-content caption {
    caption-side: top;
    margin-bottom: 8px;
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
    text-align: left;
}

.cahfelix-article-content th,
.cahfelix-article-content td {
    vertical-align: top;
}

.cahfelix-article-content th {
    position: static;
    top: auto;
    z-index: auto;
    box-shadow: none;
}

.cahfelix-article-content tbody tr:nth-child(odd) td {
    background: hsl(var(--card));
}

.cahfelix-article-content tbody tr:hover td {
    background: hsl(var(--secondary) / 0.26);
    transition: background-color 0.2s ease;
}

/* Usar divisórias sutis nas linhas, sem grade pesada */
.cahfelix-article-content table th,
.cahfelix-article-content table td {
    border: 0;
    border-bottom: 1px solid hsl(var(--border) / 0.5);
}

/* Borda inferior do header mais sutil */
.cahfelix-article-content thead th,
.cahfelix-article-content thead td {
    border-bottom: 1px solid hsl(var(--border) / 0.2);
}

/* Ajuste específico para Gutenberg Table block */
.cahfelix-article-content .wp-block-table thead {
    border-bottom: 2px solid hsl(var(--border));
}

.cahfelix-article-content td.num,
.cahfelix-article-content th.num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* Mobile Small (640px) */

/* Optional: highlight first column for selected tables only */
.cahfelix-article-content .table-highlight-first-col thead th:first-child,
.cahfelix-article-content .table-highlight-first-col tbody td:first-child,
.cahfelix-article-content .table-highlight-first-col tfoot td:first-child {
    background: hsl(var(--secondary) / 0.22);
    color: hsl(var(--foreground));
    font-weight: 600;
    border-right: 1px solid hsl(var(--border) / 0.5);
    /* Keep bottom divider from base table styles */
}

.cahfelix-article-content .table-highlight-first-col tbody tr:hover td:first-child {
    background: hsl(var(--secondary) / 0.3);
}

/* Compare-style table (opt-in): closer to the reference layout */
.cahfelix-article-content .table-compare {
    border-collapse: collapse; /* merge borders for a crisp grid */
    min-width: 100%;
    width: 100%;
}

.cahfelix-article-content .table-compare th,
.cahfelix-article-content .table-compare td {
    border: 1px solid hsl(var(--border) / 0.55) !important; /* vertical + horizontal dividers */
    padding: 12px 16px; /* ensure consistent density */
}

.cahfelix-article-content .table-compare thead th {
    background: hsl(var(--secondary) / 0.6);
    color: hsl(var(--foreground));
    font-weight: 700;
    text-align: left;
    border-bottom: 2px solid hsl(var(--border)) !important; /* requested 2px */
}

.cahfelix-article-content .table-compare tbody tr:nth-child(odd) td {
    background: hsl(var(--secondary) / 0.16); /* clearer zebra in dark */
}

.cahfelix-article-content .table-compare tbody tr:hover td {
    background: hsl(var(--secondary) / 0.22);
}

/* Works together with .table-highlight-first-col if you want the left column emphasized */

/* Default tables: match first column to default thead background */
.cahfelix-article-content .table-firstcol-like-header tbody td:first-child,
.cahfelix-article-content .table-firstcol-like-header tbody th:first-child,
.cahfelix-article-content .table-firstcol-like-header tfoot td:first-child,
.cahfelix-article-content .table-firstcol-like-header tfoot th:first-child,
.cahfelix-article-content .table-aspect-emphasis tbody td:first-child,
.cahfelix-article-content .table-aspect-emphasis tbody th:first-child,
.cahfelix-article-content .table-aspect-emphasis tfoot td:first-child,
.cahfelix-article-content .table-aspect-emphasis tfoot th:first-child,
.cahfelix-article-content .tabela-especial tbody td:first-child,
.cahfelix-article-content .tabela-especial tbody th:first-child,
.cahfelix-article-content .tabela-especial tfoot td:first-child,
.cahfelix-article-content .tabela-especial tfoot th:first-child {
    background-color: hsl(var(--secondary));
    background-image: linear-gradient(rgba(255,255,255,0.12), rgba(255,255,255,0.12));
    color: hsl(var(--secondary-foreground));
    font-weight: 600;
    border-right: 1px solid hsl(var(--border) / 0.5);
}

/* Compare layout tables: match first column to compare thead background */
.cahfelix-article-content .table-compare.table-firstcol-like-header tbody td:first-child,
.cahfelix-article-content .table-compare.table-firstcol-like-header tbody th:first-child,
.cahfelix-article-content .table-compare.table-firstcol-like-header tfoot td:first-child,
.cahfelix-article-content .table-compare.table-firstcol-like-header tfoot th:first-child,
.cahfelix-article-content .table-compare.table-aspect-emphasis tbody td:first-child,
.cahfelix-article-content .table-compare.table-aspect-emphasis tbody th:first-child,
.cahfelix-article-content .table-compare.table-aspect-emphasis tfoot td:first-child,
.cahfelix-article-content .table-compare.table-aspect-emphasis tfoot th:first-child,
.cahfelix-article-content .tabela-especial table.table-compare tbody td:first-child,
.cahfelix-article-content .tabela-especial table.table-compare tbody th:first-child,
.cahfelix-article-content .tabela-especial table.table-compare tfoot td:first-child,
.cahfelix-article-content .tabela-especial table.table-compare tfoot th:first-child {
    background-color: hsl(var(--secondary) / 0.6);
    background-image: linear-gradient(rgba(255,255,255,0.12), rgba(255,255,255,0.12));
    color: hsl(var(--secondary-foreground));
    border-right: 1px solid hsl(var(--border) / 0.55);
}

/* Preserve emphasis on hover for the first column */
.cahfelix-article-content .table-firstcol-like-header tbody tr:hover td:first-child,
.cahfelix-article-content .table-firstcol-like-header tbody tr:hover th:first-child,
.cahfelix-article-content .table-aspect-emphasis tbody tr:hover td:first-child,
.cahfelix-article-content .table-aspect-emphasis tbody tr:hover th:first-child,
.cahfelix-article-content .tabela-especial tbody tr:hover td:first-child,
.cahfelix-article-content .tabela-especial tbody tr:hover th:first-child {
    background-color: hsl(var(--secondary));
    background-image: linear-gradient(rgba(255,255,255,0.12), rgba(255,255,255,0.12));
}
.cahfelix-article-content .table-compare.table-firstcol-like-header tbody tr:hover td:first-child,
.cahfelix-article-content .table-compare.table-firstcol-like-header tbody tr:hover th:first-child,
.cahfelix-article-content .table-compare.table-aspect-emphasis tbody tr:hover td:first-child,
.cahfelix-article-content .table-compare.table-aspect-emphasis tbody tr:hover th:first-child,
.cahfelix-article-content .tabela-especial table.table-compare tbody tr:hover td:first-child,
.cahfelix-article-content .tabela-especial table.table-compare tbody tr:hover th:first-child {
    background-color: hsl(var(--secondary) / 0.6);
    background-image: linear-gradient(rgba(255,255,255,0.12), rgba(255,255,255,0.12));
}

/* Disable zebra striping for special tables (except first column) */
.cahfelix-article-content .tabela-especial tbody tr td:not(:first-child),
.cahfelix-article-content .tabela-especial tbody tr th:not(:first-child),
.cahfelix-article-content .tabela-especial table.table-compare tbody tr td:not(:first-child),
.cahfelix-article-content .tabela-especial table.table-compare tbody tr th:not(:first-child),
.cahfelix-article-content .tabela-especial tbody tr:nth-child(odd) td:not(:first-child),
.cahfelix-article-content .tabela-especial tbody tr:nth-child(odd) th:not(:first-child),
.cahfelix-article-content .tabela-especial table.table-compare tbody tr:nth-child(odd) td:not(:first-child),
.cahfelix-article-content .tabela-especial table.table-compare tbody tr:nth-child(odd) th:not(:first-child) {
    background: transparent !important;
}

/* Keep non-first columns neutral on hover as well */
.cahfelix-article-content .tabela-especial tbody tr:hover td:not(:first-child),
.cahfelix-article-content .tabela-especial tbody tr:hover th:not(:first-child),
.cahfelix-article-content .tabela-especial table.table-compare tbody tr:hover td:not(:first-child),
.cahfelix-article-content .tabela-especial table.table-compare tbody tr:hover th:not(:first-child) {
    background: transparent !important;
}

/* Hard-disable any zebra/background on non-first columns only */
.cahfelix-article-content .tabela-especial td:not(:first-child),
.cahfelix-article-content .table-compare.tabela-especial td:not(:first-child) {
    background: transparent !important;
}

/* Overrides: tabela-especial - invert thead/first column; no zebra */
.cahfelix-article-content .tabela-especial thead th,
.cahfelix-article-content .tabela-especial thead td {
    background-color: hsl(var(--secondary));
    background-image: none;
	color: hsl(var(--secondary-foreground));
}

.cahfelix-article-content .tabela-especial table.table-compare thead th,
.cahfelix-article-content .tabela-especial table.table-compare thead td {
    background-color: hsl(var(--secondary) / 0.6);
    background-image: none;
	color: hsl(var(--secondary-foreground));
}

/* First column base (no overlay), including hover */
.cahfelix-article-content .tabela-especial tbody td:first-child,
.cahfelix-article-content .tabela-especial tbody th:first-child,
.cahfelix-article-content .tabela-especial tfoot td:first-child,
.cahfelix-article-content .tabela-especial tfoot th:first-child,
.cahfelix-article-content .tabela-especial tbody tr:hover td:first-child,
.cahfelix-article-content .tabela-especial tbody tr:hover th:first-child {
    background-color: hsl(var(--secondary));
    background-image: none !important;
}

.cahfelix-article-content .tabela-especial table.table-compare tbody td:first-child,
.cahfelix-article-content .tabela-especial table.table-compare tbody th:first-child,
.cahfelix-article-content .tabela-especial table.table-compare tfoot td:first-child,
.cahfelix-article-content .tabela-especial table.table-compare tfoot th:first-child,
.cahfelix-article-content .tabela-especial table.table-compare tbody tr:hover td:first-child,
.cahfelix-article-content .tabela-especial table.table-compare tbody tr:hover th:first-child {
    background-color: hsl(var(--secondary) / 0.6);
    background-image: none !important;
}

/* Ensure non-first columns stay neutral (no zebra, no hover) */
.cahfelix-article-content .tabela-especial tbody tr td:not(:first-child),
.cahfelix-article-content .tabela-especial tbody tr th:not(:first-child),
.cahfelix-article-content .tabela-especial table.table-compare tbody tr td:not(:first-child),
.cahfelix-article-content .tabela-especial table.table-compare tbody tr th:not(:first-child),
.cahfelix-article-content .tabela-especial tbody tr:nth-child(odd) td:not(:first-child),
.cahfelix-article-content .tabela-especial tbody tr:nth-child(odd) th:not(:first-child),
.cahfelix-article-content .tabela-especial table.table-compare tbody tr:nth-child(odd) td:not(:first-child),
.cahfelix-article-content .tabela-especial table.table-compare tbody tr:nth-child(odd) th:not(:first-child),
.cahfelix-article-content .tabela-especial tbody tr:hover td:not(:first-child),
.cahfelix-article-content .tabela-especial tbody tr:hover th:not(:first-child),
.cahfelix-article-content .tabela-especial table.table-compare tbody tr:hover td:not(:first-child),
.cahfelix-article-content .tabela-especial table.table-compare tbody tr:hover th:not(:first-child) {
	background: transparent !important;
}

/* Equal height for related posts cards */
.cahfelix-related-posts-grid {
	align-items: stretch;
}

.cahfelix-related-posts-grid .cahfelix-post-card {
	display: flex;
	flex-direction: column;
	height: 100%;
}

/* Botões de Compartilhamento */
.cahfelix-social-share {
    margin: 32px 0 24px 0;
    padding: 24px 0;
    border-top: 1px solid hsl(var(--border));
}

.cahfelix-social-share h4 {
    font-size: var(--font-base);
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    margin-bottom: 16px;
    text-align: center;
}

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

.cahfelix-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 50%;
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.cahfelix-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px hsl(var(--background) / 0.4);
    text-decoration: none;
}

.cahfelix-share-btn svg {
    flex-shrink: 0;
}

/* Cores específicas para cada rede social */
.cahfelix-share-twitter:hover {
    background: #1da1f2;
    border-color: #1da1f2;
    color: white;
}

.cahfelix-share-facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: white;
}

.cahfelix-share-linkedin:hover {
    background: #0a66c2;
    border-color: #0a66c2;
    color: white;
}

.cahfelix-share-whatsapp:hover {
    background: #25d366;
    border-color: #25d366;
    color: white;
}

.cahfelix-share-copy:hover {
    background: hsl(var(--accent));
    border-color: hsl(var(--accent));
    color: white;
}

/* Tabelas e Compartilhamento Mobile (640px) */

/* ==========================================================================
   MEDIA QUERIES SIMPLIFICADAS
   ========================================================================== */

/* Tablet e Menu Mobile (1024px e abaixo) */
@media (max-width: 1024px) {
    /* Container responsivo */
    .cahfelix-container-wide {
        max-width: 56rem;
        padding: 0 var(--spacing-lg);
    }



    .cahfelix-container {
        padding: 0 var(--spacing-lg);
    }

    /* Search Form Tablet */
    .cahfelix-search-form {
        margin-bottom: 20px;
    }

    .cahfelix-search-wrapper {
        gap: 10px;
    }

    .cahfelix-search-input {
        padding: 11px 14px;
        font-size: 0.95rem;
    }

    .cahfelix-search-button {
        padding: 11px 14px;
    }

    /* Header e Navegação Mobile */
    .engineer-nav-links {
        display: none !important;
    }

    .engineer-mobile-toggle {
        display: flex !important;
        z-index: 1000;
    }

    .engineer-mobile-menu {
        display: none;
    }

    .engineer-nav {
        position: relative;
        overflow: visible;
    }

    /* Hero Section Responsivo */
    .cahfelix-blog-hero {
        padding: var(--spacing-2xl) 0;
        margin-bottom: var(--spacing-xl);
    }

    .cahfelix-blog-title {
        font-size: 2.5rem;
    }

    .cahfelix-blog-subtitle {
        font-size: var(--font-base);
        padding: 0 var(--spacing-md);
    }

    /* Layout Principal */
    .cahfelix-posts-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .cahfelix-main-content {
        gap: var(--spacing-xl);
    }

    .cahfelix-article {
        padding: var(--spacing-2xl) var(--spacing-lg);
        max-width: 56rem;
    }

    /* Engineer Trails */
    .engineer-container {
        padding: 0 var(--spacing-md);
    }

    .engineer-hero {
        padding: var(--spacing-2xl) var(--spacing-md);
    }

    .engineer-posts-grid {
        gap: var(--spacing-lg);
    }
}



/* Mobile (768px e abaixo) */
@media (max-width: 768px) {
    /* Prevenir overflow horizontal */
    html, body {
        overflow-x: hidden;
        max-width: 100%;
    }





    * {
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Variáveis CSS Mobile */
    :root {
        --spacing-3xl: 2.5rem;
        --spacing-2xl: 2rem;
    }

    /* Body e Header */
    body {
        padding-top: 60px;
    }

    .engineer-header {
        height: 60px;
    }

    .engineer-nav {
        height: 60px;
        padding: var(--spacing-sm) var(--spacing-lg);
    }

    /* Containers */
    .cahfelix-container,
    .cahfelix-container-wide {
        padding: 0 var(--spacing-md);
        max-width: 100%;
        overflow-x: hidden;
    }

    /* Hero Section Mobile */
    .cahfelix-blog-hero {
        padding: var(--spacing-xl) 0;
        margin-bottom: var(--spacing-lg);
    }

    .cahfelix-hero-content {
        padding: 0 var(--spacing-md);
    }

    /* Search Form Mobile */
    .cahfelix-search-form {
        margin-bottom: 16px;
    }

    .cahfelix-search-wrapper {
        gap: 8px;
    }

    .cahfelix-search-input {
        font-size: 16px;
        padding: 10px 12px;
    }

    .cahfelix-search-button {
        padding: 10px 12px;
        flex-shrink: 0;
    }

    .cahfelix-blog-title {
        font-size: 2rem;
        margin-bottom: var(--spacing-md);
    }

    .cahfelix-blog-subtitle {
        font-size: var(--font-sm);
        line-height: 1.5;
    }

    /* Layout Principal */
    .cahfelix-main-content {
        gap: var(--spacing-lg);
    }

    .cahfelix-main-content .cahfelix-post-card {
        padding: var(--spacing-md);
        flex-direction: column;
        gap: 16px;
    }

    .cahfelix-main-content .cahfelix-post-title {
        font-size: 1.125rem;
    }

    /* Imagem Destacada Mobile */
    .cahfelix-featured-image {
        order: -1;
        width: 100%;
        height: 200px;
        border-radius: 6px;
    }

    /* Artigos */
    .cahfelix-article {
        padding: var(--spacing-2xl) var(--spacing-md);
        max-width: 100%;
    }

    .cahfelix-article-title {
        font-size: 32px;
        line-height: 38px;
        letter-spacing: -0.014em;
        margin-bottom: 24px;
    }

    .cahfelix-article-header {
        margin-bottom: 24px;
    }

    .cahfelix-article-subtitle {
        font-size: 18px;
        line-height: 26px;
        margin-bottom: 24px;
    }

    .cahfelix-article-content {
        font-size: 18px;
        line-height: 28px;
        letter-spacing: -0.003em;
    }

    .cahfelix-article-content h2 {
        font-size: 20px;
        line-height: 24px;
        margin-top: 1.2em;
        margin-bottom: 0.67em;
    }

    .cahfelix-article-content h3 {
        font-size: 20px;
        line-height: 26px;
        margin-top: 1.25em;
        margin-bottom: 0.75em;
    }

    /* Código Responsivo */
    .cahfelix-article-content pre {
        padding: 20px 16px !important;
        margin: 24px 0 !important;
        border-radius: 8px !important;
        font-size: var(--font-sm) !important;
        overflow-x: auto !important;
    }

    .cahfelix-article-content code {
        font-size: var(--font-sm);
        padding: 2px 4px;
    }

    /* Meta Info Responsivo */
    .cahfelix-article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 12px 0;
    }

    .cahfelix-article-author {
        margin-bottom: 0;
    }

    .cahfelix-nav-links {
        display: none;
    }

    /* Featured Image do Artigo Mobile */
    .cahfelix-article-featured-image {
        margin: var(--spacing-xl) 0;
        border-radius: 6px;
    }

    /* Imagens Responsivas */
    .cahfelix-article-content img {
        margin: 24px 0;
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    /* Paginação Responsiva */
    .cahfelix-pagination {
        margin: 32px 0 24px;
    }

    .cahfelix-pagination .page-numbers {
        gap: 4px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .cahfelix-pagination .page-numbers a,
    .cahfelix-pagination .page-numbers span {
        min-width: 40px;
        height: 40px;
        padding: 6px 10px;
        font-size: 13px;
    }

    .cahfelix-pagination .page-numbers .prev,
    .cahfelix-pagination .page-numbers .next {
        padding: 6px 12px;
        font-size: 13px;
    }

    .cahfelix-pagination .page-numbers svg {
        width: 14px;
        height: 14px;
    }

    /* Navegação de Posts */
    .post-nav {
        margin: 6px 0 16px;
        padding: 12px 0 0;
    }

    .post-nav-inner {
        flex-direction: column;
        gap: 8px;
    }

    .post-nav-prev,
    .post-nav-next {
        min-width: 40px;
        height: 40px;
        padding: 6px 12px;
        font-size: 13px;
    }

    .post-nav-prev svg,
    .post-nav-next svg {
        width: 14px;
        height: 14px;
    }

    /* Footer Responsivo */
    .engineer-footer-container {
        padding: 3rem var(--spacing-md);
    }

    .engineer-footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .engineer-footer-brand,
    .engineer-footer-center,
    .engineer-footer-contact {
        grid-column: 1;
    }

    .engineer-footer-brand-header {
        justify-content: center;
    }

    .engineer-footer-social {
        justify-content: center;
    }

    .engineer-footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .engineer-footer-right-content {
        text-align: center;
    }

    /* Tabelas Responsivas */
    .cahfelix-article-content table {
        font-size: 0.9rem;
    }

    .cahfelix-article-content th,
    .cahfelix-article-content td {
        padding: 10px 12px;
    }

    /* Tabelas de Comparação */
    .cahfelix-article-content .table-compare {
        min-width: 100%;
        width: 100%;
    }

    .cahfelix-article-content .table-compare th,
    .cahfelix-article-content .table-compare td {
        padding: 10px 12px;
    }

    /* Botões de Compartilhamento Mobile */
    .cahfelix-social-share {
        margin: 24px 0 16px 0;
        padding: 16px 0;
    }

    .cahfelix-social-share h4 {
        font-size: var(--font-sm);
        margin-bottom: 12px;
    }

    .cahfelix-share-buttons {
        gap: 12px;
    }

    /* Tags Responsivas */
    .cahfelix-tags {
        margin: 24px 0 20px 0;
        padding-top: 20px;
        gap: 4px;
    }

    .cahfelix-tag {
        font-size: 11px;
        padding: 3px 10px;
        border-radius: 14px;
    }

    .cahfelix-share-btn {
        width: 44px;
        height: 44px;
    }

    .cahfelix-share-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
 * 🌞/🌙 Theme Toggle Button Styles
 * ═══════════════════════════════════════════════════════════════════════════════
 */

#cahfelix-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    background: hsl(var(--card));
    color: hsl(var(--foreground));
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.25rem;
    padding: 0;
    margin: 0;
}

#cahfelix-theme-toggle:hover {
    background: hsl(var(--secondary));
    border-color: hsl(var(--accent));
    transform: scale(1.05);
}

#cahfelix-theme-toggle:active {
    transform: scale(0.95);
}

.theme-toggle-icon {
    display: inline-block;
    position: relative;
    width: 16px;
    height: 16px;
}

/* SVG Icons */
.theme-toggle-icon .sun-icon,
.theme-toggle-icon .moon-icon {
    position: absolute;
    top: 0;
    left: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* SVG Icons - controlled by JavaScript */
.theme-toggle-icon .sun-icon,
.theme-toggle-icon .moon-icon {
    width: 16px;
    height: 16px;
}

/* Hover effects - icon rotation */
#cahfelix-theme-toggle:hover .theme-toggle-icon,
#cahfelix-theme-toggle-mobile:hover .theme-toggle-icon {
    transform: rotate(20deg);
}

/* Header Integration */
#cahfelix-theme-toggle {
    margin-left: 1rem;
}

/* Mobile Theme Toggle */
#cahfelix-theme-toggle-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    background: hsl(var(--card));
    color: hsl(var(--foreground));
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.125rem;
    padding: 0;
    margin: 0;
}

#cahfelix-theme-toggle-mobile:hover {
    background: hsl(var(--secondary));
    border-color: hsl(var(--accent));
    transform: scale(1.05);
}

#cahfelix-theme-toggle-mobile:active {
    transform: scale(0.95);
}

#cahfelix-theme-toggle-mobile:hover .theme-toggle-icon {
    transform: rotate(20deg);
}

.mobile-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    background: hsl(var(--card));
    color: hsl(var(--foreground));
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.125rem;
    padding: 0;
    margin: 0;
}

.mobile-theme-toggle:hover {
    background: hsl(var(--secondary));
    border-color: hsl(var(--accent));
    transform: scale(1.05);
}

.mobile-theme-toggle:active {
    transform: scale(0.95);
}

.mobile-theme-label {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    #cahfelix-theme-toggle {
        display: none; /* Hide desktop button on mobile */
    }
}

@media (min-width: 769px) {
    .mobile-theme-toggle {
        display: none; /* Hide mobile toggle on desktop */
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════
 * 🌞/🌙 Theme Selector Fixed - Bottom Right
 * ═══════════════════════════════════════════════════════════════════════════════
 */

.cahfelix-theme-selector {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    gap: 8px;
    z-index: 999;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 8px;
    box-shadow: 0 4px 12px hsl(var(--background) / 0.3);
}

.cahfelix-theme-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: calc(var(--radius) - 2px);
    background: transparent;
    color: hsl(var(--foreground));
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
}

.cahfelix-theme-option:hover {
    background: hsl(var(--secondary));
    border-color: hsl(var(--accent));
}

.cahfelix-theme-option.active {
    background: hsl(var(--accent));
    color: hsl(var(--accent-foreground));
    border-color: hsl(var(--accent));
}

.cahfelix-theme-option-icon {
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
}

.cahfelix-theme-option-icon svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cahfelix-theme-option:hover .cahfelix-theme-option-icon svg {
    transform: scale(1.1);
}

.cahfelix-theme-option-label {
    display: none;
}

/* Mobile - mostrar label */
@media (max-width: 768px) {
    .cahfelix-theme-selector {
        bottom: 16px;
        right: 16px;
        gap: 6px;
        padding: 6px;
    }

    .cahfelix-theme-option {
        padding: 6px 10px;
        font-size: 0.8125rem;
    }

    .cahfelix-theme-option-label {
        display: inline;
    }
}

/* Desktop - esconder label */
@media (min-width: 769px) {
    .cahfelix-theme-option-label {
        display: none;
    }
}

