/**
 * Head Cleanup Settings Styles
 * Sidebar shell content styles
 */

/* Settings Container */
.prorank-head-cleanup-settings {
  padding: 20px 0;
}

/* Settings Tabs */
.prorank-head-cleanup-settings .prorank-settings-tabs {
  margin-bottom: 20px;
}

.prorank-head-cleanup-settings .components-tab-panel__tabs {
  border-bottom: 1px solid var(--pr-gray-200, #e4e4e7);
  margin-bottom: 20px;
}

.prorank-head-cleanup-settings .components-tab-panel__tabs-item {
  padding: 12px 20px;
  font-weight: 500;
  color: var(--pr-gray-600, #52525b);
  border-bottom: 2px solid transparent;
  transition: var(--pr-transition-fast, all 0.15s ease);
}

.prorank-head-cleanup-settings .components-tab-panel__tabs-item.is-active {
  color: var(--pr-primary, #2563eb);
  border-bottom-color: var(--pr-primary, #2563eb);
}

/* Settings Content */
.prorank-settings-content > * + * {
  margin-top: 20px;
}

/* Settings Groups */
.prorank-settings-group {
  margin-top: 24px;
}

.prorank-settings-group > * + * {
  margin-top: 16px;
}

/* Cards */
.prorank-head-cleanup-settings .components-card {
  border: 1px solid var(--pr-gray-200, #e4e4e7);
  border-radius: 8px;
  box-shadow: none;
}

.prorank-head-cleanup-settings .components-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--pr-gray-900, #18181b);
}

.prorank-head-cleanup-settings .components-card p {
  margin-bottom: 16px;
  color: var(--pr-gray-600, #52525b);
  line-height: 1.6;
}

/* Toggle Controls */
.prorank-head-cleanup-settings .components-toggle-control {
  margin-bottom: 0;
}

.prorank-head-cleanup-settings .components-toggle-control__label {
  font-weight: 500;
}

.prorank-head-cleanup-settings .components-base-control__help {
  margin-top: 8px;
  font-size: 13px;
  color: var(--pr-gray-600, #52525b);
}

/* Range Control */
.prorank-head-cleanup-settings .components-range-control {
  margin-top: 16px;
}

.prorank-head-cleanup-settings .components-range-control__wrapper {
  padding: 12px 0;
}

.prorank-head-cleanup-settings .components-range-control__mark {
  font-size: 11px;
  color: var(--pr-gray-500, #71717a);
}

/* Status Grid */
.prorank-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.prorank-status-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--pr-gray-50, #fafafa);
  border: 1px solid var(--pr-gray-200, #e4e4e7);
  border-radius: 6px;
  font-size: 14px;
}

.prorank-status-item.is-active {
  background: rgb(239 68 68 / 5%);
  border-color: rgb(239 68 68 / 20%);
}

.prorank-status-item.is-removed {
  background: rgb(16 185 129 / 5%);
  border-color: rgb(16 185 129 / 20%);
}

.prorank-status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.prorank-status-item.is-active .prorank-status-indicator {
  background: var(--pr-accent-red, #ef4444);
}

.prorank-status-item.is-removed .prorank-status-indicator {
  background: var(--pr-accent-green, #10b981);
}

.prorank-status-label {
  flex: 1;
  font-weight: 500;
  color: var(--pr-gray-700, #3f3f46);
}

.prorank-status-value {
  font-size: 13px;
  color: var(--pr-gray-600, #52525b);
}

/* Status Summary */
.prorank-status-summary {
  margin-top: 20px;
  padding: 16px;
  background: var(--pr-gray-50, #fafafa);
  border-radius: 6px;
  text-align: center;
}

.prorank-status-summary p {
  margin: 0;
  font-size: 14px;
  color: var(--pr-gray-700, #3f3f46);
}

/* Preview Loading */
.prorank-preview-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  gap: 12px;
}

.prorank-preview-loading p {
  margin: 0;
  color: var(--pr-gray-600, #52525b);
  font-size: 14px;
}

/* Impact List */
.prorank-impact-list {
  margin: 16px 0 20px 20px;
  padding: 0;
  list-style: none;
}

.prorank-impact-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--pr-gray-700, #3f3f46);
  line-height: 1.6;
}

.prorank-impact-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--pr-accent-green, #10b981);
  font-weight: 600;
}

/* Notices */
.prorank-head-cleanup-settings .components-notice {
  margin-bottom: 20px;
  border-radius: 8px;
}

.prorank-head-cleanup-settings .components-notice.is-info {
  background: rgb(67 56 202 / 5%);
  border: 1px solid rgb(67 56 202 / 20%);
}

.prorank-head-cleanup-settings .components-notice p {
  margin: 8px 0;
  font-size: 14px;
}

/* Settings Footer */
.prorank-settings-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-top: 1px solid var(--pr-gray-200, #e4e4e7);
  margin: 20px -20px 0;
  background: var(--pr-gray-50, #fafafa);
}

.prorank-unsaved-notice {
  font-size: 13px;
  color: var(--pr-accent-orange, #f59e0b);
  font-style: italic;
}

/* Loading State */
.prorank-settings-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 12px;
}

.prorank-settings-loading .components-spinner {
  margin: 0;
}

.prorank-settings-loading p {
  margin: 0;
  color: var(--pr-gray-600, #52525b);
  font-size: 14px;
}

/* Responsive */
@media (width <= 600px) {
  .prorank-head-cleanup-settings {
    padding: 16px 0;
  }

  .prorank-settings-footer {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  .prorank-settings-footer .components-button {
    width: 100%;
    justify-content: center;
  }

  .prorank-head-cleanup-settings .components-tab-panel__tabs-item {
    padding: 8px 12px;
    font-size: 14px;
  }

  .prorank-status-grid {
    grid-template-columns: 1fr;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .prorank-head-cleanup-settings .components-card {
    background: var(--pr-gray-900, #18181b);
    border-color: var(--pr-gray-700, #3f3f46);
  }

  .prorank-status-item {
    background: var(--pr-gray-800, #27272a);
    border-color: var(--pr-gray-700, #3f3f46);
  }

  .prorank-settings-footer {
    background: var(--pr-gray-800, #27272a);
    border-color: var(--pr-gray-700, #3f3f46);
  }
}
