/* Nurse Noir Collective: customer reviews.
   Shared by the homepage, /reviews, /review and /admin/reviews. */

:root {
  --nnc-black: #0A0A0A;
  --nnc-ink: #111111;
  --nnc-white: #FAFAFA;
  --nnc-teal: #2ec4b6;
  --nnc-teal-bright: #2dd4bf;
  --nnc-line: rgba(192, 192, 192, 0.1);
  --nnc-muted: rgba(250, 250, 250, 0.55);
  --nnc-faint: rgba(250, 250, 250, 0.35);
  --nnc-heading: 'Playfair Display', Georgia, serif;
  --nnc-body: Georgia, 'Times New Roman', serif;
  --nnc-quote: 'Lora', Georgia, serif;
}

/* ── Stars ── */
.nnc-stars {
  position: relative;
  display: inline-block;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  line-height: 1;
  color: rgba(46, 196, 182, 0.22);
  white-space: nowrap;
}
.nnc-stars::before { content: '★★★★★'; }
.nnc-stars-fill {
  position: absolute;
  inset: 0 auto 0 0;
  overflow: hidden;
  color: var(--nnc-teal);
}
.nnc-stars-fill::before { content: '★★★★★'; }

/* ── Rating link beside a price ── */
.nnc-rating-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--nnc-body);
  font-size: 0.8rem;
  color: var(--nnc-muted);
  text-decoration: none;
  transition: color 0.3s ease;
  vertical-align: middle;
}
.nnc-rating-link[hidden] { display: none; }
.nnc-rating-link:hover { color: var(--nnc-white); }
.nnc-rating-link .nnc-stars { font-size: 0.8rem; }

/* ── Review card ── */
.nnc-review {
  display: flex;
  flex-direction: column;
  background: var(--nnc-ink);
  border: 1px solid var(--nnc-line);
  overflow: hidden;
  break-inside: avoid;
}
.nnc-review-photo {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #161616;
  cursor: zoom-in;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.nnc-review-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease;
}
.nnc-review-photo:hover img { transform: scale(1.03); }
.nnc-review-thumbs {
  display: flex;
  gap: 0.4rem;
  padding: 0.4rem 0.4rem 0;
}
.nnc-review-thumbs .nnc-review-photo { width: 56px; height: 56px; aspect-ratio: auto; opacity: 0.75; }
.nnc-review-thumbs .nnc-review-photo:hover { opacity: 1; }
.nnc-review-body { padding: 1.6rem 1.6rem 1.8rem; display: flex; flex-direction: column; gap: 1rem; flex: 1; }
.nnc-review-quote {
  font-family: var(--nnc-quote);
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.75;
  color: rgba(250, 250, 250, 0.88);
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.nnc-review-meta { margin-top: auto; font-family: var(--nnc-body); line-height: 1.5; }
.nnc-review-name { font-size: 0.92rem; color: var(--nnc-white); }
.nnc-review-title { color: var(--nnc-muted); }
.nnc-review-detail {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--nnc-faint);
}

/* ── Quiet text links ── */
.nnc-link {
  font-family: var(--nnc-body);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--nnc-teal);
  text-decoration: none;
  border-bottom: 1px solid rgba(46, 196, 182, 0.3);
  padding-bottom: 2px;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.nnc-link:hover { color: var(--nnc-teal-bright); border-color: var(--nnc-teal-bright); }
.nnc-link--muted { color: var(--nnc-muted); border-color: rgba(250, 250, 250, 0.15); }
.nnc-link--muted:hover { color: var(--nnc-white); border-color: rgba(250, 250, 250, 0.4); }

.nnc-button {
  display: inline-block;
  padding: 1rem 2.4rem;
  background: var(--nnc-teal);
  color: var(--nnc-black);
  font-family: var(--nnc-body);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--nnc-teal);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}
.nnc-button:hover { background: transparent; color: var(--nnc-teal); }
.nnc-button:disabled { opacity: 0.5; cursor: progress; }

/* ── Homepage: What Nurses Are Saying ── */
.nnc-saying { padding: 7rem 0; border-top: 1px solid var(--nnc-line); }
.nnc-saying[hidden] { display: none; }
.nnc-saying-inner { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.nnc-saying-header { text-align: center; margin-bottom: 3.5rem; }
.nnc-eyebrow {
  font-family: var(--nnc-body);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--nnc-teal);
  margin-bottom: 1rem;
}
.nnc-saying-title {
  font-family: var(--nnc-heading);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.2;
}
.nnc-saying-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1080px;
  margin: 0 auto;
}
.nnc-saying-grid--1 { max-width: 420px; }
.nnc-saying-grid--2 { max-width: 760px; }
.nnc-saying-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 3rem;
}
.nnc-invitation {
  text-align: center;
  padding: 4rem 2rem;
  font-family: var(--nnc-quote);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--nnc-muted);
  border-top: 1px solid var(--nnc-line);
}
.nnc-invitation a { color: var(--nnc-teal); text-decoration: none; border-bottom: 1px solid rgba(46, 196, 182, 0.3); }
.nnc-invitation a:hover { color: var(--nnc-teal-bright); }

/* ── Product section reviews ── */
.nnc-product-reviews { margin-top: 4.5rem; padding-top: 3rem; border-top: 1px solid var(--nnc-line); scroll-margin-top: 110px; }
.nnc-product-reviews--empty { margin-top: 2.5rem; padding-top: 0; border-top: 0; text-align: center; }
.nnc-product-reviews-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.nnc-product-reviews-title { font-family: var(--nnc-heading); font-weight: 400; font-size: 1.5rem; }
.nnc-product-reviews-summary { display: flex; align-items: center; gap: 0.6rem; font-family: var(--nnc-body); font-size: 0.85rem; color: var(--nnc-muted); }
.nnc-product-reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }
.nnc-product-reviews-foot { display: flex; gap: 1.8rem; flex-wrap: wrap; margin-top: 1.8rem; }

/* ── Lightbox ── */
.nnc-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(5, 5, 5, 0.94);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  cursor: zoom-out;
}
.nnc-lightbox.open { opacity: 1; pointer-events: auto; }
.nnc-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.nnc-lightbox-close {
  position: absolute;
  top: calc(1rem + env(safe-area-inset-top));
  right: 1rem;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid rgba(250, 250, 250, 0.2);
  color: var(--nnc-white);
  font-size: 1.3rem;
  cursor: pointer;
}

/* ════ Standalone review pages ════ */
body.nnc-page {
  margin: 0;
  background: var(--nnc-black);
  color: var(--nnc-white);
  font-family: var(--nnc-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
body.nnc-page *, body.nnc-page *::before, body.nnc-page *::after { box-sizing: border-box; }
.nnc-page ::selection { background: var(--nnc-teal); color: var(--nnc-black); }
.nnc-page a:focus-visible, .nnc-page button:focus-visible, .nnc-page input:focus-visible,
.nnc-page select:focus-visible, .nnc-page textarea:focus-visible { outline: 1px solid var(--nnc-teal); outline-offset: 3px; }

.nnc-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 2.5rem;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--nnc-line);
}
.nnc-nav-logo img { height: 34px; width: auto; display: block; }
.nnc-nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nnc-nav-links a {
  font-family: var(--nnc-body);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #C0C0C0;
  text-decoration: none;
  transition: color 0.3s ease;
}
.nnc-nav-links a:hover, .nnc-nav-links a[aria-current="page"] { color: var(--nnc-teal); }

.nnc-main { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.nnc-header { text-align: center; padding: 6rem 0 3.5rem; max-width: 640px; margin: 0 auto; }
.nnc-header h1 {
  font-family: var(--nnc-heading);
  font-weight: 400;
  font-size: clamp(2.3rem, 5vw, 3.4rem);
  line-height: 1.15;
  margin: 0 0 1.4rem;
}
.nnc-header p { font-size: 1.05rem; line-height: 1.8; color: var(--nnc-muted); margin: 0; }
.nnc-rule { width: 50px; height: 1px; margin: 2.5rem auto 0; background: linear-gradient(90deg, transparent, var(--nnc-teal), transparent); }

.nnc-footer {
  margin-top: 7rem;
  padding: 2.5rem 2rem calc(2.5rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--nnc-line);
  text-align: center;
  font-size: 0.75rem;
  color: rgba(250, 250, 250, 0.3);
  line-height: 2.2;
}
.nnc-footer a { color: rgba(250, 250, 250, 0.45); text-decoration: none; margin: 0 0.8rem; transition: color 0.3s ease; }
.nnc-footer a:hover { color: var(--nnc-teal); }
.nnc-footer em { font-family: var(--nnc-quote); color: var(--nnc-teal); font-size: 0.95rem; }

@media (max-width: 640px) {
  .nnc-nav { padding: 0.9rem 1.2rem; }
  .nnc-nav-logo img { height: 28px; }
  .nnc-nav-links { gap: 1.1rem; }
  .nnc-nav-links a { font-size: 0.62rem; letter-spacing: 0.14em; }
  .nnc-main { padding: 0 1.25rem; }
  .nnc-header { padding: 4rem 0 2.5rem; }
  .nnc-saying { padding: 5rem 0; }
  .nnc-saying-inner { padding: 0 1.25rem; }
  .nnc-review-body { padding: 1.3rem 1.3rem 1.5rem; }
}
