/* Loopschema pages - shared styles
   Built on top of base.css (Outfit font, dark theme, lime accent) */

/* ===== NAV override: make logo a link ===== */
.nav .logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav .logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}
.nav .logo img {
  width: 28px;
  height: auto;
}
.nav .logo span {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}

/* ===== NAV (same as main site) ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1180px;
  margin: 0 auto;
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.005em;
  transition: color 160ms ease, gap 160ms ease;
}
.nav-cta::after {
  content: "→";
  color: var(--lime);
  transition: transform 160ms ease;
}
.nav-cta:hover {
  color: var(--lime);
  gap: 10px;
}

/* ===== ARTICLE LAYOUT ===== */
.article {
  padding: 40px 24px 80px;
}
.article-inner {
  max-width: 720px;
  margin: 0 auto;
}

/* breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--fg-3);
  margin-bottom: 32px;
}
.breadcrumb a {
  color: var(--fg-3);
  transition: color 160ms ease;
}
.breadcrumb a:hover {
  color: var(--lime);
}

/* header */
.article-header {
  margin-bottom: 48px;
}
.article-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(200, 255, 0, 0.12);
  border: 1px solid rgba(200, 255, 0, 0.3);
  border-radius: 9999px;
  color: var(--lime);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.article-header h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.article-meta {
  margin: 0;
  color: var(--fg-3);
  font-size: 15px;
  font-weight: 300;
}

/* sections */
.article-section {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 0.5px solid var(--line);
}
.article-section:last-of-type {
  border-bottom: none;
}
.article-section h2 {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.article-section h3 {
  margin: 28px 0 12px;
  font-size: 18px;
  font-weight: 600;
}
.article-section p {
  margin: 0 0 14px;
  color: var(--fg-2);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 300;
}
.article-section ul {
  margin: 0 0 14px;
  padding-left: 0;
  list-style: none;
}
.article-section li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  color: var(--fg-2);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 300;
}
.article-section li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
}

/* schema facts (key-value list) */
.schema-facts li {
  padding-left: 0;
}
.schema-facts li::before {
  display: none;
}
.schema-facts li strong {
  color: #fff;
}

/* schema download button */
.btn-schema {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: var(--lime);
  color: #000;
  font-weight: 700;
  font-size: 15px;
  border-radius: 9999px;
  transition: transform 160ms ease, box-shadow 160ms ease;
  margin: 8px 0 16px;
}
.btn-schema:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(200, 255, 0, 0.2);
}
.btn-icon {
  font-size: 18px;
}

/* import button, hidden until 2.8 is live */
.btn-import {
  display: none;
}
.btn-import.visible {
  display: inline-flex;
}

/* credit & fallback */
.schema-credit {
  font-size: 13px;
  color: var(--fg-4);
  font-style: italic;
}
.schema-link-fallback {
  font-size: 13px;
  color: var(--fg-4);
  margin-top: 8px;
}
.schema-link-fallback a {
  color: var(--lime);
}

/* placeholder notice */
.placeholder-notice {
  padding: 20px;
  background: var(--surface-2);
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--fg-3);
  font-size: 14px;
  text-align: center;
}

/* CTA section */
.article-cta {
  text-align: center;
  padding: 60px 0;
  margin-bottom: 48px;
  border-bottom: 0.5px solid var(--line);
}
.article-cta h2 {
  margin: 0 0 12px;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.article-cta p {
  color: var(--fg-2);
  font-size: 16px;
  font-weight: 300;
  margin: 0 0 24px;
}
.app-store-badge {
  display: inline-block;
  transition: transform 200ms ease;
}
.app-store-badge:hover {
  transform: translateY(-1px);
}
.app-store-badge img {
  display: block;
  height: 54px;
  width: auto;
}

/* disclaimer */
.disclaimer {
  padding: 16px 20px;
  background: var(--surface-1);
  border: 0.5px solid var(--line);
  border-radius: 12px;
  margin-bottom: 48px;
}
.disclaimer p {
  margin: 0;
  font-size: 13px;
  color: var(--fg-3);
  line-height: 1.6;
}
.disclaimer strong {
  color: var(--fg-2);
}

/* related plans */
.related-plans h2 {
  margin: 0 0 20px;
  font-size: 20px;
}
.plan-links {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}
.plan-links li {
  padding: 14px 0;
  border-bottom: 0.5px solid var(--line);
}
.plan-links li::before {
  display: none;
}
.plan-links li:first-child {
  border-top: 0.5px solid var(--line);
}
.plan-links a {
  color: #fff;
  font-weight: 500;
  font-size: 16px;
  transition: color 160ms ease;
}
.plan-links a:hover {
  color: var(--lime);
}
.plan-link-meta {
  display: block;
  color: var(--fg-4);
  font-size: 13px;
  margin-top: 2px;
}
.see-all-link {
  color: var(--lime);
  font-size: 14px;
  font-weight: 500;
}
.see-all-link:hover {
  text-decoration: underline;
}

/* ===== FOOTER (same as main site) ===== */
footer {
  border-top: 0.5px solid var(--line);
  padding: 32px 24px;
  color: var(--fg-3);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
}
footer a {
  color: var(--fg-2);
}
footer a:hover {
  color: var(--lime);
}
.footer-links {
  display: flex;
  gap: 18px;
}

/* ===== OVERVIEW PAGE ===== */
.overview-hero {
  padding: 60px 0 40px;
  text-align: center;
}
.overview-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}
.overview-hero h1 .lime {
  color: var(--lime);
}
.overview-hero p {
  color: var(--fg-2);
  font-size: 18px;
  font-weight: 300;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.55;
}

/* plan cards grid */
.plan-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin: 48px 0;
}
.plan-card {
  background: var(--surface-1);
  border: 0.5px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  transition: border-color 200ms ease, transform 200ms ease;
}
.plan-card:hover {
  border-color: rgba(200, 255, 0, 0.3);
  transform: translateY(-2px);
}
.plan-card-tag {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(200, 255, 0, 0.1);
  border-radius: 9999px;
  color: var(--lime);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.plan-card h2 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}
.plan-card p {
  margin: 0 0 16px;
  color: var(--fg-3);
  font-size: 14px;
  line-height: 1.5;
}
.plan-card-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--fg-4);
}
.plan-card a {
  color: inherit;
  text-decoration: none;
}

/* responsive */
@media (max-width: 600px) {
  .plan-cards {
    grid-template-columns: 1fr;
  }
}
