/* CIO Codex — Author archive */
#cio-author-page .cio-author-hero {
  position: relative;
  overflow: hidden;
  text-align: center !important;
  margin: 0 0 56px;
  padding: 48px 24px 56px;
  border: 1px solid rgba(0, 200, 255, 0.14);
  border-radius: 20px;
  background: #020814;
}

#cio-author-page .cio-author-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
}

#cio-author-page .cio-author-hero-bg::before,
#cio-author-page .cio-author-hero-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  will-change: transform;
}

#cio-author-page .cio-author-hero-bg::before {
  width: 55%;
  height: 70%;
  top: -20%;
  left: -10%;
  background: radial-gradient(circle, rgba(0, 180, 255, 0.45) 0%, rgba(0, 80, 180, 0.18) 45%, transparent 70%);
  animation: cioAuthorOrbA 14s ease-in-out infinite alternate;
}

#cio-author-page .cio-author-hero-bg::after {
  width: 50%;
  height: 65%;
  right: -12%;
  bottom: -25%;
  background: radial-gradient(circle, rgba(0, 220, 255, 0.35) 0%, rgba(0, 60, 140, 0.2) 40%, transparent 70%);
  animation: cioAuthorOrbB 18s ease-in-out infinite alternate;
}

#cio-author-page .cio-author-hero-grid {
  position: absolute;
  inset: -40%;
  background-image:
    linear-gradient(rgba(0, 200, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 200, 255, 0.09) 1px, transparent 1px);
  background-size: 48px 48px;
  transform: perspective(600px) rotateX(52deg);
  transform-origin: center top;
  opacity: 0.55;
  animation: cioAuthorGrid 22s linear infinite;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 85%);
}

#cio-author-page .cio-author-hero-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 28%;
  background: linear-gradient(to bottom, transparent, rgba(0, 220, 255, 0.12), transparent);
  animation: cioAuthorScan 7s ease-in-out infinite;
  opacity: 0.7;
}

#cio-author-page .cio-author-hero > .cio-artigos-prelabel,
#cio-author-page .cio-author-hero-inner {
  position: relative;
  z-index: 1;
}

#cio-author-page .cio-author-hero > .cio-artigos-prelabel {
  display: block;
  text-align: center !important;
  margin: 0 auto 28px;
}

#cio-author-page .cio-author-hero-inner {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 20px;
  max-width: 760px;
  margin: 0 auto !important;
  text-align: center !important;
  width: 100%;
}

#cio-author-page .cio-author-avatar {
  flex-shrink: 0;
  width: 160px !important;
  height: 160px !important;
  margin: 0 auto !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  border: 2px solid rgba(0, 200, 255, 0.45);
  box-shadow: 0 0 0 6px rgba(0, 200, 255, 0.1), 0 0 28px rgba(0, 180, 255, 0.25);
}

#cio-author-page .cio-author-avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
  border-radius: 50% !important;
}

#cio-author-page .cio-author-info {
  width: 100%;
  max-width: 640px;
  margin: 0 auto !important;
  text-align: center !important;
}

#cio-author-page .cio-author-info h1 {
  text-align: center !important;
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 0 24px rgba(0, 180, 255, 0.25);
}

#cio-author-page .cio-author-role,
#cio-author-page .cio-author-specialty,
#cio-author-page .cio-author-bio,
#cio-author-page .cio-author-bio p {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

#cio-author-page .cio-author-bio {
  max-width: 640px;
  margin: 0 auto 18px !important;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
}

#cio-author-page .cio-author-linkedin {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(10, 24, 48, 0.85);
  border: 1px solid rgba(0, 200, 255, 0.22);
  color: #00c8ff !important;
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(6px);
}

#cio-author-page .cio-author-about {
  margin: 0 0 48px;
  padding: 32px 28px;
  border: 1px solid rgba(0, 200, 255, 0.14);
  border-radius: 16px;
  background: rgba(8, 14, 28, 0.92);
}

#cio-author-page .cio-author-about-header {
  margin-bottom: 18px;
  text-align: left;
}

#cio-author-page .cio-author-about-header .cio-artigos-prelabel {
  margin-bottom: 8px;
  text-align: left;
}

#cio-author-page .cio-author-about-header h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.2;
}

#cio-author-page .cio-author-about-body {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.78);
  max-width: 920px;
}

#cio-author-page .cio-author-about-body p {
  margin: 0 0 14px;
}

#cio-author-page .cio-author-about-body p:last-child {
  margin-bottom: 0;
}

#cio-author-page .cio-author-about-body a {
  color: #00c8ff !important;
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-word;
}

#cio-author-page .cio-author-about-body a:hover {
  color: #7ae0ff !important;
}

#cio-author-page #cio-author-artigos-grid.cio-artigos-grid,
#cio-author-page .cio-artigos-grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 16px !important;
}

#cio-author-page .cio-artigos-card {
  width: 100%;
  min-width: 0;
}

@keyframes cioAuthorOrbA {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(18%, 12%) scale(1.15); }
}

@keyframes cioAuthorOrbB {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-16%, -10%) scale(1.2); }
}

@keyframes cioAuthorGrid {
  0% { transform: perspective(600px) rotateX(52deg) translateY(0); }
  100% { transform: perspective(600px) rotateX(52deg) translateY(48px); }
}

@keyframes cioAuthorScan {
  0%, 100% { top: -10%; opacity: 0; }
  40%, 60% { opacity: 0.75; }
  50% { top: 75%; }
}

@media (max-width: 1200px) {
  #cio-author-page #cio-author-artigos-grid.cio-artigos-grid,
  #cio-author-page .cio-artigos-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 768px) {
  #cio-author-page #cio-author-artigos-grid.cio-artigos-grid,
  #cio-author-page .cio-artigos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  #cio-author-page .cio-author-hero {
    padding: 36px 16px 44px;
    border-radius: 16px;
  }

  #cio-author-page .cio-author-avatar {
    width: 120px !important;
    height: 120px !important;
  }

  #cio-author-page #cio-author-artigos-grid.cio-artigos-grid,
  #cio-author-page .cio-artigos-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #cio-author-page .cio-author-hero-bg::before,
  #cio-author-page .cio-author-hero-bg::after,
  #cio-author-page .cio-author-hero-grid,
  #cio-author-page .cio-author-hero-scan {
    animation: none !important;
  }
}
