/* ============================================================
   HEALTH REPORTS PAGE — Jiva Pulse
   Feature & Privacy Reference page styles.
   Glassmorphism + lotus-spectrum theme.
   ============================================================ */

/* ── Hero Section — Full-width background image with overlay ── */
.hr-hero {
  position: relative;
  padding-top: var(--sp-24);
  padding-bottom: var(--sp-24);
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: center;
}

.hr-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

/* Soft overlay wash for text readability */
.hr-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(248, 249, 252, 0.88) 0%,
    rgba(248, 249, 252, 0.65) 60%,
    rgba(248, 249, 252, 0.40) 100%
  );
}

.hr-hero__content {
  position: relative;
  z-index: var(--z-raised);
  max-width: 780px;
}

.hr-hero__logo {
  width: 120px;
  height: auto;
  margin-bottom: var(--sp-4);
}

.hr-hero__title {
  font-size: var(--text-5xl);
  margin-bottom: var(--sp-5);
}

.hr-hero__subtitle {
  font-size: var(--text-md);
  color: var(--clr-text-secondary);
  line-height: var(--leading-loose);
  margin-bottom: var(--sp-6);
  max-width: 720px;
}

.hr-hero__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

/* ── Phone Mockup ── */
.hr-phone-mockup {
  max-width: 320px;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow:
    0 8px 40px rgba(126, 207, 179, 0.15),
    0 2px 12px rgba(155, 143, 204, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.5);
  transition: transform var(--ease-slow), box-shadow var(--ease-slow);
}

.hr-phone-mockup:hover {
  transform: translateY(-4px);
  box-shadow:
    0 16px 56px rgba(126, 207, 179, 0.20),
    0 4px 16px rgba(155, 143, 204, 0.15);
}

.hr-phone-mockup img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Generic Section Layout ── */
.hr-section__intro {
  max-width: 960px;
  margin-bottom: var(--sp-10);
}

.hr-section__intro p {
  font-size: var(--text-md);
  color: var(--clr-text-secondary);
  line-height: var(--leading-loose);
}

/* ── 2×2 Card Grid ── */
.hr-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
}

.hr-card {
  background: var(--clr-surface-alt);
  border-radius: var(--glass-radius-1);
  padding: var(--sp-6);
  transition: all var(--ease-base);
}

.hr-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.hr-card__title {
  font-family: var(--font-body);
  font-weight: var(--weight-semi);
  font-size: var(--text-lg);
  color: var(--clr-heading);
  margin-bottom: var(--sp-2);
}

/* ── Privacy Notice Banner ── */
.hr-notice {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  background: var(--clr-primary-subtle);
  border-radius: var(--radius-md);
  padding: var(--sp-4) var(--sp-6);
  margin-top: var(--sp-8);
  font-size: var(--text-sm);
  color: var(--clr-text-secondary);
}

.hr-notice__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--clr-primary);
}

/* ── Settings Section (split: dark card + regular card) ── */
.hr-settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  align-items: start;
}

.hr-settings-dark {
  background: var(--clr-primary);
  border-radius: var(--glass-radius-1);
  padding: var(--sp-8);
  color: var(--clr-white);
}

.hr-settings-dark h3 {
  color: var(--clr-white);
  margin-bottom: var(--sp-5);
}

.hr-settings-dark li {
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  padding-left: var(--sp-6);
  line-height: var(--leading-loose);
}

.hr-settings-dark li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--clr-white);
}

.hr-settings-light h3 {
  font-family: var(--font-body);
  font-weight: var(--weight-semi);
  font-size: var(--text-xl);
  color: var(--clr-primary);
  margin-bottom: var(--sp-5);
}

.hr-settings-light li {
  position: relative;
  padding-left: var(--sp-6);
  color: var(--clr-text-secondary);
  line-height: var(--leading-loose);
}

.hr-settings-light li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
}

.hr-settings-light__footer {
  margin-top: var(--sp-5);
  font-size: var(--text-sm);
  color: var(--clr-muted);
}

/* ── Master Data (icon + title + desc cards, 2×2) ── */
.hr-master-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-10);
}

.hr-master-item__icon {
  color: var(--clr-primary);
  margin-bottom: var(--sp-4);
}

.hr-master-item__title {
  font-family: var(--font-body);
  font-weight: var(--weight-semi);
  font-size: var(--text-lg);
  color: var(--clr-heading);
  margin-bottom: var(--sp-2);
}

/* ── Reports (numbered cards) ── */
.hr-report-card {
  text-align: center;
}

.hr-report-card__number {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--clr-primary);
  margin-bottom: var(--sp-4);
}

.hr-report-card__title {
  font-family: var(--font-body);
  font-weight: var(--weight-semi);
  font-size: var(--text-lg);
  color: var(--clr-heading);
  margin-bottom: var(--sp-3);
}

.hr-reports__footer {
  margin-top: var(--sp-8);
  font-size: var(--text-sm);
  color: var(--clr-muted);
}

/* ── Dark Section (Permissions) ── */
.hr-dark {
  background: var(--clr-primary);
  position: relative;
}

.hr-dark h2,
.hr-dark p {
  color: var(--clr-white);
}

.hr-dark .hr-section__intro p {
  color: rgba(255, 255, 255, 0.8);
}

.hr-perm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-8);
  margin-bottom: var(--sp-8);
}

.hr-perm-card {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
}

.hr-perm-card__img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
}

.hr-perm-card__title {
  font-family: var(--font-body);
  font-weight: var(--weight-semi);
  font-size: var(--text-lg);
  color: var(--clr-white);
  margin-bottom: var(--sp-2);
}

.hr-perm-card p {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.75);
  line-height: var(--leading-normal);
}

.hr-dark-notice {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: var(--sp-4) var(--sp-6);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.85);
}

.hr-dark-notice__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: rgba(255, 255, 255, 0.7);
}

/* ── Platform Cards ── */
.hr-platform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
}

.hr-platform-card {
  background: var(--clr-surface-alt);
  border-radius: var(--glass-radius-1);
  padding: var(--sp-8);
}

.hr-platform-card__name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--clr-heading);
  margin-bottom: var(--sp-3);
}

.hr-platform-card__version {
  font-weight: var(--weight-semi);
  color: var(--clr-text);
  margin-bottom: var(--sp-3);
}

.hr-platforms__footer {
  margin-top: var(--sp-8);
  font-size: var(--text-sm);
  color: var(--clr-muted);
}

/* ── Language Section (dark + light split) ── */
.hr-lang-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  align-items: start;
}

.hr-lang-dark {
  background: var(--clr-primary);
  border-radius: var(--glass-radius-1);
  padding: var(--sp-8);
  color: var(--clr-white);
}

.hr-lang-dark h3 {
  color: var(--clr-white);
  margin-bottom: var(--sp-5);
}

.hr-lang-dark p {
  color: rgba(255, 255, 255, 0.85);
  line-height: var(--leading-loose);
}

.hr-lang-light h3 {
  font-family: var(--font-body);
  font-weight: var(--weight-semi);
  font-size: var(--text-xl);
  color: var(--clr-primary);
  margin-bottom: var(--sp-5);
}

.hr-lang-light li {
  position: relative;
  padding-left: var(--sp-6);
  color: var(--clr-text-secondary);
  line-height: var(--leading-loose);
}

.hr-lang-light li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
}

.hr-lang-light__footer {
  margin-top: var(--sp-5);
  font-size: var(--text-sm);
  color: var(--clr-muted);
}

/* ── Support Section ── */
.hr-support {
  background: var(--clr-primary-subtle);
}

.hr-support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-8);
  margin-bottom: var(--sp-10);
}

.hr-support-item {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
}

.hr-support-item__arrow {
  flex-shrink: 0;
  color: var(--clr-text-secondary);
  margin-top: var(--sp-1);
}

.hr-support-item__title {
  font-family: var(--font-body);
  font-weight: var(--weight-semi);
  font-size: var(--text-lg);
  color: var(--clr-heading);
  margin-bottom: var(--sp-2);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .hr-hero__title {
    font-size: var(--text-4xl);
  }
}

@media (max-width: 768px) {
  .hr-hero {
    padding-top: var(--sp-16);
    padding-bottom: var(--sp-12);
    min-height: auto;
  }

  .hr-hero__title {
    font-size: var(--text-3xl);
  }

  .hr-hero__subtitle {
    max-width: 100%;
  }

  .hr-hero__actions {
    justify-content: center;
  }

  .hr-grid-2x2,
  .hr-settings-grid,
  .hr-master-grid,
  .hr-platform-grid,
  .hr-lang-grid {
    grid-template-columns: 1fr;
  }

  .hr-perm-grid,
  .hr-support-grid {
    grid-template-columns: 1fr;
  }

  .hr-phone-mockup {
    max-width: 260px;
  }
}

@media (max-width: 480px) {
  .hr-hero {
    padding-top: var(--sp-12);
    padding-bottom: var(--sp-8);
  }

  .hr-hero__title {
    font-size: var(--text-2xl);
  }

  .hr-hero__subtitle {
    font-size: var(--text-base);
  }

  .hr-hero__actions {
    flex-direction: column;
  }

  .hr-phone-mockup {
    max-width: 220px;
  }
}
