/* ==========================================================================
   SIDEBAR META BOX OVERHAUL (VonCMS Style)
   ========================================================================== */

#vonseowp_meta_box {
  background: white;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

#vonseowp_meta_box .inside {
  padding: 0;
  margin: 0;
}

.von-metabox-wrap {
  padding: 0;
  font-family: "Inter", sans-serif;
}

/* Icon Tabs */
.icon-tabs {
  display: flex !important;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 5px;
  gap: 5px;
}

.icon-tabs .von-meta-tab {
  flex: 1;
  padding: 8px 0;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.icon-tabs .von-meta-tab span {
  font-size: 18px;
  width: 18px;
  height: 18px;
}

.icon-tabs .von-meta-tab:hover {
  background: #f1f5f9;
  color: #4f46e5;
}

.icon-tabs .von-meta-tab.active {
  background: white;
  color: #4f46e5;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Content Sections */
.von-meta-content {
  padding: 15px;
  display: none;
}

.von-meta-content.active {
  display: block;
}

.von-sidebar-section {
  margin-bottom: 15px;
}

.von-sidebar-section label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 5px;
  letter-spacing: 0.5px;
}

.von-input-sm {
  width: 100%;
  padding: 8px 10px;
  font-size: 13px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fcfcfc;
  transition: all 0.2s;
}

.von-input-sm:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.05);
  outline: none;
  background: white;
}

textarea.von-input-sm {
  min-height: 70px;
}

/* Field Hint & Progress */
.von-field-hint {
  font-size: 10px;
  color: #94a3b8;
  margin-top: 4px;
}

.von-progress-mini {
  height: 6px;
  background: #f1f5f9;
  border-radius: 10px;
  margin-top: 6px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.von-progress-mini .bar {
  height: 100%;
  width: 0%;
  transition: width 0.3s;
}

.von-progress-mini .bar.good {
  background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.von-progress-mini .bar.acceptable {
  background: linear-gradient(90deg, #10b981 0%, #f59e0b 100%);
}

.von-progress-mini .bar.warn {
  background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
}

.von-progress-mini .bar.bad {
  background: linear-gradient(90deg, #ef4444 0%, #f87171 100%);
}

/* AI Buttons */
.von-btn-ai.compact {
  padding: 2px 6px;
  font-size: 9px;
  border-radius: 4px;
  font-weight: 700;
  /* background: #f3f4ff;
  color: #4f46e5;
  border: 1px solid #e2e8f0; */
}

/* Image Upload & Preview */
.von-image-upload-wrap {
  display: flex;
  gap: 5px;
}

.von-upload-icon-btn {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0 8px;
  cursor: pointer;
  color: #64748b;
}

.von-upload-icon-btn:hover {
  background: #e2e8f0;
  color: #1e293b;
}

/* Micro Google Preview */
.von-micro-preview-google {
  margin-top: 10px;
  padding: 10px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #f1f5f9;
}

.von-micro-preview-google .g-title {
  color: #1a0dab;
  font-size: 13px;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.von-micro-preview-google .g-desc {
  color: #4d5156;
  font-size: 11px;
  line-height: 1.4;
  height: 31px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
}

/* SEO Health Card */
.von-health-card {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: white;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 15px;
}

.von-health-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.von-health-score {
  text-align: center;
}

.von-health-score span {
  font-size: 24px;
  font-weight: 800;
  display: block;
  line-height: 1;
}

.von-health-score small {
  font-size: 9px;
  opacity: 0.6;
}

.von-health-meta h4 {
  margin: 0;
  font-size: 13px;
  color: white;
}

.von-optimization-label {
  font-size: 10px;
  color: #94a3b8;
}

.von-health-progress-wrap {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin-top: 12px;
  overflow: hidden;
}

.von-health-progress-bar {
  height: 100%;
  width: 0%;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.von-health-progress-bar.good {
  background: #10b981;
}

.von-health-progress-bar.warn {
  background: #f59e0b;
}

.von-health-progress-bar.bad {
  background: #ef4444;
}

/* Checklist */
.von-health-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.von-health-checklist li {
  font-size: 12px;
  margin-bottom: 10px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: #475569;
}

.von-health-checklist .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
  margin-top: 2px;
}

.von-health-checklist li.good {
  color: #059669;
}

.von-health-checklist li.good .dashicons {
  color: #10b981;
}

.von-health-checklist li.warn {
  color: #b45309;
}

.von-health-checklist li.warn .dashicons {
  color: #f59e0b;
}

.von-health-checklist li.bad {
  color: #dc2626;
}

.von-health-checklist li.bad .dashicons {
  color: #ef4444;
}

/* Competitors Section */
.competitor-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 10px !important;
}

.competitor-table th,
.competitor-table td {
  padding: 6px 4px;
  text-align: left;
  border-bottom: 1px solid #f1f5f9;
}

.competitor-table th {
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.competitor-table .val-gap {
  font-weight: 800;
}

.competitor-table .val-gap.good {
  color: #059669;
}

.competitor-table .val-gap.bad {
  color: #dc2626;
}

.von-ai-recommendation {
  margin-top: 15px;
  padding: 10px;
  background: #fdf2f8;
  border-radius: 8px;
  border: 1px solid #fce7f3;
  font-size: 11px;
  color: #9d174d;
}

.von-ai-recommendation strong {
  color: #be185d;
}

.von-health-checklist li.wait {
  color: #94a3b8;
}

/* FAQ Repeater */
.von-faq-row {
  background: #f8fafc;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  margin-bottom: 10px;
  position: relative;
}

.von-faq-row input {
  margin-bottom: 5px;
}

.von-remove-faq {
  background: transparent;
  border: none;
  color: #ef4444;
  font-size: 10px;
  cursor: pointer;
  padding: 0;
  margin-top: 5px;
  font-weight: 600;
}

.von-remove-faq:hover {
  text-decoration: underline;
}

.von-btn-secondary {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s;
}

.von-btn-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.von-btn-tool {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  background: #4f46e5;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.von-btn-tool .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

.von-btn-tool:hover {
  background: #4338ca;
}

.von-metabox-wrap hr {
  border: 0;
  border-top: 1px solid #f1f5f9;
  margin: 15px 0;
}
