/* CITY PIXELS STEP 152A LAUNCHPAD LAYOUT AND EVENT FIX - 2026-07-23 */

.reader-discovery-launchpad {
  position: relative;
  overflow: hidden;
}

.reader-discovery-launchpad::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 88% 10%,
      rgba(185, 93, 255, 0.13),
      transparent 34%
    ),
    radial-gradient(
      circle at 12% 92%,
      rgba(62, 226, 255, 0.11),
      transparent 34%
    );
}

.reader-discovery-launchpad > * {
  position: relative;
  z-index: 1;
}


#discovery-launchpad-content {
  box-sizing: border-box;
  width: 100%;
  padding: 28px 28px 24px;
}

.reader-discovery-loading,
.discovery-error {
  box-sizing: border-box;
  width: 100%;
  padding: 28px;
}

.reader-discovery-launchpad [hidden] {
  display: none !important;
}

.reader-discovery-loading {
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #aebbd0;
  font-weight: 800;
}

.reader-discovery-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.reader-discovery-heading h2 {
  margin: 8px 0 12px;
  max-width: 780px;
}

.reader-discovery-heading p {
  margin: 0;
  max-width: 780px;
  color: #b8c4d8;
  line-height: 1.7;
}

.reader-discovery-primary-actions {
  min-width: 190px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.reader-discovery-message {
  margin-top: 20px;
  padding: 12px 14px;
  border: 1px solid rgba(74, 237, 255, 0.32);
  border-radius: 12px;
  background: rgba(74, 237, 255, 0.075);
  color: #bff8ff;
  font-weight: 800;
}

.reader-discovery-message.error {
  border-color: rgba(255, 101, 132, 0.42);
  background: rgba(255, 101, 132, 0.08);
  color: #ffd0da;
}

.reader-discovery-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.105);
  border-radius: 16px;
  background: rgba(4, 9, 23, 0.68);
}

.reader-discovery-progress strong,
.reader-discovery-progress span {
  display: block;
}

.reader-discovery-progress strong {
  color: #ffffff;
}

.reader-discovery-progress > div:first-child > span {
  margin-top: 6px;
  color: #9eabba;
  line-height: 1.5;
}

.reader-discovery-progress-meter {
  display: grid;
  grid-template-columns: repeat(4, 32px);
  gap: 8px;
}

.reader-discovery-progress-meter span {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.45);
}

.reader-discovery-progress-meter span.is-active {
  background:
    linear-gradient(
      90deg,
      #43e8ff,
      #bd6dff
    );
  box-shadow:
    0 0 14px rgba(77, 232, 255, 0.34);
}

.reader-discovery-counts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.reader-discovery-counts article {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.028);
}

.reader-discovery-counts strong,
.reader-discovery-counts span {
  display: block;
}

.reader-discovery-counts strong {
  font-size: 1.7rem;
  color: #ffffff;
}

.reader-discovery-counts span {
  margin-top: 6px;
  color: #8feeff;
  font-size: 0.69rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reader-discovery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.reader-discovery-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 19px;
  border: 1px solid rgba(255, 255, 255, 0.105);
  border-radius: 17px;
  background:
    linear-gradient(
      145deg,
      rgba(14, 24, 47, 0.94),
      rgba(5, 10, 25, 0.94)
    );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.reader-discovery-card.is-connected {
  border-color: rgba(74, 237, 255, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 0 24px rgba(74, 237, 255, 0.06);
}

.reader-discovery-card-type {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.reader-discovery-card-type .kicker {
  margin: 0;
}

.reader-discovery-state {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: #8997ac;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.reader-discovery-card.is-connected .reader-discovery-state {
  background: rgba(74, 237, 255, 0.11);
  color: #aef6ff;
}

.reader-discovery-card h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.35;
}

.reader-discovery-card h3 a {
  color: #ffffff;
  text-decoration: none;
}

.reader-discovery-card h3 a:hover,
.reader-discovery-card h3 a:focus-visible {
  color: #8feeff;
}

.reader-discovery-card-copy {
  margin: 0;
  color: #aeb9cb;
  font-size: 0.88rem;
  line-height: 1.6;
}

.reader-discovery-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.reader-discovery-card-meta span,
.reader-discovery-card-meta a {
  padding: 5px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.048);
  color: #a8b6cb;
  font-size: 0.68rem;
  font-weight: 800;
  text-decoration: none;
}

.reader-discovery-card-meta a:hover,
.reader-discovery-card-meta a:focus-visible {
  color: #ffffff;
}

.reader-discovery-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

.reader-discovery-card-actions .btn {
  flex: 1 1 auto;
  min-width: 0;
  padding-inline: 11px;
  text-align: center;
}

.reader-discovery-toggle.is-connected {
  border-color: rgba(74, 237, 255, 0.6);
  background: rgba(74, 237, 255, 0.12);
  color: #ffffff;
}

.reader-discovery-privacy {
  margin: 19px 0 0;
  color: #7f8da3;
  font-size: 0.78rem;
  line-height: 1.55;
  text-align: center;
}

@media (max-width: 1050px) {
  .reader-discovery-grid,
  .reader-discovery-counts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  #discovery-launchpad-content,
  .reader-discovery-loading,
  .discovery-error {
    padding: 20px 18px;
  }

  .reader-discovery-heading,
  .reader-discovery-progress {
    align-items: flex-start;
    flex-direction: column;
  }

  .reader-discovery-primary-actions {
    min-width: 0;
    justify-content: flex-start;
  }

  .reader-discovery-grid,
  .reader-discovery-counts {
    grid-template-columns: 1fr;
  }

  .reader-discovery-progress-meter {
    width: 100%;
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Step 155G: keep every discovery-card action group uniform on desktop. */
.reader-discovery-card-actions {
  flex-direction: column;
  flex-wrap: nowrap;
}

.reader-discovery-card-actions .btn {
  width: 100%;
  flex: 0 0 auto;
}
