/* Emoji Lab — shared chrome for the creative tools
   (Emoji Mixer, Emoji Generator, Draw Emoji, Emoji to 3D, SVG to 3D).
   Loaded AFTER the tool styles: maps the tool variables onto the Emoji Lab palette
   and draws the same header / tabs / footer as the main app. */

:root,
[data-theme=dark] {
  --primary: #e94560;
  --primary-light: #ff6b81;
  --primary-dark: #d63850;
  --bg: #1a1a2e;
  --bg-card: #16213e;
  --bg-secondary: #0f3460;
  --card: rgba(255, 255, 255, 0.04);
  --text: #eeeeee;
  --text-muted: #9aa0b4;
  --border: #333;
  --accent: #e94560;
  --success: #22c55e;
  --warning: #f59e0b;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  max-width: 1000px;
  margin: 0 auto;
  padding: 15px;
  background: #1a1a2e;
  color: #eee;
}

/* ---------- header (same as the main Emoji Lab app) ---------- */
.header-container { position: relative; text-align: center; }
.site-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 10px 0 18px;
  text-decoration: none;
  color: #eee;
}
.site-logo img { width: 40px; height: 40px; object-fit: contain; }
.site-logo .site-name { margin: 0; font-size: 1.6em; font-weight: 700; color: #eee; line-height: 1.2; }
.seo-subtitle { color: #666; font-size: 0.8em; margin: 3px 0 0; font-weight: normal; }

/* ---------- tabs ---------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 15px;
  border-bottom: 2px solid #333;
  padding-bottom: 8px;
  justify-content: center;
}
.tabs a { text-decoration: none; }
.tab {
  padding: 6px 12px;
  background: #16213e;
  border: 1px solid #333;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  font-size: 12px;
  color: #aaa;
  transition: all 0.2s;
  white-space: nowrap;
}
.tab:hover { border-color: #e94560; color: #fff; }
.tab.active { background: #e94560; border-color: #e94560; color: #fff; }

/* ---------- page title ---------- */
h1.lab-page-title {
  text-align: center;
  font-size: 1.5em;
  font-weight: 700;
  color: #fff;
  margin: 6px 0 6px;
}

/* the tools were built for a 1200px wide page */
.container { max-width: 1000px; padding: 10px 0 20px; }

/* inputs inside tools on the dark background */
.search-input { color: var(--text); }
.search-input::placeholder { color: #777; }

/* buttons */
.btn-secondary { background: #16213e; color: #eee; border: 1px solid #333; }
.btn-secondary:hover { background: #1f2b4d; border-color: #e94560; }

/* SEO block */
.seo-content { color: #ddd; }
.seo-content h2 { color: #e94560; }
.seo-content p, .faq-item p { color: #aaa; }
.faq-item { background: rgba(255, 255, 255, 0.03); border-color: #333; }

/* toast */
.toast { background: #e94560; color: #fff; }
.toast-success { background: linear-gradient(135deg, #667eea, #764ba2); }
.toast-warning { background: #f59e0b; }

/* ---------- footer ---------- */
.lab-footer {
  text-align: center;
  margin-top: 40px;
  padding: 20px;
  color: #666;
  font-size: 13px;
  line-height: 1.8;
}
.lab-footer a { color: #e94560; text-decoration: none; }
.lab-footer a:hover { text-decoration: underline; }

@media (max-width: 768px) {
  body { padding: 8px; }
  .site-logo { flex-direction: column; gap: 4px; margin-bottom: 8px; }
  .site-logo .site-name { font-size: 1.4em; }
  .site-logo img { width: 36px; height: 36px; }
  .seo-subtitle { font-size: 0.7em; }
  .tabs { gap: 4px; }
  .tab { padding: 5px 8px; font-size: 11px; }
  h1.lab-page-title { font-size: 1.2em; }
}
@media (max-width: 400px) {
  .tab { padding: 5px 7px; font-size: 10.5px; }
}

/* ---------- "More in Emoji Lab" block ---------- */
.lab-more { max-width: 820px; margin: 34px auto 0; padding: 18px 16px; text-align: center;
  border-top: 1px solid #333; }
.lab-more h2 { font-size: 1.15rem; color: #fff; margin: 0 0 12px; }
.lab-more-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.lab-more-links a { padding: 8px 14px; border-radius: 999px; border: 1px solid #333; background: #16213e;
  color: #eee; text-decoration: none; font-size: 14px; transition: border-color .15s, color .15s; }
.lab-more-links a:hover { border-color: #e94560; color: #fff; }
