/* =========================================================
   LEARNING REWIRED STUDIO — TEMPLATES V1
   Location: /assets/css/studio-templates.css
   Page: /studio/templates/index.html
   ========================================================= */

:root {
  --st-bg: #eef2f7;
  --st-panel: #ffffff;
  --st-panel-soft: #f8fafc;
  --st-ink: #07111f;
  --st-muted: rgba(7, 17, 31, 0.62);
  --st-faint: rgba(7, 17, 31, 0.42);
  --st-line: rgba(15, 23, 42, 0.08);
  --st-blue: #2563eb;
  --st-blue-dark: #123f9c;
  --st-teal: #14b8a6;
  --st-shadow: 0 24px 70px rgba(15, 23, 42, 0.10);
  --st-shadow-soft: 0 14px 40px rgba(15, 23, 42, 0.07);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--st-bg);
  color: var(--st-ink);
}

.studio-templates-app,
.studio-templates-app button,
.studio-templates-app input {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

.studio-templates-app h1,
.studio-templates-app h2,
.studio-templates-app h3,
.studio-templates-app p {
  margin-top: 0;
}

a {
  color: inherit;
}

.studio-templates-app {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 0%, rgba(37, 99, 235, 0.13), transparent 32%),
    radial-gradient(circle at 88% 12%, rgba(20, 184, 166, 0.10), transparent 34%),
    linear-gradient(180deg, #f8fafc 0%, var(--st-bg) 100%);
}

/* =========================================================
   APP SHELL
   ========================================================= */

.st-v1 {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 310px;
  min-height: 100vh;
}

/* =========================================================
   LEFT SIDEBAR
   ========================================================= */

.st-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 26px 18px;
  border-right: 1px solid var(--st-line);
  background:
    radial-gradient(circle at 18% 4%, rgba(37, 99, 235, 0.12), transparent 32%),
    #07111f;
  color: #ffffff;
}

.st-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px;
  border-radius: 20px;
  color: #ffffff;
  text-decoration: none;
}

.st-brand-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  filter: drop-shadow(0 8px 18px rgba(20, 184, 166, 0.18));
}

.st-brand span {
  display: grid;
  gap: 2px;
}

.st-brand strong {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 950;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.st-brand em {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.st-nav {
  display: grid;
  gap: 8px;
}

.st-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.94rem;
  font-weight: 850;
  text-decoration: none;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

.st-nav a:hover {
  transform: translateX(2px);
  border-color: rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}

.st-nav a.is-active {
  border-color: rgba(147, 197, 253, 0.20);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.88), rgba(20, 184, 166, 0.42));
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.22);
}

.st-nav a span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.86rem;
}

.st-sidebar-card {
  margin-top: auto;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(20, 184, 166, 0.16), transparent 38%),
    rgba(255, 255, 255, 0.07);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.20);
}

.st-sidebar-card p {
  margin: 0 0 8px;
  color: #93c5fd;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.st-sidebar-card strong {
  display: block;
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 1.12rem;
  font-weight: 920;
  letter-spacing: -0.04em;
}

.st-sidebar-card span {
  display: block;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.86rem;
  line-height: 1.48;
}

.st-sidebar-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  width: 100%;
  border-radius: 999px;
  background: #ffffff;
  color: #07111f;
  font-size: 0.84rem;
  font-weight: 950;
  text-decoration: none;
}

/* =========================================================
   MAIN
   ========================================================= */

.st-main {
  min-width: 0;
  padding: 26px;
}

.st-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 20px;
}

.st-topbar-kicker,
.st-eyebrow {
  margin: 0 0 8px;
  color: var(--st-blue);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.st-topbar h1 {
  margin: 0;
  max-width: 760px;
  color: var(--st-ink);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 820;
  line-height: 1;
  letter-spacing: -0.055em;
}

.st-topbar-actions,
.st-method-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.st-topbar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 950;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.st-topbar-btn:hover {
  transform: translateY(-2px);
}

.st-topbar-btn.primary {
  background: linear-gradient(135deg, #080b12 0%, #123f9c 50%, #2563eb 100%);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.22);
}

.st-topbar-btn.secondary {
  border: 1px solid var(--st-line);
  background: #ffffff;
  color: var(--st-ink);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

/* =========================================================
   HERO
   ========================================================= */

.st-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  margin-bottom: 24px;
}

.st-hero-copy,
.st-hero-panel {
  border: 1px solid var(--st-line);
  border-radius: 36px;
  background: #ffffff;
  box-shadow: var(--st-shadow);
}

.st-hero-copy {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 56px);
  background:
    radial-gradient(circle at 90% 14%, rgba(37, 99, 235, 0.12), transparent 32%),
    radial-gradient(circle at 12% 90%, rgba(20, 184, 166, 0.10), transparent 34%),
    #ffffff;
}

.st-hero-copy h2 {
  max-width: 820px;
  margin: 0;
  color: var(--st-ink);
  font-size: clamp(42px, 5.5vw, 80px);
  font-weight: 760;
  line-height: 0.94;
  letter-spacing: -0.07em;
}

.st-hero-copy > p:not(.st-eyebrow) {
  max-width: 780px;
  margin: 24px 0 0;
  color: var(--st-muted);
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.68;
}

.st-template-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  max-width: 860px;
  margin-top: 30px;
  padding: 18px;
  border: 1px solid rgba(37, 99, 235, 0.13);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.07);
}

.st-template-preview span {
  display: block;
  margin-bottom: 8px;
  color: var(--st-blue);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.st-template-preview strong {
  display: block;
  margin-bottom: 8px;
  color: var(--st-ink);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.st-template-preview p {
  margin: 0;
  color: var(--st-muted);
  font-size: 0.9rem;
  line-height: 1.48;
}

.st-template-preview a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #080b12 0%, #123f9c 50%, #2563eb 100%);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 950;
  text-decoration: none;
  white-space: nowrap;
}

.st-hero-panel {
  padding: 22px;
}

.st-hero-panel > p {
  margin: 0 0 16px;
  color: var(--st-blue);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.st-status-list {
  display: grid;
  gap: 12px;
}

.st-status-list article {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 74px;
  padding: 14px;
  border: 1px solid var(--st-line);
  border-radius: 22px;
  background: #f8fafc;
}

.st-status-list article > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 17px;
  background: rgba(37, 99, 235, 0.09);
  color: var(--st-blue);
  font-weight: 950;
}

.st-status-list strong {
  display: block;
  margin-bottom: 3px;
  color: var(--st-ink);
  font-size: 0.98rem;
  font-weight: 950;
}

.st-status-list em {
  color: var(--st-muted);
  font-size: 0.82rem;
  font-style: normal;
}

/* =========================================================
   SECTIONS
   ========================================================= */

.st-section {
  margin-top: 26px;
}

.st-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 16px;
}

.st-section-heading h2 {
  margin: 0;
  max-width: 900px;
  color: var(--st-ink);
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 760;
  line-height: 1;
  letter-spacing: -0.055em;
}

/* =========================================================
   SHELVES
   ========================================================= */

.st-shelf-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.st-shelf-card {
  display: flex;
  flex-direction: column;
  min-height: 335px;
  padding: 22px;
  border: 1px solid var(--st-line);
  border-radius: 30px;
  background: #ffffff;
  box-shadow: var(--st-shadow-soft);
}

.st-shelf-card.featured {
  background:
    radial-gradient(circle at 86% 14%, rgba(37, 99, 235, 0.14), transparent 32%),
    radial-gradient(circle at 10% 90%, rgba(20, 184, 166, 0.10), transparent 34%),
    #ffffff;
}

.st-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 38px;
}

.st-card-topline span,
.st-card-topline strong {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.st-card-topline span {
  background: rgba(37, 99, 235, 0.08);
  color: var(--st-blue-dark);
}

.st-card-topline strong {
  background: #07111f;
  color: #ffffff;
}

.st-shelf-card h3 {
  margin: 0 0 14px;
  color: var(--st-ink);
  font-size: clamp(25px, 2.5vw, 34px);
  font-weight: 760;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.st-shelf-card p {
  margin: 0;
  color: var(--st-muted);
  font-size: 0.94rem;
  line-height: 1.58;
}

.st-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: auto;
  padding-top: 26px;
}

.st-card-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f8fafc;
  color: var(--st-blue-dark);
  font-size: 0.8rem;
  font-weight: 950;
  text-decoration: none;
}

/* =========================================================
   PIPELINE
   ========================================================= */

.st-pipeline-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.st-pipeline-card {
  min-height: 250px;
  padding: 22px;
  border: 1px solid var(--st-line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 86% 14%, rgba(37, 99, 235, 0.08), transparent 30%),
    #ffffff;
  box-shadow: var(--st-shadow-soft);
}

.st-pipeline-card span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 32px;
  border-radius: 18px;
  background: rgba(37, 99, 235, 0.09);
  color: var(--st-blue);
  font-size: 0.84rem;
  font-weight: 950;
}

.st-pipeline-card h3 {
  margin: 0 0 12px;
  color: var(--st-ink);
  font-size: 25px;
  font-weight: 760;
  line-height: 1;
  letter-spacing: -0.05em;
}

.st-pipeline-card p {
  margin: 0;
  color: var(--st-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* =========================================================
   METHOD PANEL
   ========================================================= */

.st-final-section {
  padding-bottom: 40px;
}

.st-method-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--st-line);
  border-radius: 34px;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.13), transparent 34%),
    radial-gradient(circle at bottom right, rgba(20, 184, 166, 0.10), transparent 36%),
    #ffffff;
  box-shadow: var(--st-shadow);
}

.st-method-panel h2 {
  margin: 0;
  color: var(--st-ink);
  font-size: clamp(30px, 3.5vw, 52px);
  font-weight: 760;
  line-height: 1;
  letter-spacing: -0.06em;
}

.st-method-panel p:not(.st-eyebrow) {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--st-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.st-method-actions {
  display: grid;
}

/* =========================================================
   RIGHT RAIL
   ========================================================= */

.st-right-rail {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 26px 18px 26px 0;
  overflow-y: auto;
}

.st-quick-card,
.st-note-card,
.st-member-card {
  border: 1px solid var(--st-line);
  border-radius: 30px;
  background: #ffffff;
  box-shadow: var(--st-shadow-soft);
}

.st-quick-card {
  padding: 20px;
}

.st-quick-card p {
  margin: 0 0 12px;
  color: var(--st-ink);
  font-size: 0.95rem;
  font-weight: 950;
}

.st-quick-card a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 16px;
  color: rgba(7, 17, 31, 0.72);
  font-size: 0.9rem;
  font-weight: 850;
  text-decoration: none;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.st-quick-card a:hover {
  transform: translateX(2px);
  background: #f8fafc;
  color: var(--st-blue-dark);
}

.st-quick-card a span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 11px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--st-blue);
}

.st-note-card {
  padding: 22px;
  background:
    radial-gradient(circle at 86% 16%, rgba(37, 99, 235, 0.10), transparent 34%),
    #ffffff;
}

.st-note-card p {
  margin: 0 0 16px;
  color: var(--st-blue);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.st-note-card h2 {
  margin: 0 0 12px;
  color: var(--st-ink);
  font-size: 1.52rem;
  font-weight: 760;
  line-height: 1;
  letter-spacing: -0.045em;
}

.st-note-card span {
  color: var(--st-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.st-member-card {
  padding: 24px;
  background:
    radial-gradient(circle at 86% 16%, rgba(37, 99, 235, 0.20), transparent 34%),
    radial-gradient(circle at 10% 90%, rgba(20, 184, 166, 0.14), transparent 34%),
    #07111f;
  color: #ffffff;
}

.st-member-card p {
  margin: 0 0 12px;
  color: #93c5fd;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.st-member-card h2 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 2.4rem;
  font-weight: 820;
  line-height: 1;
  letter-spacing: -0.06em;
}

.st-member-card span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  line-height: 1.5;
}

.st-member-card a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 42px;
  margin-top: 18px;
  border-radius: 999px;
  background: #ffffff;
  color: #07111f;
  font-size: 0.88rem;
  font-weight: 950;
  text-decoration: none;
}

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

@media (max-width: 1280px) {
  .st-v1 {
    grid-template-columns: 230px minmax(0, 1fr);
  }

  .st-right-rail {
    position: static;
    height: auto;
    grid-column: 2;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0 26px 34px;
  }

  .st-hero {
    grid-template-columns: 1fr;
  }

  .st-shelf-grid,
  .st-pipeline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .st-v1 {
    display: block;
  }

  .st-sidebar {
    position: static;
    height: auto;
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--st-line);
  }

  .st-brand {
    min-height: 46px;
  }

  .st-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .st-nav a {
    flex: 0 0 auto;
  }

  .st-sidebar-card {
    display: none;
  }

  .st-main {
    padding: 22px 16px;
  }

  .st-right-rail {
    display: grid;
    grid-template-columns: 1fr;
    padding: 0 16px 28px;
  }

  .st-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .st-topbar-actions {
    width: 100%;
  }

  .st-topbar-btn {
    flex: 1;
  }

  .st-method-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .st-hero-copy,
  .st-hero-panel,
  .st-shelf-card,
  .st-pipeline-card,
  .st-method-panel,
  .st-quick-card,
  .st-note-card,
  .st-member-card {
    border-radius: 28px;
  }

  .st-hero-copy {
    padding: 26px 22px;
  }

  .st-hero-copy h2 {
    font-size: clamp(38px, 13vw, 62px);
    line-height: 0.98;
    letter-spacing: -0.062em;
  }

  .st-template-preview {
    grid-template-columns: 1fr;
  }

  .st-template-preview a {
    width: 100%;
  }

  .st-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .st-shelf-grid,
  .st-pipeline-grid {
    grid-template-columns: 1fr;
  }

  .st-topbar-actions,
  .st-method-actions {
    display: grid;
    width: 100%;
  }

  .st-topbar-btn {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .st-main {
    padding: 18px 12px;
  }

  .st-sidebar {
    padding: 12px;
  }

  .st-right-rail {
    padding: 0 12px 24px;
  }

  .st-hero-copy {
    padding: 24px 20px;
  }

  .st-shelf-card,
  .st-pipeline-card {
    padding: 18px;
    border-radius: 24px;
  }

  .st-quick-card,
  .st-note-card,
  .st-member-card {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .st-nav a,
  .st-topbar-btn,
  .st-quick-card a {
    transition: none !important;
  }

  .st-nav a:hover,
  .st-topbar-btn:hover,
  .st-quick-card a:hover {
    transform: none !important;
  }
}
/* =========================================================
   STUDIO TEMPLATES — LINK ACTION PATCH
   ========================================================= */

.st-pipeline-card .st-card-actions {
  margin-top: 22px;
  padding-top: 0;
}
