/**
 * Podcast SEO Settings Styles
 * Modern design system for 2025
 */

.prorank-podcast-settings {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 24px;
  background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
  min-height: 100vh;
}

/* Loading State */
.prorank-podcast-settings-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fb 100%);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.prorank-podcast-settings-loading .components-spinner {
  margin-bottom: 16px;
}

.prorank-podcast-settings-loading p {
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* Tab Navigation */
.prorank-podcast-tabs {
  margin-bottom: 24px;
}

.prorank-podcast-tabs .components-tab-panel__tabs {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fb 100%);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  gap: 4px;
}

.prorank-podcast-tabs .components-tab-panel__tabs button {
  padding: 12px 24px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  color: #64748b;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.prorank-podcast-tabs .components-tab-panel__tabs button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.prorank-podcast-tabs .components-tab-panel__tabs button:hover {
  background: rgba(168, 85, 247, 0.05);
  color: #3b82f6;
}

.prorank-podcast-tabs .components-tab-panel__tabs button.is-active {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.prorank-podcast-tabs .components-tab-panel__tabs button.is-active::before {
  opacity: 1;
}

/* Content Sections */
.prorank-podcast-settings-content {
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Grid Layout */
.prorank-podcast-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

@media (max-width: 960px) {
  .prorank-podcast-settings-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Cards */
.prorank-podcast-settings-grid .components-card {
  height: 100%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  position: relative;
}

.prorank-podcast-settings-grid .components-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.prorank-podcast-settings-grid .components-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.prorank-podcast-settings-grid .components-card:hover::before {
  opacity: 1;
}

.prorank-podcast-settings-grid .components-card-header {
  padding: 20px 24px;
  border-bottom: 1px solid #f0f3f7;
  background: linear-gradient(135deg, #fafbfc 0%, #ffffff 100%);
}

.prorank-podcast-settings-grid .components-card-header h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.02em;
}

.prorank-podcast-settings-grid .components-card-header h4::before {
  content: '';
  width: 4px;
  height: 24px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border-radius: 2px;
}

.prorank-podcast-settings-grid .components-card-body {
  padding: 24px;
}

/* Form Groups */
.prorank-form-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Form Controls */
.prorank-podcast-settings .components-text-control__input,
.prorank-podcast-settings .components-textarea-control__input,
.prorank-podcast-settings .components-select-control__input {
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  transition: all 0.2s ease;
  background: #ffffff;
}

.prorank-podcast-settings .components-text-control__input:focus,
.prorank-podcast-settings .components-textarea-control__input:focus,
.prorank-podcast-settings .components-select-control__input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.1);
  outline: none;
}

.prorank-podcast-settings .components-base-control__label {
  font-weight: 600;
  color: #334155;
  margin-bottom: 8px;
  font-size: 14px;
  letter-spacing: -0.01em;
}

.prorank-podcast-settings .components-base-control__help {
  color: #64748b;
  font-size: 13px;
  margin-top: 6px;
  line-height: 1.5;
}

/* Toggle Controls */
.prorank-podcast-settings .components-toggle-control {
  margin-bottom: 16px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.prorank-podcast-settings .components-toggle-control:hover {
  background: #f1f5f9;
}

.prorank-podcast-settings .components-toggle-control .components-base-control__field {
  display: flex;
  align-items: center;
  gap: 12px;
}

.prorank-podcast-settings .components-toggle-control .components-form-toggle {
  position: relative;
  width: 52px;
  height: 28px;
}

.prorank-podcast-settings .components-toggle-control .components-form-toggle__track {
  background: #cbd5e1;
  border-radius: 14px;
  height: 28px;
  width: 52px;
}

.prorank-podcast-settings .components-toggle-control .components-form-toggle.is-checked .components-form-toggle__track {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.prorank-podcast-settings .components-toggle-control .components-form-toggle__thumb {
  width: 24px;
  height: 24px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  top: 2px;
  left: 2px;
  transition: transform 0.2s ease;
}

.prorank-podcast-settings .components-toggle-control .components-form-toggle.is-checked .components-form-toggle__thumb {
  transform: translateX(24px);
}

/* Podcast Artwork */
.prorank-podcast-artwork {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.prorank-podcast-artwork-preview {
  width: 200px;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}

.prorank-podcast-artwork-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prorank-podcast-artwork .description {
  color: #64748b;
  font-size: 12px;
  margin-top: 8px;
  font-style: italic;
}

/* Directory List */
.prorank-directory-list {
  margin-top: 12px;
  padding: 0;
  list-style: none;
}

.prorank-directory-list li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f3f7;
  transition: padding-left 0.2s ease;
}

.prorank-directory-list li:last-child {
  border-bottom: none;
}

.prorank-directory-list li:hover {
  padding-left: 8px;
}

.prorank-directory-list a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.prorank-directory-list a:hover {
  color: #ff6b35;
}

.prorank-directory-list a::after {
  content: '↗';
  font-size: 12px;
  opacity: 0.5;
}

/* Settings Actions */
.prorank-settings-actions {
  position: sticky;
  bottom: 0;
  background: linear-gradient(to top, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.95) 100%);
  padding: 24px;
  margin: 32px -24px -24px;
  border-top: 1px solid #e2e8f0;
  backdrop-filter: blur(10px);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  z-index: 10;
}

.prorank-settings-actions .components-button {
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.prorank-settings-actions .components-button.is-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.25);
}

.prorank-settings-actions .components-button.is-primary:hover:not(:disabled) {
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.35);
  transform: translateY(-1px);
}

.prorank-settings-actions .components-button.is-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.prorank-button-secondary,
.prorank-settings-actions .components-button.is-secondary {
  background: #ffffff;
  color: #6b7280;
  border: 2px solid #e5e7eb;
  margin-left: 8px;
}

.prorank-button-secondary:hover,
.prorank-settings-actions .components-button.is-secondary:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.prorank-button-link,
.prorank-settings-actions .components-button.is-link {
  color: #3b82f6;
  background: transparent;
  text-decoration: none;
  margin-left: 8px;
}

.prorank-button-link:hover,
.prorank-settings-actions .components-button.is-link:hover {
  color: #ff6b35;
  text-decoration: underline;
}

.prorank-button-spacing {
  margin-left: 8px;
}

/* Validation Tab Styles */
.prorank-podcast-validation {
  animation: slideIn 0.4s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.prorank-validation-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.prorank-button-group {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

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

.prorank-status-card {
  padding: 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.prorank-status-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: #94a3b8;
  transition: background 0.3s ease;
}

.prorank-status-card.active {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-color: #86efac;
}

.prorank-status-card.active::before {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.prorank-status-card.inactive {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border-color: #fca5a5;
}

.prorank-status-card.inactive::before {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.prorank-status-value {
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}

.prorank-status-card.active .prorank-status-value {
  color: #059669;
}

.prorank-status-card.inactive .prorank-status-value {
  color: #dc2626;
}

.prorank-status-label {
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
}

/* Checklist */
.prorank-checklist {
  background: linear-gradient(135deg, #fafbfc 0%, #f8f9fb 100%);
  padding: 20px;
  border-radius: 12px;
  margin-top: 12px;
  border: 2px solid #e2e8f0;
}

.prorank-checklist-items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.prorank-checklist-item {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #e2e8f0;
  transition: background 0.2s ease;
}

.prorank-checklist-item:last-child {
  border-bottom: none;
}

.prorank-checklist-item:hover {
  background: rgba(168, 85, 247, 0.02);
}

.prorank-checklist-icon {
  margin-right: 12px;
  font-size: 20px;
  user-select: none;
}

.prorank-checklist-detail {
  color: #64748b;
  margin-left: 8px;
  font-size: 13px;
  font-style: italic;
}

.prorank-checklist-action {
  margin-top: 16px;
}

/* Recommendations */
.prorank-recommendations {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  padding: 20px;
  border-radius: 12px;
  margin-top: 12px;
  border: 2px solid #fbbf24;
  position: relative;
}

.prorank-recommendations::before {
  content: '💡';
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 24px;
}

.prorank-recommendations-list {
  margin: 0;
  padding-left: 40px;
  color: #78350f;
}

.prorank-recommendations-list li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.prorank-recommendations-list li:last-child {
  margin-bottom: 0;
}

/* Notices */
.prorank-podcast-settings .components-notice {
  border-radius: 12px;
  margin-bottom: 20px;
  border: none;
  padding: 16px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.prorank-podcast-settings .components-notice.is-warning {
  background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
  color: #92400e;
}

.prorank-podcast-settings .components-notice.is-info {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1e40af;
}

.prorank-podcast-settings .components-notice.is-success {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  color: #14532d;
}

.prorank-podcast-settings .components-notice.is-error {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #7f1d1d;
}

/* Responsive Design */
@media (max-width: 768px) {
  .prorank-podcast-settings {
    padding: 16px;
  }

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

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

  .prorank-settings-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .prorank-settings-actions .components-button {
    width: 100%;
    margin-left: 0 !important;
    margin-top: 8px;
  }

  .prorank-settings-actions .components-button:first-child {
    margin-top: 0;
  }

  .prorank-podcast-tabs .components-tab-panel__tabs {
    flex-direction: column;
  }

  .prorank-podcast-tabs .components-tab-panel__tabs button {
    width: 100%;
    text-align: left;
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.4s ease;
}

.slide-in {
  animation: slideIn 0.4s ease;
}

/* Pro Badge */
.prorank-pro-badge {
  display: inline-block;
  padding: 2px 8px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #78350f;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 12px;
  margin-left: 8px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}
