/* Thumbnail Lab Tool styles — /tools/thumbnail-lab */

.th-page {
  padding: 100px 24px 120px;
  max-width: 860px;
  margin: 0 auto;
}

/* Hero */
.th-hero { text-align: center; margin-bottom: 48px; }
.th-hero .eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.th-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800; line-height: 1.06; letter-spacing: -1.5px; margin-bottom: 16px;
}
.th-hero p { font-size: 17px; color: var(--text-muted); max-width: 560px; margin: 0 auto; line-height: 1.7; }

/* Input card */
.th-input-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px 36px; margin-bottom: 16px;
}
.th-input-label {
  display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.8px;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px;
}
.th-textarea {
  width: 100%; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 18px; font-size: 15px;
  font-family: var(--font-body); color: var(--text); outline: none;
  transition: border-color 0.18s; resize: vertical; min-height: 72px; box-sizing: border-box;
}
.th-textarea:focus { border-color: var(--accent); }
.th-textarea::placeholder { color: var(--text-muted); opacity: 0.6; }

.th-niche-row { display: flex; gap: 12px; align-items: flex-end; margin-top: 16px; flex-wrap: wrap; }
.th-niche-field { flex: 1; min-width: 200px; }
.th-select {
  width: 100%; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 18px; font-size: 15px;
  font-family: var(--font-body); color: var(--text); outline: none;
  transition: border-color 0.18s; box-sizing: border-box; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237E8089' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}
.th-select:focus { border-color: var(--accent); }
.th-select option { background: #1C1D22; color: var(--text); }

.th-btn {
  background: var(--accent); color: #fff; border: none; border-radius: var(--radius);
  padding: 14px 28px; font-family: var(--font-display); font-size: 14px;
  font-weight: 700; cursor: pointer; white-space: nowrap; transition: opacity 0.18s; flex-shrink: 0;
}
.th-btn:hover { opacity: 0.88; }
.th-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.th-error {
  display: none; color: #FF453A; font-size: 13px; margin-top: 12px; padding: 10px 14px;
  background: rgba(255,69,58,0.08); border: 1px solid rgba(255,69,58,0.2); border-radius: var(--radius);
}

/* Spinner */
.th-spinner {
  display: none; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff; border-radius: 50%; animation: th-spin 0.7s linear infinite;
  margin-right: 8px; vertical-align: middle;
}
@keyframes th-spin { to { transform: rotate(360deg); } }

/* Result section */
.th-result { display: none; }
.th-result.visible { display: block; }

/* Card */
.th-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 20px;
}
.th-card-header {
  padding: 14px 20px; font-size: 11px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--text-muted); background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.th-card-header.accent { color: var(--accent); }

/* SVG Thumbnails grid */
.th-concepts-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
  padding: 24px;
}
@media (max-width: 640px) { .th-concepts-grid { grid-template-columns: 1fr; } }

.th-concept {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: border-color 0.18s, transform 0.18s;
}
.th-concept:hover { border-color: var(--accent); transform: translateY(-2px); }

.th-concept-svg-wrap {
  width: 100%; aspect-ratio: 16/9; position: relative; overflow: hidden;
}
.th-concept-svg-wrap svg { width: 100%; height: 100%; display: block; }

.th-concept-meta { padding: 16px 18px; }
.th-concept-label {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 6px;
}
.th-concept-ctr {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
  color: #28C840; background: rgba(40,200,64,0.1); border: 1px solid rgba(40,200,64,0.25);
  border-radius: 4px; padding: 2px 8px; margin-bottom: 10px;
}
.th-concept-note {
  font-size: 12px; color: var(--text-muted); line-height: 1.6; margin-bottom: 8px;
}
.th-concept-detail {
  font-size: 11px; color: #4A4D57; line-height: 1.5;
  border-top: 1px solid var(--border); padding-top: 8px; margin-top: 8px;
}

/* Overlays table */
.th-overlay-table { width: 100%; border-collapse: collapse; }
.th-overlay-table th, .th-overlay-table td {
  padding: 10px 16px; text-align: left; font-size: 13px; border-top: 1px solid var(--border);
}
.th-overlay-table thead tr th { border-top: none; font-size: 11px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; color: var(--text-muted); background: var(--surface-2); }
.th-overlay-text { color: var(--text); font-weight: 700; letter-spacing: 0.5px; font-size: 13px; }
.th-overlay-reason { color: var(--text-muted); font-size: 12px; line-height: 1.5; }
.th-overlay-table td:last-child { width: 50px; text-align: center; }

/* Tier badges */
.tier-s { color: #28C840; font-weight: 700; font-size: 13px; }
.tier-a { color: #FF9F0A; font-weight: 700; font-size: 13px; }
.tier-b { color: var(--text-muted); font-weight: 700; font-size: 13px; }

/* Why-it-works card */
.th-why-block {
  padding: 24px;
  font-size: 14px; color: var(--text-muted); line-height: 1.8;
  border-left: 3px solid var(--accent);
  background: var(--surface-2);
}

/* Palette pill */
.th-palette-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 20px; border-bottom: 1px solid var(--border);
  font-size: 12px; color: var(--text-muted);
}
.th-palette-swatch {
  width: 16px; height: 16px; border-radius: 4px; flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.1);
}

/* Email capture */
.th-email-card {
  background: linear-gradient(135deg, rgba(255,107,44,0.06) 0%, rgba(255,107,44,0.02) 100%);
  border: 1px solid rgba(255,107,44,0.25);
  border-radius: var(--radius-lg); padding: 32px 36px; margin-bottom: 20px; text-align: center;
}
.th-email-card h3 {
  font-family: var(--font-display); font-size: 20px; font-weight: 700;
  letter-spacing: -0.5px; margin-bottom: 10px;
}
.th-email-card p { font-size: 14px; color: var(--text-muted); max-width: 460px; margin: 0 auto 24px; line-height: 1.6; }
.th-email-row { display: flex; gap: 10px; justify-content: center; max-width: 460px; margin: 0 auto; }
.th-email-input {
  flex: 1; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 13px 18px; font-size: 15px;
  font-family: var(--font-body); color: var(--text); outline: none;
  transition: border-color 0.18s;
}
.th-email-input:focus { border-color: var(--accent); }
.th-email-input::placeholder { color: var(--text-muted); opacity: 0.6; }
.th-email-btn {
  background: var(--accent); color: #fff; border: none; border-radius: var(--radius);
  padding: 13px 24px; font-family: var(--font-display); font-size: 14px;
  font-weight: 700; cursor: pointer; white-space: nowrap; transition: opacity 0.18s; flex-shrink: 0;
}
.th-email-btn:hover { opacity: 0.88; }
.th-email-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.th-email-success {
  display: none; color: #28C840; font-size: 13px; margin-top: 14px;
  font-weight: 600; letter-spacing: 0.3px;
}
.th-email-error {
  display: none; color: #FF453A; font-size: 13px; margin-top: 10px;
  padding: 8px 14px; background: rgba(255,69,58,0.08); border: 1px solid rgba(255,69,58,0.2);
  border-radius: var(--radius); max-width: 460px; margin-left: auto; margin-right: auto;
}

/* Cross-link footer */
.th-crosslinks {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 32px; margin-top: 12px;
}
.th-crosslinks h4 {
  font-size: 13px; font-weight: 700; letter-spacing: 0.5px; margin-bottom: 16px;
  color: var(--text-muted); text-transform: uppercase; font-size: 11px; letter-spacing: 1.2px;
}
.th-crosslink-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 540px) { .th-crosslink-cards { grid-template-columns: 1fr; } }
.th-crosslink-card {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px; text-decoration: none; display: block;
  transition: border-color 0.18s, background 0.18s;
}
.th-crosslink-card:hover { border-color: var(--accent); background: rgba(255,107,44,0.04); }
.th-crosslink-card strong { display: block; color: var(--accent); font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.th-crosslink-card span { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* Nav */
.th-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 32px; height: 64px; display: flex; align-items: center; justify-content: space-between;
  background: rgba(12,13,15,0.9); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.th-nav-logo { font-family: var(--font-display); font-size: 18px; font-weight: 800; letter-spacing: -0.5px; text-decoration: none; color: var(--text); }
.th-nav-logo span { color: var(--accent); }
.th-nav-links { display: flex; align-items: center; gap: 28px; }
.th-nav-links a { font-size: 14px; color: var(--text-muted); text-decoration: none; transition: color 0.18s; }
.th-nav-links a:hover { color: var(--text); }
.th-nav-cta { background: var(--accent) !important; color: #fff !important; padding: 8px 18px; border-radius: 6px; font-weight: 700 !important; font-size: 13px !important; }
