/**
 * Schema Wizard Styles
 * Modern design system for 2025
 */

/* Main Wizard Container */
.prorank-schema-wizard {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  background: linear-gradient(135deg, #f8f9fb 0%, #ffffff 100%);
  min-height: 100vh;
  position: relative;
}

.prorank-schema-wizard * {
  box-sizing: border-box;
}

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

.prorank-schema-wizard-loading .components-spinner {
  margin-bottom: 20px;
}

.prorank-schema-wizard-loading p {
  color: #64748b;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* Locked State */
.prorank-schema-wizard-locked {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fb 100%);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* Hero Section */
.prorank-schema-hero {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

.prorank-schema-hero h1 {
  font-size: 42px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 20px;
  line-height: 1.2;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.prorank-schema-subtitle {
  font-size: 20px;
  color: #64748b;
  margin-bottom: 48px;
  line-height: 1.6;
  font-weight: 400;
}

/* Benefits Grid */
.prorank-schema-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin: 48px 0;
}

.prorank-benefit {
  display: flex;
  gap: 20px;
  text-align: left;
  padding: 24px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.prorank-benefit:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: #3b82f6;
}

.prorank-benefit .dashicons {
  font-size: 32px;
  width: 32px;
  height: 32px;
  color: #3b82f6;
  flex-shrink: 0;
  margin-top: 4px;
}

.prorank-benefit h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 8px 0;
}

.prorank-benefit p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* CTA Section */
.prorank-schema-cta {
  margin: 48px 0;
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

.prorank-schema-upgrade-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
  color: #ffffff !important;
  padding: 16px 32px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  border: none !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.3) !important;
  transition: all 0.3s ease !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.prorank-schema-upgrade-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4) !important;
}

/* Trust Indicators */
.prorank-schema-trust {
  display: flex;
  gap: 32px;
  justify-content: center;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #e2e8f0;
  flex-wrap: wrap;
}

.prorank-schema-trust p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #475569;
  font-size: 14px;
  font-weight: 500;
}

.prorank-schema-trust .dashicons {
  color: #10b981;
  font-size: 20px;
  width: 20px;
  height: 20px;
}

/* Wizard Header */
.prorank-schema-wizard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fb 100%);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.prorank-schema-wizard-header h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.5px;
}

.prorank-schema-wizard-header .components-button {
  color: #3b82f6;
  font-weight: 500;
  transition: color 0.2s ease;
}

.prorank-schema-wizard-header .components-button:hover {
  color: #2563eb;
}

/* Progress Bar */
.prorank-schema-wizard-progress {
  margin-bottom: 40px;
  background: #ffffff;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.prorank-progress-bar {
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 32px;
  position: relative;
}

.prorank-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6 0%, #3b82f6 100%);
  border-radius: 4px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  width: 33.33%;
}

.prorank-progress-fill[data-progress="33.333333333333336"] {
  width: 33.33%;
}

.prorank-progress-fill[data-progress="66.66666666666666"] {
  width: 66.67%;
}

.prorank-progress-fill[data-progress="100"] {
  width: 100%;
}

.prorank-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Progress Steps */
.prorank-progress-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
}

.prorank-progress-steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 60px;
  right: 60px;
  height: 2px;
  background: #e5e7eb;
  z-index: 0;
}

.prorank-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.prorank-step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f3f4f6;
  border: 2px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

.prorank-step-number span {
  font-weight: 600;
  font-size: 16px;
  color: #9ca3af;
  transition: all 0.3s ease;
}

.prorank-step.active .prorank-step-number {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
  transform: scale(1.1);
}

.prorank-step.active .prorank-step-number span {
  color: #ffffff;
}

.prorank-step.completed .prorank-step-number {
  background: #10b981;
  border-color: #10b981;
}

.prorank-step.completed .prorank-step-number span {
  color: #ffffff;
  font-size: 20px;
}

.prorank-step.completed .prorank-step-number span::before {
  content: '✓';
  font-size: 18px;
}

.prorank-step.completed .prorank-step-number span:not(:empty) {
  font-size: 0;
}

.prorank-step.completed .prorank-step-number span:not(:empty)::before {
  font-size: 18px;
}

.prorank-step-label {
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
  text-align: center;
  max-width: 120px;
}

.prorank-step.active .prorank-step-label {
  color: #1e293b;
  font-weight: 600;
}

.prorank-step.completed .prorank-step-label {
  color: #10b981;
}

/* Wizard Content */
.prorank-schema-wizard-content {
  background: #ffffff;
  border-radius: 12px;
  padding: 32px;
  min-height: 400px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  animation: fadeIn 0.4s ease;
}

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

/* Wizard Footer */
.prorank-schema-wizard-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding: 24px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.prorank-wizard-navigation {
  display: flex;
  gap: 16px;
}

.prorank-wizard-navigation .components-button {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.prorank-wizard-navigation .components-button.is-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
}

.prorank-wizard-navigation .components-button.is-primary:hover:not(:disabled) {
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.35);
  transform: translateY(-1px);
}

.prorank-wizard-navigation .components-button.is-secondary {
  background: #f3f4f6;
  color: #4b5563;
  border: 2px solid #e5e7eb;
}

.prorank-wizard-navigation .components-button.is-secondary:hover {
  background: #e5e7eb;
  border-color: #d1d5db;
}

.prorank-wizard-navigation .components-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.prorank-wizard-help .components-button {
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.prorank-wizard-help .components-button:hover {
  color: #3b82f6;
}

.prorank-wizard-help .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
}

/* Schema Type Selector Styles */
.prorank-schema-type-selector {
  padding: 24px;
}

.prorank-schema-type-name {
  margin-bottom: 32px;
}

.prorank-schema-type-name .components-text-control__input {
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  transition: all 0.2s ease;
}

.prorank-schema-type-name .components-text-control__input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
  outline: none;
}

.prorank-schema-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.prorank-schema-type-card {
  padding: 20px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

.prorank-schema-type-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6 0%, #3b82f6 100%);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.prorank-schema-type-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
  transform: translateY(-2px);
}

.prorank-schema-type-card:hover::before {
  transform: translateY(0);
}

.prorank-schema-type-card.selected {
  border-color: #3b82f6;
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.prorank-schema-type-icon {
  font-size: 32px;
  margin-bottom: 12px;
  color: #3b82f6;
  display: block;
}

.prorank-schema-type-label {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 4px;
}

.prorank-schema-type-description {
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}

/* Schema Library Styles */
.prorank-schema-library {
  background: #ffffff;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.prorank-schema-library-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e5e7eb;
}

.prorank-schema-library-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.prorank-schema-library-actions {
  display: flex;
  gap: 12px;
}

.prorank-schema-table {
  width: 100%;
  border-collapse: collapse;
}

.prorank-schema-table th {
  text-align: left;
  padding: 12px;
  background: #f9fafb;
  font-weight: 600;
  color: #4b5563;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #e5e7eb;
}

.prorank-schema-table td {
  padding: 16px 12px;
  border-bottom: 1px solid #f3f4f6;
}

.prorank-schema-table tbody tr {
  transition: background 0.2s ease;
}

.prorank-schema-table tbody tr:hover {
  background: #f9fafb;
}

.prorank-schema-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.prorank-schema-status.active {
  background: #d1fae5;
  color: #065f46;
}

.prorank-schema-status.inactive {
  background: #fee2e2;
  color: #991b1b;
}

.prorank-schema-actions {
  display: flex;
  gap: 8px;
}

.prorank-schema-actions .components-button {
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

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

  .prorank-schema-hero h1 {
    font-size: 32px;
  }

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

  .prorank-schema-trust {
    flex-direction: column;
    gap: 16px;
  }

  .prorank-progress-steps {
    flex-direction: column;
    gap: 24px;
  }

  .prorank-progress-steps::before {
    display: none;
  }

  .prorank-schema-type-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .prorank-wizard-footer {
    flex-direction: column;
    gap: 16px;
  }

  .prorank-wizard-navigation {
    width: 100%;
    justify-content: space-between;
  }
}