/**
 * Podcast SEO Settings Styles
 *
 * Styles for the Podcast SEO settings page
 */

/* Container */
.prorank-podcast-settings {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Unified Notice Styles */
.prorank-notice {
  display: flex;
  gap: 16px;
  padding: 16px 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  border: 1px solid;
  background: var(--prorank-bg);
  position: relative;
}

.prorank-notice--info {
  border-color: var(--prorank-info);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.03) 0%, rgba(37, 99, 235, 0.01) 100%);
}

.prorank-notice--warning {
  border-color: var(--prorank-warning);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.03) 0%, rgba(251, 191, 36, 0.01) 100%);
}

.prorank-notice--error {
  border-color: var(--prorank-error);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.03) 0%, rgba(239, 68, 68, 0.01) 100%);
}

.prorank-notice--success {
  border-color: var(--prorank-success);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.03) 0%, rgba(16, 185, 129, 0.01) 100%);
}

.prorank-notice-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prorank-notice-icon .dashicons {
  font-size: 20px;
  width: 20px;
  height: 20px;
  line-height: 1;
}

.prorank-notice--info .prorank-notice-icon {
  color: var(--prorank-info);
}

.prorank-notice--warning .prorank-notice-icon {
  color: var(--prorank-warning);
}

.prorank-notice--error .prorank-notice-icon {
  color: var(--prorank-error);
}

.prorank-notice--success .prorank-notice-icon {
  color: var(--prorank-success);
}

.prorank-notice-content {
  flex: 1;
  min-width: 0;
}

.prorank-notice-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--prorank-text-primary);
  margin: 0 0 8px 0;
}

.prorank-notice-message {
  font-size: 14px;
  color: var(--prorank-text-secondary);
  line-height: 1.6;
  margin: 0 0 8px 0;
}

.prorank-notice-helper {
  font-size: 13px;
  color: var(--prorank-text-tertiary);
  margin: 8px 0 0 0;
}

.prorank-required {
  color: var(--prorank-error);
  font-weight: 600;
}

.prorank-notice-feed {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
  padding: 12px;
  background: var(--prorank-bg-secondary);
  border-radius: 6px;
  flex-wrap: wrap;
}

.prorank-notice-feed strong {
  color: var(--prorank-text-primary);
  font-size: 13px;
}

.prorank-code {
  padding: 4px 8px;
  background: var(--prorank-bg-tertiary);
  border: 1px solid var(--prorank-border);
  border-radius: 4px;
  font-family: monospace;
  font-size: 13px;
  color: var(--prorank-text-primary);
}

.prorank-notice-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.prorank-podcast-settings-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 16px;
}

/* Grid Layout - Enhanced Responsive */
.prorank-podcast-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 500px), 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* Tablet view */
@media (max-width: 1024px) {
  .prorank-podcast-settings-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Mobile view */
@media (max-width: 768px) {
  .prorank-podcast-settings-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0 10px;
  }

  .prorank-podcast-settings {
    padding: 10px;
  }

  .prorank-card {
    border-radius: 8px;
  }

  .prorank-card-header {
    padding: 16px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .prorank-card-body {
    padding: 16px;
  }
}

/* Podcast Artwork */
.prorank-podcast-artwork {
  margin-bottom: 20px;
}

.prorank-podcast-artwork label {
  display: block;
  margin-bottom: 12px;
}

.prorank-podcast-artwork-preview {
  margin: 16px 0;
  max-width: 300px;
  border: 1px solid var(--prorank-border);
  border-radius: 4px;
  overflow: hidden;
}

.prorank-podcast-artwork-preview img {
  width: 100%;
  height: auto;
  display: block;
}

/* Checklist */
.prorank-checklist {
  margin-top: 16px;
}

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

.prorank-checklist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--prorank-border-light);
}

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

.prorank-checklist-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
}

.prorank-checklist-detail {
  color: var(--prorank-text-secondary);
  font-size: 13px;
  margin-left: 8px;
}

.prorank-checklist-action {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--prorank-border);
}

/* Directory List */
.prorank-directory-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.prorank-directory-list li {
  padding: 8px;
  background: var(--prorank-bg-secondary);
  border-radius: 4px;
  transition: background-color 0.2s;
}

.prorank-directory-list li:hover {
  background: var(--prorank-bg-tertiary);
}

.prorank-directory-list a {
  text-decoration: none;
  color: var(--prorank-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.prorank-directory-list a:hover {
  color: var(--prorank-primary-dark);
}

/* Premium Status Grid */
.prorank-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.prorank-status-card {
  background: linear-gradient(135deg, var(--prorank-bg-secondary), var(--prorank-bg));
  border: 1px solid var(--prorank-border-light);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.prorank-status-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--prorank-gradient);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.prorank-status-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--prorank-shadow-md);
}

.prorank-status-card:hover::after {
  transform: scaleX(1);
}

.prorank-status-card.active {
  background: var(--prorank-info-light);
  border-color: var(--prorank-info);
}

.prorank-status-card.inactive {
  background: var(--prorank-error-light);
  border-color: var(--prorank-error);
}

.prorank-status-value {
  font-size: 18px;
  font-weight: 600;
  color: var(--prorank-text-primary);
  margin-bottom: 8px;
}

.prorank-status-label {
  font-size: 13px;
  color: var(--prorank-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Recommendations */
.prorank-recommendations {
  background: var(--prorank-bg-secondary);
  border-radius: 8px;
  padding: 20px;
  margin-top: 16px;
}

.prorank-recommendations-list {
  list-style: disc;
  padding-left: 20px;
  margin: 0;
}

.prorank-recommendations-list li {
  padding: 4px 0;
  line-height: 1.6;
}

/* Validation Content */
.prorank-validation-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.prorank-validation-content h5 {
  margin: 0 0 16px 0;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--prorank-text-primary);
}

/* Button Group */
.prorank-button-group {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

/* Premium Settings Actions */
.prorank-settings-actions {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 2px solid var(--prorank-border-light);
  flex-wrap: wrap;
  position: relative;
}

.prorank-settings-actions::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--prorank-primary), transparent);
  opacity: 0.5;
}

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

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

/* Enhanced focus states for inputs */
.prorank-form-group input:focus,
.prorank-form-group textarea:focus,
.prorank-form-group select:focus {
  border-color: var(--prorank-primary);
  box-shadow: 0 0 0 4px rgba(255, 105, 0, 0.1);
  outline: none;
}

/* Premium Toggle Row Container - Fixed naming to avoid conflicts */
.prorank-toggle-row-setting {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--prorank-border-light);
  transition: background-color 0.2s;
  margin: 0 0 12px 0;
  border-radius: 8px;
  position: relative;
  min-height: 60px;
}

.prorank-toggle-row-setting:hover {
  background-color: var(--prorank-bg-secondary);
}

.prorank-toggle-row-setting:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.prorank-toggle-row-label {
  flex: 1;
  margin-right: 20px;
  max-width: calc(100% - 80px);
}

.prorank-toggle-row-label strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
  font-size: 14px;
  color: var(--prorank-text-primary);
  line-height: 1.4;
}

.prorank-toggle-row-label span {
  display: block;
  font-size: 13px;
  color: var(--prorank-text-secondary);
  line-height: 1.5;
}

/* Premium Card Enhancements */
.prorank-card {
  background: var(--prorank-bg);
  border: 1px solid var(--prorank-border-light);
  border-radius: 12px;
  box-shadow: var(--prorank-shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.prorank-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--prorank-primary), var(--prorank-accent));
  opacity: 0;
  transition: opacity 0.3s;
}

.prorank-card:hover {
  box-shadow: var(--prorank-shadow-lg);
  transform: translateY(-1px);
}

.prorank-card:hover::before {
  opacity: 1;
}

.prorank-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--prorank-border);
  background: #f5f5f5; /* Standard grey for card headers */
}

.prorank-card-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--prorank-text-primary);
}

.prorank-card-body {
  padding: 24px;
  position: relative;
}

/* Premium Badge Styles */
.prorank-badge {
  display: inline-block;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.prorank-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.prorank-badge:hover::before {
  left: 100%;
}

.prorank-badge-info {
  background: var(--prorank-info-light);
  color: var(--prorank-info);
}

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

.prorank-badge-premium {
  background: var(--prorank-warning-light);
  color: var(--prorank-warning);
}

/* Tab Content Spacing */
.prorank-tab-content {
  padding: 20px 0;
}

/* Button styles now handled by the design system components */

/* Premium Animation Effects */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Apply animations to cards on load */
.prorank-podcast-settings .prorank-card {
  animation: fadeIn 0.4s ease-out;
  opacity: 1;
}

/* Premium loading states */
.prorank-podcast-settings-loading {
  animation: fadeIn 0.3s ease;
}

/* Premium hover effects for directory links */
.prorank-directory-list li {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.prorank-directory-list li:hover {
  transform: translateX(4px);
  background: linear-gradient(90deg, var(--prorank-primary-light), transparent);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .prorank-podcast-settings-grid {
    grid-template-columns: 1fr;
  }

  .prorank-directory-list {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

/* Small mobile view adjustments */
@media (max-width: 640px) {
  .prorank-notice {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }

  .prorank-notice-feed {
    flex-direction: column;
    align-items: flex-start;
  }

  .prorank-notice-actions {
    flex-direction: column;
  }

  .prorank-notice-actions .prorank-btn {
    width: 100%;
    justify-content: center;
  }
  .prorank-toggle-row-setting {
    flex-direction: row; /* Keep row layout for better UX */
    gap: 12px;
    padding: 12px 16px;
    min-height: auto;
  }

  .prorank-toggle-row-label {
    margin-right: 12px;
    max-width: calc(100% - 60px);
  }

  .prorank-toggle-row-label strong {
    font-size: 13px;
  }

  .prorank-toggle-row-label span {
    font-size: 12px;
  }

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

  .prorank-settings-actions .button,
  .prorank-settings-actions .prorank-btn {
    width: 100%;
  }
}