/* ==========================================================================
   VELLUM LENS — MASTER BLOG DESIGN SYSTEM & HIGH-END UI/UX ENGINE
   Aesthetic: Dark, cosmic, futuristic, clean, Vercel/Linear-inspired
   Main colors: #03050C (bg), #8B5CF6 (purple), #22D3EE (cyan), #3B82F6 (blue)
   ========================================================================== */

/* ─── GOOGLE FONTS ──────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=Sora:wght@400;600;700;800&display=swap');

/* ─── DESIGN TOKENS (CSS VARIABLES) ─────────────────────────────────── */
:root {
  /* Backgrounds */
  --color-bg: #03050C;
  --color-bg-surface: #080B19;
  --color-bg-surface-hover: #0E132B;
  --color-bg-surface-elevated: #11162B;
  --color-bg-card: rgba(8, 11, 25, 0.65);
  --color-bg-glass: rgba(3, 5, 12, 0.78);

  /* Brand Accents */
  --color-primary: #8B5CF6; /* Purple */
  --color-primary-hover: #A78BFA;
  --color-primary-glow: rgba(139, 92, 246, 0.25);
  
  --color-secondary: #22D3EE; /* Cyan */
  --color-secondary-hover: #67E8F9;
  --color-secondary-glow: rgba(34, 211, 238, 0.25);

  --color-blue: #3B82F6;

  /* Gradients */
  --accent-gradient: linear-gradient(135deg, #8B5CF6 0%, #3B82F6 50%, #22D3EE 100%);
  --accent-gradient-hover: linear-gradient(135deg, #A78BFA 0%, #60A5FA 50%, #38BDF8 100%);
  --card-border-gradient: linear-gradient(135deg, rgba(139, 92, 246, 0.35) 0%, rgba(34, 211, 238, 0.2) 100%);

  /* Typography */
  --font-display: 'Sora', sans-serif;
  --font-sans: 'Plus Jakarta Sans', sans-serif;

  /* Text Colors */
  --color-text-main: #FFFFFF;
  --color-text-body: #E2E8F0;
  --color-text-secondary: #94A3B8;
  --color-text-muted: #64748B;
  --color-text-dark: #475569;

  /* Borders & Shadows */
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-hover: rgba(139, 92, 246, 0.45);
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  --card-shadow-hover: 0 20px 50px rgba(0, 0, 0, 0.75), 0 0 35px rgba(139, 92, 246, 0.25);

  /* Layout */
  --container-max: 1200px;
  --article-max: 820px;
}

/* ─── RESET & BASE ──────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text-body);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--color-bg);
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  position: relative;
  z-index: 2;
}

/* ─── READING PROGRESS BAR ─────────────────────────────────────────── */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--accent-gradient);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.9);
  z-index: 10000;
  transition: width 0.1s linear;
}

/* ─── HEADER NAVBAR (EXACT FROM OFICIAL.HTML) ────────────────────────── */
.header-nav, .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 76px;
  z-index: 1000;
  background: rgba(3, 5, 12, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.header-nav.scrolled, .site-header.scrolled {
  background: rgba(3, 5, 12, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
}

.logo-svg {
  display: block;
  height: 36px;
  width: auto;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-wrapper:hover .logo-svg {
  transform: scale(1.03);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: #FFFFFF;
}

.nav-link.active {
  color: #22D3EE;
}

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

/* Mobile Menu Button */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-text-main);
  border-radius: 9px;
  transition: all 0.3s ease;
}

/* ─── LIQUID FILL BUTTON ENGINE (ANIMATED FLUID CTA) ─────────────────── */
@keyframes borderTurn {
  0% { transform: rotate(0); }
  to { transform: rotate(360deg); }
}

@keyframes waveFloat {
  0% { transform: translateX(0) translateY(0); }
  25% { transform: translateX(-5px) translateY(-3px); }
  50% { transform: translateX(0) translateY(-5px); }
  75% { transform: translateX(5px) translateY(-3px); }
  100% { transform: translateX(0) translateY(0); }
}

.liq-btn-wrapper, .btn-liquid-wrapper {
  isolation: isolate;
  overflow: hidden;
  border-radius: 12px;
  position: relative;
  width: fit-content;
  display: inline-block;
  --animation-speed: 3s;
  box-shadow: 0 4px 20px -2px rgba(168, 85, 247, 0.45);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.liq-btn-wrapper:hover, .btn-liquid-wrapper:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(168, 85, 247, 0.65), 0 0 45px rgba(192, 132, 252, 0.35);
}

.liq-mask-layer-1, .liq-mask-layer-2,
.mask-layer-1, .mask-layer-2 {
  opacity: 1;
}

.liq-mask-layer-1, .liq-animated-border,
.mask-layer-1, .animated-border {
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  z-index: 1;
}

.liq-mask-layer-1:before, .liq-animated-border:before,
.mask-layer-1:before, .animated-border:before {
  content: "";
  float: left;
  padding-top: 100%;
}

.liq-mask-layer-1:after, .liq-animated-border:after,
.mask-layer-1:after, .animated-border:after {
  clear: both;
  content: "";
  display: block;
}

.liq-mask-layer-1, .mask-layer-1 {
  opacity: 0;
  pointer-events: none;
  transition: 1s ease opacity;
}

.liq-mask-layer-1 *, .mask-layer-1 * {
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

.liq-animated-border, .liq-blur-layer, .liq-svg-container,
.animated-border, .blur-layer, .svg-container {
  animation: borderTurn var(--animation-speed) infinite linear;
  background-image: conic-gradient(from 0 at 50% 50%,
      #a855f7 0deg,
      rgba(168, 85, 247, 0) 60deg,
      rgba(192, 132, 252, 0) 300deg,
      #c084fc 360deg);
  border-radius: 9999px;
  opacity: 1;
}

.liq-blur-layer, .blur-layer {
  filter: blur(10px);
}

.liq-svg-mask, .svg-mask {
  padding: 2px;
}

.liq-svg-container, .svg-container {
  border-radius: 9999px;
}

.liq-btn-inner, .btn-inner {
  position: relative;
  z-index: 2;
  background: linear-gradient(225deg, rgba(168, 85, 247, 0.30) 5%, #18092e 45%, #0f031d 75%);
  border: 1px solid rgba(168, 85, 247, 0.5);
  box-shadow: inset 0 0 15px rgba(168, 85, 247, 0.25);
  border-radius: 11px;
  margin: 1.5px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.liq-btn-wrapper:hover .liq-btn-inner,
.btn-liquid-wrapper:hover .btn-inner {
  background: linear-gradient(225deg, rgba(168, 85, 247, 0.40) 5%, #220d3f 45%, #140526 75%);
  border-color: rgba(192, 132, 252, 0.7);
  box-shadow: inset 0 0 25px rgba(168, 85, 247, 0.35), 0 0 25px rgba(168, 85, 247, 0.3);
}

.liq-liquid-layer, .liquid-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 11px;
  pointer-events: none;
}

.liq-liquid-wave, .liquid-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 100%;
  animation: waveFloat 3s ease-in-out infinite;
}

.liq-liquid-wave svg, .liquid-wave svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.65;
}

.liq-btn-text, .btn-text {
  position: relative;
  z-index: 3;
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-weight: 800;
  text-shadow: 0 0 14px rgba(168, 85, 247, 0.8), 0 2px 4px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
}

.liq-btn-subtext, .btn-subtext {
  position: relative;
  z-index: 3;
  color: #d8b4fe;
  font-family: var(--font-sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: -6px;
  text-shadow: 0 0 8px rgba(168, 85, 247, 0.6);
  white-space: nowrap;
}

/* ─── BLOG HERO SECTION ──────────────────────────────────────────────── */
.blog-hero {
  position: relative;
  padding: 130px 0 45px;
  overflow: hidden;
  z-index: 2;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
}

.hero-text {
  max-width: 680px;
}

@keyframes badgeFloat {
  0% {
    transform: translateY(0px);
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.2);
  }
  50% {
    transform: translateY(-6px);
    box-shadow: 0 0 25px rgba(34, 211, 238, 0.45);
  }
  100% {
    transform: translateY(0px);
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.2);
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: var(--color-secondary);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: badgeFloat 3.5s infinite ease-in-out;
  transition: all 0.3s ease;
}

.hero-badge:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.55);
  border-color: rgba(34, 211, 238, 0.7);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  margin-bottom: 16px;
}

.hero-title .gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.02rem, 1.8vw, 1.15rem);
  color: var(--color-text-secondary);
  line-height: 1.65;
}

/* Hero Mascot Lens (340px) */
.hero-mascot-wrapper {
  position: relative;
  width: 380px;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-mascot-glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.45) 0%, rgba(34, 211, 238, 0.25) 45%, transparent 70%);
  filter: blur(40px);
  z-index: 0;
  animation: pulseGlow 4s infinite alternate ease-in-out;
}

.hero-mascot {
  position: relative;
  z-index: 1;
  width: 340px;
  height: auto;
  animation: floatMascot 4s infinite ease-in-out;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 30px rgba(34, 211, 238, 0.3));
}

@keyframes floatMascot {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(1.2deg); }
}

@keyframes pulseGlow {
  0% { opacity: 0.6; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1.05); }
}

/* ─── FILTER SECTION ─────────────────────────────────────────────────── */
.filter-section {
  position: relative;
  z-index: 2;
  margin-bottom: 35px;
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 8px 12px;
  background: rgba(8, 11, 25, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  width: fit-content;
}

.filter-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 8px 16px;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.filter-tab:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.05);
}

.filter-tab.active {
  color: #22D3EE;
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.25);
}

.search-box {
  position: relative;
  min-width: 240px;
}

.search-box input {
  width: 100%;
  padding: 9px 16px 9px 38px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  outline: none;
  transition: all 0.25s ease;
}

.search-box input:focus {
  border-color: #8B5CF6;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.35);
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  stroke: var(--color-text-muted);
  pointer-events: none;
}

/* ─── POSTS GRID & BIDIRECTIONAL SCROLL REVEAL ───────────────────────── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 70px;
  position: relative;
  z-index: 2;
}

/* Bidirectional Scroll Reveal Animation — Ultra Soft & Elegant */
.post-card.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px) scale(0.975);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease,
              box-shadow 0.45s ease;
  will-change: opacity, transform;
}

.post-card.reveal-on-scroll.is-revealed,
.post-card.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Stagger delay on initial load */
.posts-grid .post-card:nth-child(1) { transition-delay: 0.03s; }
.posts-grid .post-card:nth-child(2) { transition-delay: 0.06s; }
.posts-grid .post-card:nth-child(3) { transition-delay: 0.09s; }
.posts-grid .post-card:nth-child(4) { transition-delay: 0.12s; }
.posts-grid .post-card:nth-child(5) { transition-delay: 0.15s; }
.posts-grid .post-card:nth-child(6) { transition-delay: 0.18s; }

.post-card {
  background: var(--color-bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(139, 92, 246, 0.16);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--card-shadow);
  position: relative;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease,
              box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.post-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.8), rgba(34, 211, 238, 0.6), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

/* Floating Hover Animation ("Leve Flutuadinha") */
.post-card:hover,
.post-card.reveal-on-scroll.is-revealed:hover {
  transform: translateY(-8px) scale(1.015);
  border-color: rgba(168, 85, 247, 0.6);
  box-shadow: 0 20px 45px -8px rgba(0, 0, 0, 0.8), 0 0 30px rgba(168, 85, 247, 0.3);
}

.post-card:hover::before {
  opacity: 1;
}

.card-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #080B19;
  overflow: hidden;
  display: block;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.post-card:hover .card-img-wrapper img {
  transform: scale(1.06);
}

.card-badge-floating {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(3, 5, 12, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #22D3EE;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  margin-bottom: 12px;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.meta-sep {
  color: var(--color-text-dark);
  font-size: 0.75rem;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  color: #FFFFFF;
  margin-bottom: 12px;
  transition: color 0.2s ease;
}

.card-title a {
  color: #FFFFFF;
}

.post-card:hover .card-title a {
  color: #22D3EE;
}

.card-desc {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.84rem;
  font-weight: 600;
  color: #8B5CF6;
}

.card-footer a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #8B5CF6;
  transition: all 0.2s ease;
}

.post-card:hover .card-footer a {
  color: #22D3EE;
  transform: translateX(4px);
}

/* ─── ARTICLE INDIVIDUAL PAGE STYLES ─────────────────────────────────── */
.article-header-section {
  position: relative;
  z-index: 2;
  padding: 110px 0 40px;
}

.article-container {
  width: 100%;
  max-width: var(--article-max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 3.5vw, 2rem);
  position: relative;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
  padding: 7px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(10px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.back-link:hover {
  color: #22D3EE;
  background: rgba(34, 211, 238, 0.08);
  border-color: rgba(34, 211, 238, 0.45);
  transform: translateY(-3px) translateX(-3px);
  box-shadow: 0 4px 20px rgba(34, 211, 238, 0.25);
}

.article-category-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #22D3EE;
  margin-bottom: 16px;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  cursor: default;
}

.article-category-badge:hover {
  transform: translateY(-4px) scale(1.03);
  border-color: rgba(34, 211, 238, 0.65);
  box-shadow: 0 6px 25px rgba(139, 92, 246, 0.4), 0 0 20px rgba(34, 211, 238, 0.35);
  color: #FFFFFF;
}

.article-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: #FFFFFF;
  margin-bottom: 20px;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.8);
}

/* Modern SVG Icon Meta Bar */
.article-meta-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 32px;
}

.article-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease, color 0.35s ease;
  cursor: default;
}

.article-meta-pill:hover {
  transform: translateY(-4px) scale(1.02);
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3), 0 0 15px rgba(34, 211, 238, 0.15);
  color: #FFFFFF;
}

.article-meta-pill svg {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.article-meta-pill:hover svg {
  transform: scale(1.1);
}

.article-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 36px;
  border: 1px solid rgba(139, 92, 246, 0.25);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(139, 92, 246, 0.15);
  background: #080B19;
}

.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-body-wrapper {
  margin-bottom: 40px;
  position: relative;
}

.article-body {
  font-size: 1.1rem;
  line-height: 1.88;
  color: var(--color-text-body);
}

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

.article-body p:first-of-type {
  font-size: 1.22rem;
  color: #FFFFFF;
  line-height: 1.8;
  font-weight: 400;
}

.article-body strong {
  color: #FFFFFF;
  font-weight: 700;
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 44px 0 18px;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-body h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 22px;
  background: var(--accent-gradient);
  border-radius: 4px;
  flex-shrink: 0;
}

.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 32px 0 14px;
  line-height: 1.35;
}

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

.article-body li {
  margin-bottom: 10px;
}

.article-body blockquote {
  padding: 20px 24px;
  margin: 32px 0;
  background: rgba(139, 92, 246, 0.08);
  border-left: 4px solid #8B5CF6;
  border-radius: 0 16px 16px 0;
  color: #E2E8F0;
  font-size: 0.98rem;
  line-height: 1.7;
}

/* ─── ARTICLE CTA BOX (BOTTOM) ───────────────────────────────────────── */
.article-cta-box {
  margin: 40px 0 20px;
  padding: 44px 32px;
  background: linear-gradient(135deg, rgba(14, 19, 38, 0.92) 0%, rgba(8, 11, 25, 0.95) 100%);
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 40px rgba(139, 92, 246, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
  position: relative;
  overflow: hidden;
}

.article-cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.cta-mascot-wrapper {
  position: relative;
  width: 144px;
  height: 144px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.cta-mascot-glow {
  position: absolute;
  inset: -25px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.5) 0%, rgba(139, 92, 246, 0.3) 45%, transparent 70%);
  filter: blur(28px);
  z-index: 0;
  animation: pulseGlow 3.5s infinite alternate ease-in-out;
}

.cta-mascot-img {
  position: relative;
  z-index: 1;
  width: 130px;
  height: auto;
  max-height: 138px;
  object-fit: contain;
  animation: floatMascot 3.5s infinite ease-in-out;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 24px rgba(34, 211, 238, 0.5));
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.65rem);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.3;
}

.cta-text {
  font-size: 1rem;
  color: var(--color-text-secondary);
  max-width: 580px;
  line-height: 1.65;
}

/* ─── RELATED ARTICLES SECTION ───────────────────────────────────────── */
.related-articles-section {
  padding: 60px 0 80px;
  border-top: 1px solid var(--color-border);
  position: relative;
  z-index: 2;
}

.section-heading {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 32px;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-heading::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 24px;
  background: var(--accent-gradient);
  border-radius: 4px;
}

/* ─── ULTRA-PREMIUM CHIC FOOTER (EXACT LANDING PAGE MATCH) ─────────────── */
.site-footer {
  margin-top: auto;
  position: relative;
  background: linear-gradient(180deg, rgba(3, 5, 12, 0.96) 0%, #010206 100%);
  border-top: 1px solid rgba(139, 92, 246, 0.18);
  padding: 80px 0 36px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  overflow: hidden;
  z-index: 2;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(139, 92, 246, 0.6) 30%, rgba(34, 211, 238, 0.6) 70%, transparent 100%);
  pointer-events: none;
}

.site-footer::after {
  content: '';
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(139, 92, 246, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.footer-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 0.8fr);
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-description {
  font-size: 0.88rem;
  max-width: 320px;
  line-height: 1.65;
  color: rgba(226, 232, 240, 0.65);
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 22px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin: 0;
  padding: 0;
}

.footer-link,
.footer-links button.footer-link,
.footer-modal-btn {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  font-family: inherit !important;
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  color: rgba(226, 232, 240, 0.62) !important;
  text-decoration: none !important;
  text-align: left !important;
  cursor: pointer !important;
  outline: none !important;
  box-shadow: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: all 0.25s ease !important;
}

.footer-link:hover,
.footer-links button.footer-link:hover,
.footer-modal-btn:hover {
  color: #22D3EE !important;
  transform: translateX(4px) !important;
  text-shadow: 0 0 10px rgba(34, 211, 238, 0.4) !important;
}

/* ─── FOOTER SECURITY & TRUST BADGES ──────────────────────────────── */
.footer-security-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 22px 0;
  margin-bottom: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 900px) {
  .footer-security-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}
@media (max-width: 520px) {
  .footer-security-row {
    grid-template-columns: 1fr;
  }
}

.footer-sec-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(8, 11, 26, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}
.footer-sec-item:hover {
  border-color: rgba(34, 211, 238, 0.3);
  background: rgba(10, 14, 32, 0.7);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.footer-sec-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(34, 211, 238, 0.12));
  border: 1px solid rgba(139, 92, 246, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #22D3EE;
}

.footer-sec-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.footer-sec-title {
  font-family: var(--font-sans);
  font-size: 0.80rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}
.footer-sec-sub {
  font-family: var(--font-sans);
  font-size: 0.70rem;
  color: rgba(226, 232, 240, 0.5);
}

/* ─── FOOTER BOTTOM ───────────────────────────────────────────────── */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  font-size: 0.78rem;
  color: rgba(226, 232, 240, 0.5);
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copyright {
  font-size: 0.76rem;
  color: rgba(226, 232, 240, 0.45);
  font-weight: 500;
  margin: 0;
}

/* WBR Credit */
.footer-credit-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.footer-credit-label {
  font-size: 0.88rem;
  color: rgba(226, 232, 240, 0.7);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.wbr-brand-pill {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.wbr-clean-logo {
  height: clamp(40px, 3.5vw, 50px);
  width: auto;
  object-fit: contain;
  vertical-align: middle;
  filter: brightness(1.15) drop-shadow(0 0 12px rgba(34, 211, 238, 0.4));
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

.wbr-brand-pill:hover .wbr-clean-logo {
  transform: scale(1.08);
  filter: brightness(1.35) drop-shadow(0 0 20px rgba(34, 211, 238, 0.75));
}

.footer-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: rgba(226, 232, 240, 0.65);
}

.status-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 10px #10B981;
  animation: pulseStatus 2s infinite ease-in-out;
}

@keyframes pulseStatus {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 8px #10B981; }
  50% { opacity: 0.45; transform: scale(0.85); box-shadow: 0 0 3px #10B981; }
}

.status-version {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.72rem;
  color: rgba(226, 232, 240, 0.5);
  font-family: monospace;
}

/* ─── POLICY MODALS CSS (EXACT MATCH) ─────────────────────────────── */
.policy-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 32px);
  background: rgba(3, 5, 12, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.policy-modal-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.policy-modal-panel {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: min(88vh, 760px);
  display: flex;
  flex-direction: column;
  background: rgba(8, 11, 26, 0.95);
  backdrop-filter: blur(32px) saturate(160%);
  -webkit-backdrop-filter: blur(32px) saturate(160%);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 22px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.85), 0 0 70px rgba(139, 92, 246, 0.14);
  overflow: hidden;
  animation: modalSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.policy-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(13, 17, 38, 0.6);
}

.policy-modal-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.policy-modal-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(34, 211, 238, 0.12));
  border: 1px solid rgba(139, 92, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #22D3EE;
  flex-shrink: 0;
}

.policy-modal-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.01em;
  margin: 0;
}

.policy-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94A3B8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.policy-modal-close:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.35);
  color: #EF4444;
}

.policy-modal-body {
  padding: 24px 28px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.policy-section-card {
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.policy-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #F8FAFC;
  margin-bottom: 8px;
}

.policy-section-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8B5CF6;
  box-shadow: 0 0 6px #8B5CF6;
}

.policy-section-text {
  font-size: 0.84rem;
  line-height: 1.65;
  color: rgba(226, 232, 240, 0.75);
  margin: 0;
}

.policy-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(13, 17, 38, 0.6);
  flex-wrap: wrap;
  gap: 12px;
}

.policy-modal-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  color: rgba(226, 232, 240, 0.5);
}

.policy-modal-ok-btn {
  padding: 9px 24px;
  border-radius: 10px;
  background: linear-gradient(135deg, #8B5CF6 0%, #3B82F6 100%);
  border: none;
  font-size: 0.84rem;
  font-weight: 700;
  color: #FFFFFF;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4);
  transition: all 0.2s ease;
}

.policy-modal-ok-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
}


/* ─── NO RESULTS STATE ──────────────────────────────────────────────── */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--color-text-muted);
}

.no-results h3 {
  font-size: 1.3rem;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.mobile-only-link {
  display: none;
}

/* ─── RESPONSIVE BREAKPOINTS ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
  .hero-mascot-wrapper {
    width: 290px;
    height: 290px;
  }
  .hero-mascot {
    width: 260px;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  .header-nav, .site-header {
    height: 60px;
    padding: 0;
  }

  .header-container {
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    max-width: 100vw;
  }

  .logo-svg {
    width: 115px;
    height: 28px;
  }

  .nav-links {
    display: none;
  }

  .nav-links.mobile-active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: rgba(8, 11, 25, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
    padding: 20px 24px;
    gap: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95);
    z-index: 9999;
  }

  .nav-links.mobile-active .nav-link {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-main);
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-links.mobile-active .nav-link:last-child {
    border-bottom: none;
  }

  .mobile-only-link {
    display: block !important;
    color: #22D3EE !important;
  }

  .nav-ctas {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
  }

  .nav-ctas > a.nav-link {
    display: none;
  }

  .nav-ctas .liq-btn-wrapper {
    box-shadow: 0 2px 10px rgba(168, 85, 247, 0.35);
  }

  .nav-ctas .liq-btn-inner {
    border-radius: 9px;
  }

  .nav-ctas .liq-btn-text {
    padding: 6px 11px 9px !important;
    font-size: 10px !important;
    letter-spacing: 0.04em !important;
  }

  .nav-ctas .liq-btn-subtext {
    font-size: 5.5px !important;
    letter-spacing: 0.03em !important;
    bottom: 1px !important;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 22px;
    height: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    margin-left: 4px;
    flex-shrink: 0;
  }

  .menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: #FFFFFF;
    border-radius: 4px;
  }

  /* Article CTA Box on Mobile */
  .article-cta-box {
    padding: 28px 16px;
    gap: 16px;
    border-radius: 18px;
    margin: 32px 0 16px;
  }

  .article-cta-box .cta-title {
    font-size: 1.25rem;
  }

  .article-cta-box .cta-text {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .article-cta-box .cta-mascot-wrapper {
    width: 116px;
    height: 116px;
  }

  .article-cta-box .cta-mascot-img {
    width: 104px;
    max-height: 110px;
  }

  .article-cta-box .liq-btn-wrapper {
    width: 100%;
    max-width: 320px;
  }

  .article-cta-box .liq-btn-inner {
    width: 100%;
    border-radius: 11px;
  }

  .article-cta-box .liq-btn-text {
    padding: 12px 18px 15px !important;
    font-size: 12px !important;
    letter-spacing: 0.05em !important;
  }

  .article-cta-box .liq-btn-subtext {
    font-size: 7px !important;
    bottom: 3px !important;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }
  .hero-text {
    margin: 0 auto;
  }
  .hero-mascot-wrapper {
    margin: 0 auto;
    width: 260px;
    height: 260px;
  }
  .hero-mascot {
    width: 230px;
  }
  .posts-grid {
    grid-template-columns: 1fr;
  }
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .search-box {
    min-width: 100%;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .article-header-section {
    padding-top: 80px;
  }
}

@media (max-width: 480px) {
  .logo-svg {
    width: 105px;
    height: 26px;
  }
  .header-container {
    padding: 0 10px;
    gap: 6px;
  }
  .nav-ctas .liq-btn-text {
    padding: 6px 9px 8px !important;
    font-size: 9.5px !important;
  }
  .article-title {
    font-size: 1.65rem;
  }
  .article-meta-bar {
    gap: 6px;
  }
  .article-meta-pill {
    font-size: 0.75rem;
    padding: 4px 10px;
  }
}
