/*
 * Theme Effects — Adapted from Adventures in Claude Theme Studio
 *
 * Effects are toggled via data-effects attribute on <html>:
 *   <html data-effects="dropcaps dashed-borders grid-bg">
 *
 * Uses [data-effects~="name"] (whitespace-separated word match) so
 * multiple effects can be active simultaneously.
 */

/* ── Drop Caps ────────────────────────────────────────────────────────── */
[data-effects~="dropcaps"] .about-body p:first-of-type::first-letter,
[data-effects~="dropcaps"] .hero-tagline::first-letter {
  float: left;
  font-size: 3.5em;
  line-height: 0.8;
  padding-right: 0.1em;
  font-weight: 700;
  font-family: var(--heading-font);
  color: var(--primary);
}

/* ── Dashed Borders ───────────────────────────────────────────────────── */
[data-effects~="dashed-borders"] .card {
  border-style: dashed;
}

[data-effects~="dashed-borders"] .faq-item {
  border-bottom-style: dashed;
}

[data-effects~="dashed-borders"] .footer-bottom {
  border-top-style: dashed;
}

/* ── Grid Background ──────────────────────────────────────────────────── */
[data-effects~="grid-bg"] {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ── Text Glow ────────────────────────────────────────────────────────── */
[data-effects~="text-glow"] h1,
[data-effects~="text-glow"] h2 {
  text-shadow: 0 0 20px rgba(var(--primary-rgb, 59, 130, 246), 0.3);
}

/* ── Grayscale Images ─────────────────────────────────────────────────── */
[data-effects~="grayscale"] img {
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

[data-effects~="grayscale"] img:hover {
  filter: grayscale(0%);
}

/* ── Color Accents ────────────────────────────────────────────────────── */
[data-effects~="color-accents"] .section-header h2 {
  background: linear-gradient(135deg, var(--primary), var(--accent, var(--primary)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-effects~="color-accents"] .card {
  border-top: 3px solid var(--primary);
}

/* ── Sticky TOC (placeholder for blog integration) ────────────────────── */
/* Not applicable to landing pages — included for future blog support */

/* ── Section Break: Asterisks ─────────────────────────────────────────── */
[data-effects~="hr-asterisks"] hr {
  border: none;
  text-align: center;
  overflow: visible;
  height: 2em;
}

[data-effects~="hr-asterisks"] hr::before {
  content: "* * *";
  display: block;
  font-size: 1.2em;
  letter-spacing: 1em;
  color: var(--muted);
}

/* ── Section Break: Bar ───────────────────────────────────────────────── */
[data-effects~="hr-bar"] hr {
  border: none;
  height: 4px;
  background: var(--primary);
  max-width: 60px;
  margin: 2rem auto;
  border-radius: 2px;
}

/* ── Section Break: None ──────────────────────────────────────────────── */
[data-effects~="hr-none"] hr {
  display: none;
}

/* ── Link Style: Dotted Underline ─────────────────────────────────────── */
[data-effects~="link-dotted"] a:not(.btn) {
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}

/* ── Link Style: Thick Underline ──────────────────────────────────────── */
[data-effects~="link-thick"] a:not(.btn) {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

/* ── Link Style: Highlight ────────────────────────────────────────────── */
[data-effects~="link-highlight"] a:not(.btn) {
  text-decoration: none;
  background-image: linear-gradient(transparent 60%, rgba(var(--primary-rgb, 59, 130, 246), 0.15) 60%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

/* ── Blockquote: Dashed ───────────────────────────────────────────────── */
[data-effects~="bq-dashed"] blockquote,
[data-effects~="bq-dashed"] .testimonial-quote {
  border-left: 3px dashed var(--muted);
  padding-left: 1.5em;
}

/* ── Blockquote: Pullquote ────────────────────────────────────────────── */
[data-effects~="bq-pullquote"] blockquote,
[data-effects~="bq-pullquote"] .testimonial-quote {
  font-size: 1.3em;
  font-style: italic;
  text-align: center;
  border: none;
  padding: 1em 2em;
  position: relative;
}

[data-effects~="bq-pullquote"] blockquote::before,
[data-effects~="bq-pullquote"] .testimonial-quote::before {
  content: "\201C";
  font-size: 4em;
  line-height: 1;
  position: absolute;
  top: -0.2em;
  left: 0;
  color: var(--muted);
  opacity: 0.3;
}

/* ── Blockquote: Italic ───────────────────────────────────────────────── */
[data-effects~="bq-italic"] blockquote,
[data-effects~="bq-italic"] .testimonial-quote {
  font-style: italic;
  border-left: 3px solid var(--muted);
  padding-left: 1.5em;
  opacity: 0.85;
}
