/* Cosmic test page styles with right-side menu */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  min-height: 100vh;
  color: #e9f1ff;
  background-color: #020617;
  position: relative;
  overflow-x: hidden;
  isolation: isolate;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(180deg, rgba(30,136,229,0.65) 0%, rgba(20,184,166,0.60) 55%, rgba(232,121,158,0.12) 100%);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  z-index: -2;
}

/* subtle star overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(173,235,255,0.95) 1px, transparent 1px),
    radial-gradient(circle, rgba(232,121,158,0.55) 1px, transparent 1px);
  background-size: 28px 28px, 110px 110px;
  background-position: 0 0, 40px 40px;
  opacity: 0.14;
  pointer-events: none;
  z-index: -1;
}

.page-wrapper {
  display: flex;
  gap: 24px;
  max-width: 1100px;
  margin: 36px auto;
  padding: 20px;
  position: relative;
  z-index: 1;
}

.content {
  flex: 1 1 0;
  background-image: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(12,23,55,0.82) 25%, rgba(20,184,166,0.06) 100%), linear-gradient(180deg, rgba(12,23,55,0.62), rgba(20,184,166,0.05));
  background-blend-mode: overlay, normal;
  border-radius: 20px;
  padding: 28px;
  color: #dbe9ff;
  box-shadow: 0 40px 120px rgba(11,38,60,0.5), 0 12px 40px rgba(232,121,158,0.12);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  backdrop-filter: blur(24px) saturate(150%);
  background-clip: padding-box;
  position: relative;
  overflow: hidden;
}

.card-grid {
  display: grid;
  gap: 24px;
  margin-top: 30px;
}

.content-card {
  background-image: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(8,14,30,0.82) 30%, rgba(20,184,166,0.06) 100%), linear-gradient(180deg, rgba(8,14,30,0.78), rgba(20,184,166,0.04));
  background-blend-mode: overlay, normal;
  border: 1px solid rgba(232,121,158,0.16);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.44), 0 12px 36px rgba(232,121,158,0.08);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  background-clip: padding-box;
}

.content-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 85% 70%, rgba(232,121,158,0.18), transparent 18%), linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0) 35%);
  mix-blend-mode: overlay;
  border-radius: inherit;
  filter: blur(6px);
}

/* angled glossy glare (specular highlight) for content cards */
.content-card::after {
  content: "";
  position: absolute;
  top: -30%;
  left: -12%;
  width: 170%;
  height: 72%;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.52) 44%, rgba(255,255,255,0.06) 62%, rgba(255,255,255,0) 100%);
  transform: rotate(-18deg);
  filter: blur(12px);
  opacity: 0.28;
  pointer-events: none;
  mix-blend-mode: screen;
  border-radius: inherit;
}

.card-cover img {
  width: 100%;
  display: block;
  object-fit: cover;
  height: 240px;
}

.card-info {
  padding: 24px;
}

.card-info h2 {
  margin: 0 0 10px 0;
  color: #f4fbff;
}

.card-meta {
  margin: 0 0 16px 0;
  color: #9bdff0;
  font-size: 0.95rem;
}

.card-description {
  margin: 0 0 24px 0;
  color: #d8e2ff;
  line-height: 1.7;
}

.card-button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(30,136,229,1), rgba(20,184,166,1));
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(20,184,166,0.18);
}


.side-menu {
  width: 280px;
  flex: 0 0 280px;
  align-self: flex-start;
}

.side-menu .menu-inner {
  position: sticky;
  top: 32px;
  background: linear-gradient(180deg, rgba(18, 28, 62, 0.96), rgba(12, 18, 44, 0.9));
  border-radius: 12px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 12px 36px rgba(0,0,0,0.5);
}
.side-menu .menu-inner {
  position: sticky;
  top: 32px;
  background: linear-gradient(180deg, rgba(30,136,229,0.06), rgba(20,184,166,0.06));
  border-radius: 12px;
  padding: 18px;
  border: 1px solid rgba(232,121,158,0.06);
  box-shadow: 0 12px 36px rgba(0,0,0,0.5);
}

.side-menu h3 {
  margin: 0 0 10px 0;
  color: #f4fbff;
  font-size: 1.15rem;
}

.side-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.side-menu li {
  margin: 10px 0;
}

.side-menu a {
  color: #9bdff0;
  text-decoration: none;
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}
.side-menu a:hover {
  background: rgba(232,121,158,0.08);
  color: #fff;
}


@media (max-width: 900px) {
  .page-wrapper {
    flex-direction: column;
    padding: 12px;
    margin: 20px auto;
  }

  .side-menu {
    width: 100%;
    flex: none;
  }

  .side-menu .menu-inner {
    position: relative;
    top: 0;
  }
}

.divider {
  border: 0;
  height: 1px;
  margin: 24px auto;
  max-width: 720px;
  background: rgba(255,255,255,0.12);
  opacity: 0.9;
}