
/* Bilingual PT/EN Visibility Rules */
html[data-lang="pt"] [data-lang="en"] {
  display: none !important;
}
html[data-lang="en"] [data-lang="pt"] {
  display: none !important;
}

/* Language Switcher in Header */
.lang-switch-container {
  display: inline-flex;
  align-items: center;
  background: #162035;
  border: 1px solid #233252;
  border-radius: 20px;
  padding: 2px;
  margin-left: 6px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.lang-btn:hover {
  color: #ffffff;
}

.lang-btn.active {
  background: var(--accent-cyan);
  color: #000000 !important;
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.4);
}
/* 4U.IA.BR Tech Blog Stylesheet */
:root {
  --bg-color: #0b0f19;
  --bg-surface: #121929;
  --bg-card: #162035;
  --bg-card-hover: #1c2944;
  --border-color: #233252;
  --border-glow: rgba(6, 182, 212, 0.3);
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-purple: #8b5cf6;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: #38bdf8;
}

.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.content-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.2rem;
}

.brand-icon {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.brand-text .accent {
  color: var(--accent-cyan);
}

.badge-tag {
  background: #1e293b;
  color: var(--accent-amber);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(245, 158, 11, 0.2);
  letter-spacing: 0.05em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-item {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-item:hover, .nav-item.active {
  color: var(--text-main);
}

.nav-btn {
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-cyan) !important;
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}

.nav-btn:hover {
  background: var(--accent-cyan);
  color: #000 !important;
}

.icon-btn {
  font-size: 1.25rem;
}

/* Hero Section */
.hero-section {
  padding: 64px 0 48px;
  background: radial-gradient(circle at 50% 0%, rgba(6, 182, 212, 0.08), transparent 70%);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.hero-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1); }
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-cyan), #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.15rem;
  margin-bottom: 32px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 1.7rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-main);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Posts Grid */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 48px 0 24px;
}

.section-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
}

.text-accent {
  color: var(--accent-cyan);
}

.article-count {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-dim);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 64px;
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 10px 30px -10px rgba(6, 182, 212, 0.15);
  background: var(--bg-card-hover);
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.category-pill {
  background: rgba(6, 182, 212, 0.12);
  color: var(--accent-cyan);
  padding: 3px 9px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 12px;
}

.card-title a {
  color: var(--text-main);
}

.card-title a:hover {
  color: var(--accent-cyan);
}

.card-excerpt {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 20px;
  flex-grow: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 14px;
}

.tags-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.read-more {
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Post Article Single */
.post-header {
  padding: 56px 0 36px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
}

.post-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.back-link {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.post-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.post-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 42px;
  height: 42px;
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.author-name {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
}

.post-date {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.copy-link-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.copy-link-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--text-main);
}

.post-body {
  padding: 48px 24px 64px;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #cbd5e1;
}

.post-body h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 40px 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
}

.post-body h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 32px 0 14px;
}

.post-body p {
  margin-bottom: 24px;
}

.post-body ul, .post-body ol {
  margin: 0 0 24px 24px;
}

.post-body li {
  margin-bottom: 8px;
}

.post-body blockquote {
  border-left: 4px solid var(--accent-cyan);
  background: rgba(6, 182, 212, 0.05);
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #94a3b8;
}

.post-body pre, .post-body code {
  font-family: var(--font-mono);
}

.post-body :not(pre) > code {
  background: #1e293b;
  color: var(--accent-amber);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

.post-body pre {
  background: #0f172a;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  overflow-x: auto;
  margin: 24px 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.post-cta-box {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(16, 185, 129, 0.05));
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 12px;
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 48px 0;
}

.cta-icon {
  font-size: 2.5rem;
  color: var(--accent-cyan);
}

.cta-content h3 {
  font-size: 1.4rem;
  margin: 0 0 6px;
  color: var(--text-main);
}

.cta-content p {
  color: var(--text-muted);
  margin: 0 0 16px;
}

.cta-btn {
  display: inline-block;
  background: var(--accent-cyan);
  color: #000 !important;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 6px;
}

.cta-btn:hover {
  background: #38bdf8;
}

/* Page Single */
.page-container {
  padding: 56px 24px 80px;
}

.page-title {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
}

.page-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #cbd5e1;
}

/* Footer */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 48px 0 24px;
  margin-top: auto;
}

.footer-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-bio {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 12px;
  max-width: 380px;
}

.footer-col h4 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

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

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

.footer-socials {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  font-size: 0.85rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-badge {
  color: var(--accent-emerald);
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.1rem; }
  .post-title { font-size: 1.8rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .site-nav .nav-btn { display: none; }
}

/* Social Pills Grid in Footer */
.social-pills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #162035;
  border: 1px solid #233252;
  color: #cbd5e1 !important;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.social-pill i {
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.social-pill:hover {
  transform: translateY(-2px);
  color: #ffffff !important;
}

.social-pill:hover i {
  transform: scale(1.15);
}

.social-pill.linkedin:hover {
  background: #0a66c2;
  border-color: #0a66c2;
}

.social-pill.instagram:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  border-color: #dc2743;
}

.social-pill.youtube:hover {
  background: #ff0000;
  border-color: #ff0000;
}

.social-pill.x-twitter:hover {
  background: #000000;
  border-color: #ffffff;
}

.social-pill.github:hover {
  background: #24292e;
  border-color: #6e5494;
}

.social-pill.facebook:hover {
  background: #1877f2;
  border-color: #1877f2;
}

.social-pill.alternativeto:hover {
  background: #00a8ff;
  border-color: #00a8ff;
  color: #000 !important;
}

.social-pill.portal:hover {
  background: #06b6d4;
  border-color: #06b6d4;
  color: #000 !important;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.footer-links a i {
  color: var(--accent-cyan);
  font-size: 0.8rem;
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.75rem;
  color: var(--accent-emerald);
  font-family: var(--font-mono);
}

.status-indicator {
  width: 6px;
  height: 6px;
  background: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-emerald);
}

.footer-badges {
  display: flex;
  gap: 16px;
}

/* Category Filter Bar */
.section-desc {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-top: 4px;
}

.category-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 32px;
  scrollbar-width: thin;
}

.filter-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--text-main);
}

.filter-btn.active {
  background: rgba(6, 182, 212, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  font-weight: 600;
}
