/*
 * Explore ClusterPilot — light-theme contrast layer.
 * Intentionally scoped to the standalone Explore page.
 */

html[data-theme="light"] body.explore-docs-page {
  color: #0f172a;
  background:
    radial-gradient(circle at 10% 8%, rgba(14, 165, 233, .13), transparent 30%),
    radial-gradient(circle at 91% 10%, rgba(124, 58, 237, .10), transparent 34%),
    radial-gradient(circle at 74% 86%, rgba(16, 185, 129, .08), transparent 32%),
    linear-gradient(145deg, #f8fbff 0%, #f3f7fc 48%, #f7f5ff 100%) !important;
}

html[data-theme="light"] body.explore-docs-page::before {
  display: block !important;
  opacity: .34;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg width='260' height='160' viewBox='0 0 260 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%2364758b' stroke-opacity='.12' stroke-width='1.1'%3E%3Cpath d='M0 40 65 0l65 40-65 40z'/%3E%3Cpath d='M130 40 195 0l65 40-65 40z'/%3E%3Cpath d='M65 80 130 40l65 40-65 40z'/%3E%3Cpath d='M0 120l65-40 65 40-65 40z'/%3E%3Cpath d='M130 120l65-40 65 40-65 40z'/%3E%3Cpath d='M65 0l65 80M0 40l65 40M195 0l65 40M130 40l65 40M65 80l65 80M195 80l65 40'/%3E%3C/g%3E%3C/svg%3E");
}

html[data-theme="light"] body.explore-docs-page .logo {
  position: relative;
  isolation: isolate;
  background: linear-gradient(145deg, rgba(124, 58, 237, .13), rgba(14, 165, 233, .16)) !important;
  border-color: rgba(59, 130, 246, .22) !important;
  box-shadow: 0 14px 36px rgba(37, 99, 235, .14) !important;
}

html[data-theme="light"] body.explore-docs-page .logo::before,
html[data-theme="light"] body.explore-docs-page .logo::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

html[data-theme="light"] body.explore-docs-page .logo::before {
  width: 132px;
  background: radial-gradient(
    circle,
    rgba(14, 165, 233, .17) 0%,
    rgba(59, 130, 246, .08) 38%,
    rgba(139, 92, 246, .035) 58%,
    transparent 73%
  );
  filter: blur(5px);
}

html[data-theme="light"] body.explore-docs-page .logo::after {
  width: 94px;
  border: 1px solid rgba(14, 165, 233, .16);
  box-shadow:
    0 0 28px rgba(14, 165, 233, .10),
    inset 0 0 22px rgba(139, 92, 246, .05);
}

html[data-theme="light"] body.explore-docs-page .logo svg {
  position: relative;
  z-index: 1;
}

html[data-theme="light"] body.explore-docs-page .sub {
  color: #334155 !important;
}

html[data-theme="light"] body.explore-docs-page .back {
  color: #0f172a !important;
  text-decoration-color: #0284c7;
}

html[data-theme="light"] body.explore-docs-page .back:hover {
  color: #0369a1 !important;
}

html[data-theme="light"] body.explore-docs-page .hero {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(239, 246, 255, .92)) !important;
  border-color: rgba(148, 163, 184, .34) !important;
  box-shadow:
    0 24px 58px rgba(15, 23, 42, .10),
    inset 0 1px 0 rgba(255, 255, 255, .96) !important;
}

html[data-theme="light"] body.explore-docs-page .hero h2 {
  color: #0b1327 !important;
}

html[data-theme="light"] body.explore-docs-page .hero p {
  color: #334155 !important;
  font-weight: 500;
}

html[data-theme="light"] body.explore-docs-page .quick-title {
  color: #1e3a5f !important;
}

html[data-theme="light"] body.explore-docs-page .section-head h2 {
  color: #0f172a !important;
}

html[data-theme="light"] body.explore-docs-page .section-head p {
  color: #475569 !important;
  font-weight: 500;
}

html[data-theme="light"] body.explore-docs-page .doc-card {
  color: #0f172a !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(241, 245, 249, .94)) !important;
  border-color: rgba(148, 163, 184, .38) !important;
  box-shadow:
    0 14px 34px rgba(15, 23, 42, .09),
    inset 0 1px 0 rgba(255, 255, 255, .98) !important;
}

html[data-theme="light"] body.explore-docs-page .doc-card span {
  color: #0b1327 !important;
}

html[data-theme="light"] body.explore-docs-page .doc-card small {
  color: #475569 !important;
  font-weight: 600;
}

html[data-theme="light"] body.explore-docs-page .doc-card:hover {
  color: #071326 !important;
  background:
    linear-gradient(145deg, #ffffff, #eaf6ff) !important;
  border-color: rgba(2, 132, 199, .58) !important;
  box-shadow:
    0 18px 42px rgba(14, 116, 144, .15),
    0 0 0 3px rgba(14, 165, 233, .08) !important;
}

html[data-theme="light"] body.explore-docs-page .why-box {
  background:
    linear-gradient(135deg, rgba(224, 242, 254, .92), rgba(245, 243, 255, .94)) !important;
  border-color: rgba(14, 165, 233, .28) !important;
  box-shadow: 0 20px 48px rgba(15, 23, 42, .10) !important;
}

html[data-theme="light"] body.explore-docs-page .why-box h2 {
  color: #0b1327 !important;
}

html[data-theme="light"] body.explore-docs-page .why-item {
  color: #334155 !important;
  background: rgba(255, 255, 255, .82) !important;
  border-color: rgba(148, 163, 184, .34) !important;
  box-shadow: 0 9px 24px rgba(15, 23, 42, .06);
}

/* Card documentation popup */
html[data-theme="light"] body.explore-docs-page .modal {
  background: rgba(15, 23, 42, .48);
}

html[data-theme="light"] body.explore-docs-page .modal-panel {
  color: #0f172a !important;
  background: linear-gradient(180deg, #ffffff, #f5f8fc) !important;
  border-color: rgba(148, 163, 184, .50) !important;
  box-shadow:
    0 34px 100px rgba(15, 23, 42, .28),
    0 0 0 1px rgba(255, 255, 255, .70) !important;
}

html[data-theme="light"] body.explore-docs-page .modal-head {
  background: rgba(255, 255, 255, .92) !important;
  border-bottom-color: rgba(148, 163, 184, .28) !important;
}

html[data-theme="light"] body.explore-docs-page .badge {
  color: #075985 !important;
  background: #e0f2fe !important;
  border-color: #7dd3fc !important;
  font-weight: 700;
}

html[data-theme="light"] body.explore-docs-page .modal h2 {
  color: #0b1327 !important;
}

html[data-theme="light"] body.explore-docs-page .close {
  color: #0f172a !important;
  background: #e2e8f0 !important;
  box-shadow: inset 0 0 0 1px rgba(100, 116, 139, .18);
}

html[data-theme="light"] body.explore-docs-page .close:hover {
  background: #cbd5e1 !important;
}

html[data-theme="light"] body.explore-docs-page .doc-box {
  color: #0f172a !important;
  background: #ffffff !important;
  border-color: rgba(148, 163, 184, .34) !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
}

html[data-theme="light"] body.explore-docs-page .doc-box h3 {
  color: #075985 !important;
}

html[data-theme="light"] body.explore-docs-page .doc-box p,
html[data-theme="light"] body.explore-docs-page .doc-box li {
  color: #334155 !important;
}

html[data-theme="light"] body.explore-docs-page :where(.doc-card, .back, .close):focus-visible {
  outline: 3px solid rgba(14, 165, 233, .42);
  outline-offset: 3px;
}

@media (max-width: 760px) {
  html[data-theme="light"] body.explore-docs-page .top {
    align-items: start;
  }

  html[data-theme="light"] body.explore-docs-page .back {
    justify-self: start;
  }
}
