/**
 * Sitemap Settings Styles
 *
 * Using CSS Custom Properties from the Design System
 */

/* Import feedback integration styles */
@import url('../../../styles/feedback-integration.css');

/* Sitemap Settings Container */
.prorank-sitemap-settings {
  padding: var(--pr-spacing-lg);
  background: var(--pr-color-background);
  border-radius: var(--pr-border-radius-md);
}

/* Loading State */
.prorank-settings-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--pr-spacing-md);
  padding: var(--pr-spacing-xl);
  color: var(--pr-color-text-secondary);
}

/* Settings Tabs */
.prorank-settings-tabs {
  margin-bottom: var(--pr-spacing-lg);
}

.prorank-settings-tabs .components-tab-panel__tabs {
  border-bottom: 1px solid var(--pr-color-border);
  margin-bottom: var(--pr-spacing-lg);
  display: flex !important;
  align-items: stretch !important;
  flex-wrap: nowrap !important;
}

.prorank-settings-tabs .components-tab-panel__tabs-item {
  display: flex !important;
  align-items: center !important;
  height: auto !important;
  min-height: 40px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.prorank-settings-tabs .components-button {
  padding: var(--pr-spacing-sm) var(--pr-spacing-md) !important;
  font-weight: var(--pr-font-weight-medium);
  color: var(--pr-color-text-secondary);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  transition: all var(--pr-transition-fast);
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  min-height: 40px !important;
  line-height: normal !important;
  white-space: nowrap !important;
}

.prorank-settings-tabs .components-button:hover {
  color: var(--pr-color-text-primary);
  background: var(--pr-color-background-hover);
}

.prorank-settings-tabs .components-button.is-active {
  color: var(--pr-color-primary);
  border-bottom-color: var(--pr-color-primary);
}

/* Tab Content */
.prorank-tab-content {
  animation: fadeIn var(--pr-transition-fast);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Form Controls */
.prorank-tab-content .components-base-control {
  margin-bottom: var(--pr-spacing-md);
}

.prorank-tab-content .components-base-control__label {
  font-weight: var(--pr-font-weight-medium);
  margin-bottom: var(--pr-spacing-xs);
}

.prorank-tab-content .components-base-control__help {
  font-size: var(--pr-font-size-small);
  color: var(--pr-color-text-tertiary);
  margin-top: var(--pr-spacing-xs);
}

/* Number Control */
.prorank-tab-content .components-number-control {
  max-width: 200px;
}

/* Sitemap Link */
.prorank-sitemap-link {
  margin: var(--pr-spacing-lg) 0;
  padding: var(--pr-spacing-md);
  background: var(--pr-color-background-secondary);
  border-radius: var(--pr-border-radius-md);
}

.prorank-sitemap-link p {
  margin: 0 0 var(--pr-spacing-sm) 0;
  font-weight: var(--pr-font-weight-medium);
}

.prorank-sitemap-link .components-external-link {
  color: var(--pr-color-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--pr-spacing-xs);
}

.prorank-sitemap-link .components-external-link:hover {
  text-decoration: underline;
}

/* Onboarding Hint */
.prorank-onboarding-hint {
  margin: var(--pr-spacing-lg) 0;
  padding: var(--pr-spacing-md);
  background: var(--pr-color-info-light);
  border-left: 4px solid var(--pr-color-info);
  border-radius: var(--pr-border-radius-sm);
}

.prorank-onboarding-hint p {
  margin: 0;
  color: var(--pr-color-text-primary);
}

/* Panel Bodies */
.prorank-tab-content .components-panel__body {
  border: 1px solid var(--pr-color-border);
  border-radius: var(--pr-border-radius-md);
  margin-bottom: var(--pr-spacing-md);
}

.prorank-tab-content .components-panel__body-title {
  padding: var(--pr-spacing-md);
}

.prorank-tab-content .components-panel__body-toggle {
  font-weight: var(--pr-font-weight-medium);
}

.prorank-tab-content .description {
  font-size: var(--pr-font-size-small);
  color: var(--pr-color-text-secondary);
  margin-bottom: var(--pr-spacing-md);
}

/* Checkbox Groups */
.prorank-tab-content .components-checkbox-control {
  margin-bottom: var(--pr-spacing-sm);
}

.prorank-tab-content .components-checkbox-control:last-child {
  margin-bottom: 0;
}

/* Author Roles Section */
.prorank-author-roles {
  margin-top: var(--pr-spacing-md);
  padding: var(--pr-spacing-md);
  background: var(--pr-color-background-secondary);
  border-radius: var(--pr-border-radius-sm);
}

.prorank-author-roles p {
  margin: 0 0 var(--pr-spacing-sm) 0;
  font-weight: var(--pr-font-weight-medium);
}

/* Settings Actions */
.prorank-settings-actions {
  margin-top: var(--pr-spacing-xl);
  padding-top: var(--pr-spacing-lg);
  border-top: 1px solid var(--pr-color-border);
  display: flex;
  justify-content: flex-end;
  gap: var(--pr-spacing-md);
}

/* Module Card Styles */
.prorank-module-card--sitemaps {
  border: 1px solid var(--pr-color-border);
  transition: all var(--pr-transition-fast);
}

.prorank-module-card--sitemaps:hover {
  border-color: var(--pr-color-border-hover);
  box-shadow: var(--pr-shadow-md);
}

.prorank-module-card__title {
  margin: 0;
  font-size: var(--pr-font-size-medium);
  font-weight: var(--pr-font-weight-semibold);
}

.prorank-module-card__badges {
  display: flex;
  gap: var(--pr-spacing-xs);
}

.prorank-tier-badge {
  display: inline-block;
  padding: var(--pr-spacing-xs) var(--pr-spacing-sm);
  font-size: var(--pr-font-size-xsmall);
  font-weight: var(--pr-font-weight-medium);
  border-radius: var(--pr-border-radius-full);
  text-transform: uppercase;
}

.prorank-tier-badge--free {
  background: var(--pr-color-success-light);
  color: var(--pr-color-success);
}

.prorank-tier-badge--pro {
  background: var(--pr-color-primary-50);
  color: var(--pr-color-primary);
}

.prorank-module-card__description {
  margin: var(--pr-spacing-md) 0;
  color: var(--pr-color-text-secondary);
}

.prorank-module-card__features {
  margin: var(--pr-spacing-md) 0;
}

.prorank-module-card__features h4 {
  margin: 0 0 var(--pr-spacing-sm) 0;
  font-size: var(--pr-font-size-small);
  font-weight: var(--pr-font-weight-medium);
  color: var(--pr-color-text-secondary);
}

.prorank-module-card__features ul {
  margin: 0;
  padding-left: var(--pr-spacing-lg);
}

.prorank-module-card__features li {
  margin-bottom: var(--pr-spacing-xs);
  font-size: var(--pr-font-size-small);
}

.prorank-feature--premium {
  display: flex;
  align-items: center;
  gap: var(--pr-spacing-xs);
  color: var(--pr-color-primary);
}

.prorank-module-card__actions {
  margin-top: var(--pr-spacing-lg);
  padding-top: var(--pr-spacing-md);
  border-top: 1px solid var(--pr-color-border);
}

.prorank-module-card__status {
  display: flex;
  align-items: center;
  gap: var(--pr-spacing-xs);
  margin-top: var(--pr-spacing-md);
  padding: var(--pr-spacing-sm);
  background: var(--pr-color-success-light);
  border-radius: var(--pr-border-radius-sm);
  font-size: var(--pr-font-size-small);
}

.prorank-status-icon--active {
  color: var(--pr-color-success);
}

/* Accessibility - Focus States */
.prorank-settings-tabs .components-button:focus {
  outline: 2px solid var(--pr-color-primary);
  outline-offset: -2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .prorank-tab-content,
  .prorank-module-card--sitemaps {
    animation: none;
    transition: none;
  }
}
