/* ── YouTube SEO Generator — Plugin Styles ───────────────────────────── */

.ytseo-wrap {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  max-width: 820px;
  margin: 0 auto;
  color: #1a1a2e;
}

/* Header */
.ytseo-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.ytseo-logo { width: 44px; height: 44px; flex-shrink: 0; }
.ytseo-title {
  margin: 0 0 2px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.2;
}
.ytseo-subtitle {
  margin: 0;
  font-size: 0.875rem;
  color: #6b7280;
}

/* Form card */
.ytseo-form-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 28px;
  margin-bottom: 28px;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
}

.ytseo-field {
  margin-bottom: 18px;
  flex: 1;
}
.ytseo-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.ytseo-req { color: #ef4444; }

.ytseo-field input[type="text"],
.ytseo-field input[type="number"],
.ytseo-field select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.9375rem;
  color: #1a1a2e;
  background: #f9fafb;
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
}
.ytseo-field input:focus,
.ytseo-field select:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,.15);
  background: #fff;
}

.ytseo-row {
  display: flex;
  gap: 16px;
}
@media (max-width: 600px) {
  .ytseo-row { flex-direction: column; }
}

/* Generate button */
.ytseo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 24px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .2s, transform .15s;
  margin-top: 6px;
  letter-spacing: .02em;
}
.ytseo-btn:hover  { opacity: .92; transform: translateY(-1px); }
.ytseo-btn:active { transform: translateY(0); }
.ytseo-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.ytseo-spinner {
  width: 18px; height: 18px;
  border: 3px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ytseo-spin .7s linear infinite;
}
@keyframes ytseo-spin { to { transform: rotate(360deg); } }

/* Error */
.ytseo-error {
  margin-top: 14px;
  padding: 12px 16px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #b91c1c;
  font-size: 0.9rem;
}

/* ── Results sections ─────────────────────────────────────── */
.ytseo-section {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 20px;
  box-shadow: 0 1px 6px rgba(0,0,0,.05);
}
.ytseo-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.ytseo-section-hint {
  margin: 0;
  font-size: 0.8rem;
  color: #9ca3af;
  flex: 1;
}

/* Badges */
.ytseo-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: .08em;
}
.ytseo-badge-red    { background: #fee2e2; color: #b91c1c; }
.ytseo-badge-blue   { background: #dbeafe; color: #1d4ed8; }
.ytseo-badge-green  { background: #dcfce7; color: #166534; }
.ytseo-badge-purple { background: #ede9fe; color: #5b21b6; }

/* Titles */
.ytseo-titles-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ytseo-title-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  background: #f9fafb;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.ytseo-title-card:hover { border-color: #6366f1; background: #f5f3ff; }
.ytseo-title-num {
  width: 26px; height: 26px;
  background: #e0e7ff;
  color: #4338ca;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700; flex-shrink: 0;
}
.ytseo-title-text { flex: 1; font-size: .9375rem; font-weight: 500; }
.ytseo-title-len  { font-size: .75rem; color: #9ca3af; flex-shrink: 0; }
.ytseo-title-len.over { color: #ef4444; }
.ytseo-title-copy-btn {
  padding: 4px 10px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: .75rem;
  font-weight: 600;
  cursor: pointer;
  color: #374151;
  transition: background .2s;
  flex-shrink: 0;
}
.ytseo-title-copy-btn:hover { background: #f3f4f6; }

/* Description */
.ytseo-description-box {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px;
  max-height: 280px;
  overflow-y: auto;
}
.ytseo-description-box pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
  font-size: .9rem;
  color: #374151;
  line-height: 1.7;
}

/* Tags */
.ytseo-tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.ytseo-tag {
  padding: 5px 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 20px;
  font-size: .8125rem;
  font-weight: 500;
  color: #166534;
  cursor: default;
  transition: background .15s;
}
.ytseo-tag:hover { background: #dcfce7; }
.ytseo-tags-plain {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: .8rem;
  color: #6b7280;
  background: #f9fafb;
  resize: none;
  height: 56px;
  box-sizing: border-box;
}

/* SEO Tips */
.ytseo-tips-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ytseo-tips-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .9rem;
  color: #374151;
  line-height: 1.55;
}
.ytseo-tip-icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  background: #ede9fe;
  color: #6d28d9;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700;
  margin-top: 1px;
}

/* Copy button */
.ytseo-copy-btn {
  margin-left: auto;
  padding: 4px 14px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 7px;
  font-size: .75rem;
  font-weight: 600;
  cursor: pointer;
  color: #374151;
  transition: background .2s, color .2s;
}
.ytseo-copy-btn:hover   { background: #f3f4f6; }
.ytseo-copy-btn.copied  { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
