/**
 * Robots & Indexing Settings Styles
 * Sidebar shell content styles
 */

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

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

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

.prorank-robots-indexing-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-robots-indexing-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;
}

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

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

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

.prorank-robots-indexing-settings .components-toggle-control__label {
  font-weight: 500;
}

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

/* Text Controls */
.prorank-robots-indexing-settings .components-text-control,
.prorank-robots-indexing-settings .components-textarea-control {
  margin-top: 16px;
}

.prorank-robots-indexing-settings .components-text-control__input,
.prorank-robots-indexing-settings .components-textarea-control__input {
  border: 1px solid var(--pr-gray-300, #d4d4d8);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
  transition: var(--pr-transition-fast, all 0.15s ease);
}

.prorank-robots-indexing-settings .components-text-control__input:focus,
.prorank-robots-indexing-settings .components-textarea-control__input:focus {
  border-color: var(--pr-primary, #2563eb);
  box-shadow: 0 0 0 1px var(--pr-primary, #2563eb);
}

.prorank-robots-indexing-settings .components-textarea-control__input {
  font-family: Consolas, Monaco, 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.5;
}

/* Buttons */
.prorank-robots-indexing-settings .components-button {
  transition: var(--pr-transition-fast, all 0.15s ease);
}

.prorank-robots-indexing-settings .components-button.is-secondary {
  margin-top: 12px;
}

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

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

.prorank-robots-indexing-settings .components-notice.is-warning {
  background: rgb(245 158 11 / 5%);
  border: 1px solid rgb(245 158 11 / 20%);
}

.prorank-robots-indexing-settings .components-notice strong {
  display: block;
  margin-bottom: 4px;
}

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

/* External Links */
.prorank-robots-indexing-settings .components-external-link {
  color: var(--pr-primary, #2563eb);
  text-decoration: none;
  transition: var(--pr-transition-fast, all 0.15s ease);
}

.prorank-robots-indexing-settings .components-external-link:hover {
  text-decoration: underline;
}

/* Help Tab Content */
.prorank-settings-help .components-card {
  margin-bottom: 20px;
}

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

.prorank-settings-help h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 24px 0 12px;
  color: var(--pr-gray-800, #27272a);
}

.prorank-settings-help ul {
  margin: 12px 0 16px 20px;
  padding: 0;
}

.prorank-settings-help li {
  margin-bottom: 8px;
  color: var(--pr-gray-700, #3f3f46);
}

.prorank-settings-help p {
  margin-bottom: 16px;
  line-height: 1.6;
  color: var(--pr-gray-700, #3f3f46);
}

.prorank-help-links {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--pr-gray-200, #e4e4e7);
}

/* 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;
}

/* Specific Styles for IndexNow/Google Fields */
.prorank-robots-indexing-settings .components-card-body > div + div {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--pr-gray-200, #e4e4e7);
}

/* Textarea specific for JSON */
.prorank-robots-indexing-settings textarea[placeholder*='service_account'] {
  min-height: 150px;
}

/* Responsive */
@media (width <= 600px) {
  .prorank-robots-indexing-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-robots-indexing-settings .components-tab-panel__tabs-item {
    padding: 8px 12px;
    font-size: 14px;
  }
}

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

  .prorank-robots-indexing-settings .components-text-control__input,
  .prorank-robots-indexing-settings .components-textarea-control__input {
    background: var(--pr-gray-800, #27272a);
    color: var(--pr-gray-100, #f4f4f5);
    border-color: var(--pr-gray-600, #52525b);
  }

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