/* meta-checker.css */

/* meta-checker.css */

.container.meta-tool-page {
  max-width: 1250px !important;
  width: 94% !important;
  box-sizing: border-box;
}

#meta-tool {
  width: 100%;
}

#meta-tool-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 14px;
  align-items: flex-start;
}

#meta-tool-grid .tool-left {
  flex: 0 0 47%;
  min-width: 300px;
  background: #fff;
  border: 1px solid #d9e2ec;
  border-radius: 3px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  box-sizing: border-box;
}

#meta-tool-grid .tool-right {
  flex: 1 1 0%;
  min-width: 400px;
  background: #fff;
  border: 1px solid #d9e2ec;
  border-radius: 3px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  box-sizing: border-box;
}

.tool-field-label {
  display: block;
  font-weight: 700;
  margin: 0 0 7px;
  color: #1f2937;
  font-size: 15px;
}

#meta-tool-grid input[type="text"],
#meta-tool-grid textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cfd8e3;
  border-radius: 2px;
  padding: 11px 13px;
  font-size: 15px;
  line-height: 1.45;
  outline: none;
  background: #fff;
  color: #111827;
  transition: border-color .15s;
}

#meta-tool-grid input[type="text"]:focus,
#meta-tool-grid textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,.11);
}

#meta-tool-grid textarea {
  min-height: 110px;
  resize: vertical;
}

.field-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 5px;
  font-size: 13px;
  color: #6b7280;
  gap: 8px;
}

.field-stat-row .stat-left {
  display: flex;
  gap: 10px;
  align-items: center;
}

.char-count { color: #6b7280; }
.px-count   { font-weight: 600; color: #374151; }

.field-status        { font-weight: 700; white-space: nowrap; }
.field-status.good   { color: #0f766e; }
.field-status.warn   { color: #b45309; }
.field-status.bad    { color: #b91c1c; }

.px-bar-track {
  height: 10px;
  background: #e5e7eb;
  border-radius: 2px;
  margin-top: 6px;
  overflow: hidden;
}

.px-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width .12s ease, background .12s ease;
  max-width: 100%;
}

.px-status {
  font-size: 11px;
  color: #6b7280;
  margin-top: 3px;
  text-align: right;
  min-height: 15px;
}

.px-status.over {
  color: #b91c1c;
  font-weight: 600;
}

.field-gap { height: 18px; }

.tool-note {
  margin-top: 12px;
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.5;
}

/* Preview */
.preview-label {
  font-weight: 700;
  color: #1f2937;
  font-size: 15px;
  margin-bottom: 8px;
}

.preview-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 10px;
}

.serp-box {
  border: 1px solid #e5e7eb;
  border-radius: 2px;
  background: #fafafa;
  padding: 14px 16px;
}

.serp-box .serp-domain {
  font-size: 13px;
  color: #5f6368;
  margin-bottom: 4px;
}

.serp-box .serp-title-display {
  font-size: 20px;
  line-height: 1.3;
  color: #1a0dab;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: block;
}

.serp-box .serp-desc-display {
  font-size: 14px;
  line-height: 1.58;
  color: #4d5156;
  word-break: break-word;
}

.save-row {
  text-align: right;
  margin-top: 10px;
}

.save-btn-link {
  font-size: 14px;
  font-weight: 700;
  color: #2563eb;
  text-decoration: none;
  cursor: pointer;
}

.save-btn-link:hover { text-decoration: underline; }

.save-hint {
  text-align: right;
  margin-top: 3px;
  font-size: 12px;
  color: #9ca3af;
}

.saved-section {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #e5e7eb;
}

.saved-section-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 10px;
  color: #111827;
}

.saved-tag-item {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 2px;
  padding: 11px 13px;
  margin-bottom: 10px;
}

.saved-tag-item .saved-timestamp  { font-size: 11px; color: #9ca3af; margin-bottom: 5px; }
.saved-tag-item .saved-title-text { font-size: 15px; font-weight: 700; color: #1a0dab; margin-bottom: 3px; word-break: break-word; }
.saved-tag-item .saved-desc-text  { font-size: 13px; line-height: 1.5; color: #4d5156; word-break: break-word; }

.saved-tag-item .saved-item-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}
.saved-item-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.copy-title-link {
  font-size: 13px;
  color: #2563eb;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.copy-title-link:hover { text-decoration: underline; }

.get-suggestions-link { font-size: 13px; color: #16a34a; font-weight: 700; cursor: pointer; }
.get-suggestions-link:hover { text-decoration: underline; }
.delete-saved-link { font-size: 13px; color: #b91c1c; text-decoration: none; font-weight: 700; }
.delete-saved-link:hover { text-decoration: underline; }

/* Suggestions */
.suggestions-wrap {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e5e7eb;
  display: none;
}

.suggestions-title { font-size: 16px; font-weight: 700; margin: 0 0 10px; color: #111827; }

.suggestion-item {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 2px;
  padding: 11px 13px;
  margin-bottom: 9px;
}

.suggestion-item .sug-title { font-size: 15px; font-weight: 700; color: #1a0dab; margin-bottom: 3px; word-break: break-word; }
.suggestion-item .sug-desc  { font-size: 13px; line-height: 1.5; color: #4d5156; word-break: break-word; }
.suggestion-item .sug-foot  { display: flex; justify-content: space-between; align-items: center; margin-top: 7px; font-size: 11px; color: #6b7280; }

.save-suggestion-link { font-size: 13px; color: #2563eb; font-weight: 700; cursor: pointer; text-decoration: none; }
.save-suggestion-link:hover { text-decoration: underline; }

.suggestions-loading { font-size: 13px; color: #6b7280; padding: 8px 0; display: none; }
.suggestions-error   { font-size: 13px; color: #b91c1c; padding: 6px 0; display: none; }

@media (max-width: 820px) {
  #meta-tool-grid .tool-left,
  #meta-tool-grid .tool-right { flex: 1 1 100%; }
}
