/* Shared styles for LuckyFind guide articles.
 * Designed for prose readability: narrow column, generous line-height,
 * careful vertical rhythm. Works alongside the main site's Bootstrap
 * + template CSS without collision. */

:root {
  --lf-text: #1a2033;
  --lf-text-muted: #4a5475;
  --lf-text-dim: #6b7591;
  --lf-heading: #0c1225;
  --lf-accent: #1c9915;
  --lf-accent-dark: #056300;
  --lf-border: #e4e8f2;
  --lf-surface: #fff;
  --lf-surface-tint: #fafbfd;
}

body {
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--lf-text);
  background: #fff;
  line-height: 1.65;
}

/* Simpler, dedicated article header (not the fixed-transparent one from home). */
.guide-header {
  background: linear-gradient(135deg, #1c9915 0%, #056300 100%);
  color: #fff;
  padding: 100px 20px 40px;
}

.guide-header .container {
  max-width: 820px;
  margin: 0 auto;
}

.guide-header .breadcrumbs {
  font-size: 13px;
  opacity: 0.8;
  margin-bottom: 16px;
}

.guide-header .breadcrumbs a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}
.guide-header .breadcrumbs a:hover { color: #fff; text-decoration: underline; }

.guide-header h1 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.2;
  margin: 0 0 14px;
  color: #fff;
}

.guide-header .meta {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.guide-header .meta span { display: inline-flex; align-items: center; gap: 6px; }

.guide-header .byline {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.guide-header .byline span:first-child {
  font-weight: 600;
}

/* Logo link in header */
.guide-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}
.guide-topbar a.brand {
  color: #fff;
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 20px;
}
.guide-topbar a.brand:hover { color: var(--lf-accent); }

/* Article container */
.guide-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.guide-body .lede {
  font-size: 1.18rem;
  color: var(--lf-text);
  line-height: 1.65;
  margin: 0 0 32px;
  font-weight: 400;
}

.guide-body .lede::first-letter {
  font-family: "Montserrat", sans-serif;
  font-size: 3.4rem;
  font-weight: 700;
  color: var(--lf-accent-dark);
  float: left;
  line-height: 0.95;
  margin: 4px 10px 0 0;
}

.guide-body h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--lf-heading);
  margin: 48px 0 16px;
  padding: 4px 0 4px 16px;
  border-left: 4px solid var(--lf-accent);
  line-height: 1.25;
}

.guide-body h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--lf-heading);
  margin: 28px 0 10px;
}

.guide-body p, .guide-body li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--lf-text);
}

.guide-body p { margin: 0 0 16px; }

.guide-body ul, .guide-body ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.guide-body li { margin-bottom: 6px; }

.guide-body a {
  color: var(--lf-accent-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.guide-body a:hover { color: var(--lf-accent); }

.guide-body strong { color: var(--lf-heading); }

/* Article figures — full-bleed-ish, captioned, placeholder-friendly. */
.guide-body figure {
  margin: 28px 0;
  padding: 0;
}

.guide-body figure img {
  width: 100%;
  height: auto;
  max-height: 540px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  background: #f4f6fb;
}

.guide-body figure figcaption {
  font-size: 13px;
  color: var(--lf-text-dim);
  margin-top: 8px;
  font-style: italic;
  text-align: center;
  line-height: 1.45;
}

/* Placeholder box when an image file hasn't been dropped in yet.
 * Shows the planned aspect ratio, a caption, and a note of what to shoot. */
.figure-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  border: 2px dashed #cbd2e3;
  background:
    repeating-linear-gradient(
      45deg,
      #f4f6fb,
      #f4f6fb 10px,
      #eff1f7 10px,
      #eff1f7 20px
    );
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lf-text-dim);
  font-size: 13px;
  font-style: italic;
  padding: 16px;
  text-align: center;
}

/* Inline SVG diagrams use this wrapper */
.guide-diagram {
  background: #fff;
  border: 1px solid var(--lf-border);
  border-radius: 12px;
  padding: 18px;
  margin: 24px 0;
  text-align: center;
}

.guide-diagram svg {
  max-width: 100%;
  height: auto;
}

.guide-body blockquote {
  margin: 24px 0;
  padding: 14px 20px;
  border-left: 4px solid var(--lf-accent);
  background: var(--lf-surface-tint);
  color: var(--lf-text-muted);
  font-style: italic;
}

/* Table of contents card */
.toc {
  background: var(--lf-surface-tint);
  border: 1px solid var(--lf-border);
  border-left: 4px solid var(--lf-accent);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 0 0 36px;
}

.toc-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--lf-text-dim);
  margin: 0 0 10px;
}

.toc ol {
  margin: 0;
  padding-left: 20px;
  counter-reset: toc;
}

.toc ol li {
  font-size: 15px;
  margin-bottom: 4px;
  line-height: 1.4;
}

.toc ol li a {
  color: var(--lf-text);
  text-decoration: none;
}
.toc ol li a:hover { color: var(--lf-accent-dark); text-decoration: underline; }

/* Callout box — for highlighting the app */
.app-callout {
  background: linear-gradient(135deg, #ecfbe8 0%, #c8efbf 100%);
  border: 1px solid #8fcf82;
  border-radius: 12px;
  padding: 18px 22px;
  margin: 28px 0;
}

.app-callout-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: var(--lf-accent-dark);
  margin: 0 0 6px;
  font-size: 15px;
}

.app-callout p { margin: 0; color: var(--lf-text); font-size: 15px; }

.app-callout a { font-weight: 700; }

/* FAQ accordion block */
.faq {
  margin-top: 40px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--lf-border);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 10px;
}

.faq-item dt {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: var(--lf-heading);
  font-size: 16px;
  margin-bottom: 6px;
}

.faq-item dd {
  margin: 0;
  color: var(--lf-text);
  font-size: 15px;
  line-height: 1.65;
}

/* Download buttons */
.download-row {
  display: flex;
  gap: 12px;
  margin: 28px 0;
  flex-wrap: wrap;
  justify-content: center;
}

.download-row img {
  height: 54px;
  width: auto;
}

/* Footer lockup under every article */
.guide-footer-cta {
  margin: 48px 0 0;
  padding: 36px 24px;
  background: var(--lf-surface-tint);
  border: 1px solid var(--lf-border);
  border-radius: 14px;
  text-align: center;
}

.guide-footer-cta h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.4rem;
  color: var(--lf-heading);
  margin: 0 0 10px;
}

.guide-footer-cta p {
  color: var(--lf-text-muted);
  max-width: 540px;
  margin: 0 auto 20px;
}

/* Related guides list (ready for future articles) */
.related-guides {
  margin: 48px 0 0;
}

.related-guides h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--lf-text-dim);
  margin: 0 0 14px;
}

.related-guides ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related-guides li {
  padding: 14px 0;
  border-bottom: 1px solid var(--lf-border);
}

.related-guides li:last-child { border-bottom: 0; }

.related-guides a {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  color: var(--lf-heading);
  text-decoration: none;
}
.related-guides a:hover { color: var(--lf-accent-dark); }

/* Minimal site footer */
.guide-site-footer {
  background: #032d00;
  color: rgba(255, 255, 255, 0.7);
  padding: 30px 20px;
  text-align: center;
  font-size: 13px;
  margin-top: 60px;
}

.guide-site-footer a { color: rgba(255, 255, 255, 0.9); text-decoration: none; }
.guide-site-footer a:hover { color: var(--lf-accent); text-decoration: underline; }
