/* Shared styles for Tamleli Pro SEO landing pages – matches app color scheme */

:root {
  --tamleli-bg: #E8E4DC;
  --tamleli-card: #FFFFFF;
  --tamleli-border: #D1CDC6;
  --tamleli-text: #1F2937;
  --tamleli-muted: #6B6560;
  --tamleli-primary: #2563EB;
  --tamleli-primary-dark: #1E3A8A;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--tamleli-bg);
  color: var(--tamleli-text);
  line-height: 1.6;
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

header {
  border-bottom: 1px solid var(--tamleli-border);
  padding: 1rem 0;
  background: var(--tamleli-card);
}

header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header a {
  color: var(--tamleli-primary);
  font-weight: 600;
  text-decoration: none;
}

header a:hover { text-decoration: underline; }

main { padding: 2rem 0 3rem; }

h1 {
  font-size: 1.75rem;
  margin: 0 0 1rem;
  font-weight: 700;
}

h2 {
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
  font-weight: 600;
}

p {
  margin: 0 0 1rem;
  color: var(--tamleli-text);
}

section { margin-bottom: 2.5rem; }

.media-block { margin: 2rem 0; text-align: center; }

.media-frame {
  display: inline-block;
  position: relative;
  padding: 12px;
  background: var(--tamleli-card);
  border: 1px solid var(--tamleli-border);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  cursor: pointer;
}

.media-frame img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.media-frame .zoom-hint {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  pointer-events: none;
}

.media-frame .zoom-hint svg {
  width: 20px;
  height: 20px;
}

/* Full-screen image modal */
.seo-image-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  cursor: pointer;
}

.seo-image-modal.is-open {
  display: flex;
}

.seo-image-modal img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  pointer-events: none;
  border-radius: 8px;
}

.media-caption {
  font-size: 0.875rem;
  color: var(--tamleli-muted);
  margin-top: 0.75rem;
}

.cta-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--tamleli-primary);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  margin-top: 0.5rem;
}

.cta-button:hover { background: var(--tamleli-primary-dark); }

.related {
  border-top: 1px solid var(--tamleli-border);
  padding-top: 1.5rem;
}

.related ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.related a {
  color: var(--tamleli-primary);
  text-decoration: none;
}

.related a:hover { text-decoration: underline; }

footer {
  border-top: 1px solid var(--tamleli-border);
  padding: 1rem 0;
  font-size: 0.875rem;
  color: var(--tamleli-muted);
  background: var(--tamleli-card);
}
