/* =========================================================
   RESOURCE DETAIL SYSTEM
   Shared across Resource Lab detail pages
   File: /assets/css/resource-detail.css

   Use this file for:
   - Resource detail page shell
   - Shared hero
   - Shared section layout
   - Shared cards
   - Shared demo wrapper
   - Shared code blocks
   - Shared comparison blocks
   - Shared closing CTA

   Do NOT put page-specific interactive demo CSS here.
   Example: Mobile Process Coach demo styles belong in:
   /assets/css/mobile-process-coach.css
   ========================================================= */

.resource-detail-page {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: clamp(56px, 7vw, 104px) 24px clamp(88px, 10vw, 140px);
  background: #ffffff;
  color: var(--lrl-ink, #080b12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.resource-detail-page *,
.resource-detail-page *::before,
.resource-detail-page *::after {
  box-sizing: border-box;
}

.resource-detail-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

/* =========================================================
   Breadcrumb
   ========================================================= */

.resource-detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(1180px, 100%);
  margin: 0 auto clamp(34px, 5vw, 58px);
  color: #64748b;
  font-size: 0.95rem;
  font-weight: 800;
}

.resource-detail-breadcrumb a {
  color: #123f9c;
  text-decoration: none;
}

.resource-detail-breadcrumb a:hover {
  color: #2563eb;
}

.resource-detail-breadcrumb span {
  color: #64748b;
}

/* =========================================================
   Hero
   ========================================================= */

.resource-detail-hero {
  max-width: 1180px;
  margin: 0 auto clamp(74px, 9vw, 132px);
  text-align: center;
}

.resource-detail-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  min-height: 54px;

  margin: 0 0 clamp(28px, 4vw, 42px);
  padding: 0 30px;

  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 999px;

  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(20, 184, 166, 0.07)),
    #ffffff;

  color: #123f9c;

  font-size: clamp(12px, 1vw, 14px);
  font-weight: 900;
  letter-spacing: 0.28em;
  line-height: 1;
  text-transform: uppercase;

  box-shadow:
    0 14px 34px rgba(37, 99, 235, 0.08);
}

.resource-detail-eyebrow::before {
  content: "";

  width: 10px;
  height: 10px;

  flex: 0 0 auto;

  border-radius: 999px;

  background:
    linear-gradient(135deg, #2563eb, #14b8a6);

  box-shadow:
    0 0 0 6px rgba(37, 99, 235, 0.1);
}

.resource-detail-hero h1 {
  max-width: 1120px;
  margin: 0 auto;

  color: #07111f;

  font-size: clamp(4.15rem, 8.6vw, 8.25rem);
  line-height: 1.04;
  letter-spacing: -0.068em;
  font-weight: 680;

  text-wrap: balance;

  padding: 0 0 0.22em;
  overflow: visible;
}

.resource-detail-gradient,
.resource-detail-hero h1 span {
  display: inline-block;

  padding-right: 0.08em;
  padding-bottom: 0.12em;

  background:
    linear-gradient(135deg, #2563eb 0%, #5b4df5 46%, #7c3aed 72%, #14b8a6 100%);

  -webkit-background-clip: text;
  background-clip: text;

  color: transparent;
}

.resource-detail-intro {
  max-width: 840px;

  margin: clamp(28px, 4vw, 42px) auto 0;

  color: #5f6b7a;

  font-size: clamp(1.12rem, 1.9vw, 1.42rem);
  line-height: 1.72;

  text-align: center;
}

/* =========================================================
   Buttons / Actions
   ========================================================= */

.resource-detail-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;

  margin-top: 34px;
}

.resource-detail-actions.closing {
  justify-content: center;
}

.resource-detail-button,
.resource-detail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 48px;

  padding: 0 22px;

  border-radius: 999px;

  font-size: 15px;
  font-weight: 850;

  text-decoration: none !important;

  cursor: pointer;

  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease,
    background 0.22s ease;
}

.resource-detail-button:hover,
.resource-detail-btn:hover {
  transform: translateY(-2px);
}

.resource-detail-button.primary,
.resource-detail-button.primary:visited,
.resource-detail-btn.primary,
.resource-detail-btn.primary:visited {
  border: 0;

  background:
    linear-gradient(135deg, #07111f 0%, #123f9c 54%, #2563eb 100%);

  color: #ffffff !important;

  box-shadow:
    0 14px 30px rgba(36, 87, 214, 0.24);
}

.resource-detail-button.secondary,
.resource-detail-button.secondary:visited,
.resource-detail-btn.secondary,
.resource-detail-btn.secondary:visited {
  border: 1px solid #d8dee9;

  background: #ffffff;

  color: #111827 !important;

  box-shadow:
    0 10px 24px rgba(17, 24, 39, 0.045);
}

/* =========================================================
   Shared Sections
   ========================================================= */

.resource-detail-section {
  max-width: 880px;
  margin: 0 auto clamp(64px, 8vw, 104px);
}

.resource-detail-kicker {
  margin: 0 0 18px;

  background:
    linear-gradient(135deg, #2563eb, #7c3aed, #14b8a6);

  -webkit-background-clip: text;
  background-clip: text;

  color: transparent;

  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.resource-detail-section h2,
.resource-detail-demo-header h2,
.resource-detail-code-header h2,
.resource-detail-comparison-copy h2,
.resource-detail-closing h2 {
  margin: 0 0 24px;

  color: #111827;

  font-size: clamp(42px, 5vw, 70px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  font-weight: 460;

  text-wrap: balance;
}

.resource-detail-section p,
.resource-detail-demo-header p,
.resource-detail-code-header p,
.resource-detail-closing p {
  margin: 0 0 24px;

  color: #5f6472;

  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.7;
}

.resource-detail-section p:last-child,
.resource-detail-demo-header p:last-child,
.resource-detail-code-header p:last-child,
.resource-detail-closing p:last-child {
  margin-bottom: 0;
}

/* =========================================================
   Info Cards
   ========================================================= */

.resource-detail-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;

  margin: 0 auto clamp(64px, 8vw, 104px);
}

.resource-detail-info-card {
  padding: 26px;

  border: 1px solid rgba(17, 24, 39, 0.07);
  border-radius: 28px;

  background: #ffffff;

  box-shadow:
    0 18px 46px rgba(17, 24, 39, 0.055);
}

.resource-detail-info-card span {
  display: inline-flex;

  margin-bottom: 18px;
  padding: 8px 12px;

  border-radius: 999px;

  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.09), rgba(124, 58, 237, 0.09), rgba(20, 184, 166, 0.09));

  color: #6d28d9;

  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.resource-detail-info-card h3 {
  margin: 0 0 12px;

  color: #111827;

  font-size: 26px;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.resource-detail-info-card p {
  margin: 0;

  color: #5f6472;

  font-size: 16px;
  line-height: 1.65;
}

/* =========================================================
   Demo Wrapper
   ========================================================= */

.resource-detail-demo-section {
  margin: 0 auto clamp(64px, 8vw, 104px);
  padding: clamp(28px, 5vw, 52px);

  border: 1px solid transparent;
  border-radius: 42px;

  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, rgba(36, 87, 214, 0.25), rgba(124, 58, 237, 0.18), rgba(20, 184, 166, 0.18)) border-box;

  box-shadow:
    0 24px 70px rgba(17, 24, 39, 0.075);
}

.resource-detail-demo-header {
  max-width: 840px;
  margin: 0 auto 36px;
  text-align: center;
}

/* =========================================================
   Comparison / Design Notes
   ========================================================= */

.resource-detail-comparison {
  margin: 0 auto clamp(64px, 8vw, 104px);
  padding: clamp(28px, 5vw, 52px);

  border: 1px solid transparent;
  border-radius: 42px;

  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, rgba(36, 87, 214, 0.25), rgba(124, 58, 237, 0.18), rgba(20, 184, 166, 0.18)) border-box;

  box-shadow:
    0 24px 70px rgba(17, 24, 39, 0.075);
}

.resource-detail-comparison-copy {
  max-width: 840px;
  margin-bottom: 30px;
}

.resource-detail-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.resource-detail-column {
  padding: 28px;

  border: 1px solid rgba(17, 24, 39, 0.07);
  border-radius: 30px;

  background: #ffffff;

  box-shadow:
    0 18px 46px rgba(17, 24, 39, 0.05);
}

.resource-detail-column.strong {
  background:
    radial-gradient(circle at 92% 12%, rgba(124, 58, 237, 0.10), transparent 30%),
    radial-gradient(circle at 8% 88%, rgba(20, 184, 166, 0.10), transparent 30%),
    #ffffff;
}

.resource-detail-column span {
  display: inline-flex;

  margin-bottom: 18px;

  color: #6d28d9;

  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.resource-detail-column h3 {
  margin: 0 0 12px;

  color: #111827;

  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.resource-detail-column p {
  margin: 0;

  color: #5f6472;

  font-size: 17px;
  line-height: 1.65;
}

/* =========================================================
   Starter Code
   ========================================================= */

.resource-detail-code-section {
  margin: 0 auto clamp(64px, 8vw, 104px);
}

.resource-detail-code-header {
  max-width: 820px;
  margin: 0 auto 28px;
  text-align: center;
}

.resource-detail-code-box {
  border-radius: 30px;

  background: #080b12;

  box-shadow:
    0 24px 70px rgba(17, 24, 39, 0.14);

  overflow: hidden;
}

.resource-detail-code-box pre {
  margin: 0;
  padding: 28px;

  overflow-x: auto;

  color: #e5e7eb;

  font-size: 13px;
  line-height: 1.7;
}

.resource-detail-code-box code {
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    monospace;
}

/* =========================================================
   Mini Grid
   ========================================================= */

.resource-detail-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;

  margin-top: 30px;
}

.resource-detail-mini-grid div {
  padding: 24px;

  border: 1px solid rgba(17, 24, 39, 0.07);
  border-radius: 28px;

  background: #ffffff;

  box-shadow:
    0 18px 46px rgba(17, 24, 39, 0.055);
}

.resource-detail-mini-grid span {
  display: grid;
  place-items: center;

  width: 38px;
  height: 38px;

  margin-bottom: 18px;

  border-radius: 999px;

  background:
    linear-gradient(135deg, #2563eb 0%, #7c3aed 52%, #14b8a6 100%);

  color: #ffffff;

  font-size: 12px;
  font-weight: 900;
}

.resource-detail-mini-grid h3 {
  margin: 0 0 10px;

  color: #111827;

  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.resource-detail-mini-grid p {
  margin: 0;

  color: #5f6472;

  font-size: 15px;
  line-height: 1.62;
}

/* =========================================================
   Closing CTA
   ========================================================= */

.resource-detail-closing {
  max-width: 1040px;

  margin: 0 auto;
  padding: clamp(32px, 5vw, 54px);

  border: 1px solid rgba(17, 24, 39, 0.07);
  border-radius: 38px;

  background:
    radial-gradient(circle at 88% 14%, rgba(37, 99, 235, 0.10), transparent 30%),
    radial-gradient(circle at 12% 88%, rgba(20, 184, 166, 0.10), transparent 32%),
    #ffffff;

  box-shadow:
    0 22px 64px rgba(17, 24, 39, 0.07);

  text-align: center;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 920px) {
  .resource-detail-card-grid,
  .resource-detail-columns,
  .resource-detail-mini-grid {
    grid-template-columns: 1fr;
  }

  .resource-detail-hero h1 {
    font-size: clamp(3.75rem, 13.6vw, 7.2rem);
    line-height: 1.05;
  }
}

@media (max-width: 760px) {
  .resource-detail-page {
    padding: 52px 18px 72px;
  }

  .resource-detail-breadcrumb {
    margin-bottom: 34px;
    font-size: 0.88rem;
  }

  .resource-detail-hero {
    text-align: left;
  }

  .resource-detail-eyebrow {
    min-height: 46px;
    padding: 0 20px;
    letter-spacing: 0.2em;
  }

  .resource-detail-hero h1 {
    font-size: clamp(3.2rem, 15.2vw, 5.15rem);
    line-height: 1.06;
    letter-spacing: -0.056em;
    padding-bottom: 0.24em;
  }

  .resource-detail-gradient,
  .resource-detail-hero h1 span {
    padding-right: 0.06em;
    padding-bottom: 0.16em;
  }

  .resource-detail-intro {
    margin-left: 0;
    margin-right: 0;
    text-align: left;
    font-size: 1rem;
  }

  .resource-detail-actions {
    justify-content: flex-start;
  }

  .resource-detail-button,
  .resource-detail-btn {
    width: 100%;
  }

  .resource-detail-demo-header,
  .resource-detail-code-header {
    text-align: left;
  }

  .resource-detail-demo-section,
  .resource-detail-comparison,
  .resource-detail-closing {
    border-radius: 30px;
  }
}
