/* © 2026 ToolsFlash.com — Meta Tag Previewer tool styles */

.mt-opt {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
}
.mt-count {
  margin: 0.3rem 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.mt-count.warn { color: #d97706; }
.mt-count.bad { color: #dc2626; font-weight: 600; }

.mt-previews { margin-top: 1.5rem; }
.mt-ph {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 1.5rem 0 0.6rem;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.mt-ph i { color: var(--primary); }

/* Google SERP mockup — always light like real Google */
.mt-serp {
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  font-family: arial, sans-serif;
}
.mt-serp-top {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}
.mt-favicon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f1f3f4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5f6368;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.mt-serp-site { font-size: 0.85rem; color: #202124; line-height: 1.3; }
.mt-serp-url { font-size: 0.75rem; color: #4d5156; word-break: break-all; }
.mt-serp-title {
  font-size: 1.22rem;
  color: #1a0dab;
  line-height: 1.3;
  margin-bottom: 0.25rem;
  cursor: pointer;
}
.mt-serp-title:hover { text-decoration: underline; }
.mt-serp-desc { font-size: 0.87rem; color: #4d5156; line-height: 1.55; }

/* Facebook card mockup */
.mt-fb {
  border: 1px solid #dadde1;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  max-width: 520px;
}
.mt-fb-img, .mt-tw-img {
  aspect-ratio: 1.91 / 1;
  background: #f0f2f5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: #8a8d91;
  font-size: 0.8rem;
  background-size: cover;
  background-position: center;
}
.mt-fb-img i, .mt-tw-img i { font-size: 1.6rem; }
.mt-fb-img.has-img i, .mt-fb-img.has-img span,
.mt-tw-img.has-img i, .mt-tw-img.has-img span { display: none; }
.mt-fb-body {
  padding: 0.65rem 0.9rem 0.8rem;
  background: #f0f2f5;
  font-family: Helvetica, Arial, sans-serif;
}
.mt-fb-domain {
  font-size: 0.72rem;
  color: #606770;
  letter-spacing: 0.02em;
  margin-bottom: 0.2rem;
}
.mt-fb-title {
  font-size: 0.98rem;
  font-weight: 600;
  color: #1c1e21;
  line-height: 1.3;
  margin-bottom: 0.15rem;
}
.mt-fb-desc { font-size: 0.83rem; color: #606770; line-height: 1.4; }

/* Twitter/X card mockup */
.mt-tw {
  border: 1px solid #cfd9de;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  max-width: 520px;
}
.mt-tw-body { padding: 0.7rem 0.95rem 0.85rem; font-family: -apple-system, 'Segoe UI', Roboto, sans-serif; }
.mt-tw-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f1419;
  line-height: 1.3;
  margin-bottom: 0.15rem;
}
.mt-tw-desc { font-size: 0.85rem; color: #536471; line-height: 1.4; margin-bottom: 0.25rem; }
.mt-tw-domain { font-size: 0.8rem; color: #536471; }

/* Mockups stay light in dark mode (they simulate the real platforms) —
   just soften the outer borders */
[data-theme="dark"] .mt-serp,
[data-theme="dark"] .mt-fb,
[data-theme="dark"] .mt-tw { border-color: #3f4753; }

.mt-warns { margin-top: 1.25rem; }
.mt-warn {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0.4rem 0 0;
  padding: 0.55rem 0.8rem;
  font-size: 0.83rem;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #92400e;
}
.mt-warn i { margin-top: 2px; color: #d97706; }
[data-theme="dark"] .mt-warn { color: #fcd34d; }

.mt-code {
  margin: 0.5rem 0 0.85rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-card);
  overflow-x: auto;
}
.mt-code code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--primary-dark);
  white-space: pre;
}

@media (max-width: 640px) {
  .mt-serp { padding: 0.85rem 1rem; }
  .mt-serp-title { font-size: 1.05rem; }
}
