/**
 * ProRank Design System - Schema Wizard Styles
 *
 * Styles specific to the Schema Wizard and Schema Library
 * Part of the On-Page SEO module
 *
 * @module features/schema
 * @since 3.0.0
 */

/* ============================================
   SCHEMA WIZARD CONTAINER
   ============================================ */

.prorank-schema-wizard {
  padding: 20px;
}

.prorank-schema-wizard-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  text-align: center;
}

.prorank-schema-wizard-locked {
  padding: var(--prorank-space-2xl);
  text-align: center;
}

/* Schema Hero Section */
.prorank-schema-hero {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--prorank-space-2xl);
}

.prorank-schema-hero h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--prorank-text);
  margin: 0 0 var(--prorank-space-md);
}

.prorank-schema-subtitle {
  font-size: 18px;
  color: var(--prorank-text-secondary);
  margin-bottom: var(--prorank-space-2xl);
}

/* Schema Benefits */
.prorank-schema-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--prorank-space-xl);
  margin: var(--prorank-space-2xl) 0;
}

.prorank-benefit {
  display: flex;
  gap: var(--prorank-space-md);
  text-align: left;
}

.prorank-benefit .dashicons {
  flex-shrink: 0;
  font-size: 32px;
  color: var(--prorank-primary);
  margin-top: 4px;
}

.prorank-benefit h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--prorank-text);
  margin: 0 0 var(--prorank-space-xs);
}

.prorank-benefit p {
  font-size: 14px;
  color: var(--prorank-text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* Schema CTA */
.prorank-schema-cta {
  display: flex;
  gap: var(--prorank-space-md);
  justify-content: center;
  margin: var(--prorank-space-2xl) 0;
}

.prorank-schema-upgrade-btn {
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
}

/* Schema Trust Indicators */
.prorank-schema-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--prorank-space-lg);
  justify-content: center;
  margin-top: var(--prorank-space-2xl);
  padding-top: var(--prorank-space-2xl);
  border-top: 1px solid var(--prorank-border);
}

.prorank-schema-trust p {
  display: flex;
  align-items: center;
  gap: var(--prorank-space-xs);
  margin: 0;
  font-size: 14px;
  color: var(--prorank-text-secondary);
}

.prorank-schema-trust .dashicons {
  color: var(--prorank-primary);
}

/* ============================================
   WIZARD HEADER & PROGRESS
   ============================================ */

.prorank-schema-wizard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--prorank-space-xl);
  padding-bottom: var(--prorank-space-lg);
  border-bottom: 1px solid var(--prorank-border);
}

.prorank-schema-wizard-header h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--prorank-text);
  margin: 0;
}

/* Progress Bar */
.prorank-schema-wizard-progress {
  margin-bottom: var(--prorank-space-2xl);
}

.prorank-progress-bar {
  height: 4px;
  background: var(--prorank-bg-tertiary);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: var(--prorank-space-lg);
}

.prorank-progress-fill {
  height: 100%;
  background: var(--prorank-primary);
  transition: width 0.3s ease;
  width: calc(var(--progress, 33) * 1%);
}

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

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

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

/* Progress Steps */
.prorank-progress-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--prorank-space-md);
}

.prorank-step {
  display: flex;
  align-items: center;
  gap: var(--prorank-space-sm);
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.prorank-step.active {
  opacity: 1;
}

.prorank-step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 2px solid var(--prorank-border);
  border-radius: 50%;
  background: var(--prorank-bg);
  font-weight: 600;
  color: var(--prorank-text-secondary);
  transition: all 0.3s ease;
}

.prorank-step.active .prorank-step-number {
  border-color: var(--prorank-primary);
  background: var(--prorank-primary);
  color: white;
}

.prorank-step.completed .prorank-step-number {
  background: var(--prorank-success);
  border-color: var(--prorank-success);
  color: white;
}

.prorank-step.completed .prorank-step-number span {
  display: none;
}

.prorank-step.completed .prorank-step-number::before {
  content: "✓";
  font-size: 16px;
}

.prorank-step-label {
  font-size: 14px;
  color: var(--prorank-text-secondary);
}

.prorank-step.active .prorank-step-label {
  color: var(--prorank-text);
  font-weight: 500;
}

/* ============================================
   SCHEMA TYPE SELECTOR
   ============================================ */

.prorank-schema-type-selector {
  padding: 32px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.05),
    0 10px 40px rgba(0, 0, 0, 0.03);
}

.prorank-selector-header {
  margin-bottom: 40px;
  text-align: center;
}

.prorank-selector-header h3 {
  font-size: 28px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.prorank-selector-header .description {
  font-size: 16px;
  color: #64748b;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

.prorank-schema-name-field {
  margin-bottom: 36px;
  padding: 24px;
  background: linear-gradient(135deg, #fafbfc 0%, #ffffff 100%);
  border-radius: 16px;
  border: 1px solid #e5e7eb;
}

.prorank-schema-name-field label {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 12px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.prorank-schema-name-field .prorank-input {
  width: 100%;
  max-width: 600px;
  padding: 14px 18px;
  font-size: 15px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.prorank-schema-name-field .prorank-input:focus {
  border-color: #f97316;
  outline: none;
  box-shadow:
    0 0 0 4px rgba(249, 115, 22, 0.1),
    0 1px 2px rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}

.prorank-selector-controls {
  margin-bottom: 32px;
  display: flex;
  justify-content: center;
}

.prorank-search-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
}

.prorank-search-wrapper .dashicons {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: #94a3b8;
  pointer-events: none;
}

.prorank-search-wrapper input[type="search"] {
  width: 100%;
  padding: 14px 52px 14px 20px;
  font-size: 15px;
  border: 2px solid #e2e8f0;
  border-radius: 50px;
  background: #ffffff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.05),
    0 10px 20px rgba(0, 0, 0, 0.03);
}

.prorank-search-wrapper input[type="search"]:focus {
  border-color: #f97316;
  outline: none;
  box-shadow:
    0 0 0 4px rgba(249, 115, 22, 0.1),
    0 10px 20px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.prorank-field-error {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: #dc2626;
  font-weight: 500;
}

/* Schema Categories */
.prorank-schema-categories {
  margin-bottom: var(--prorank-space-xl);
}

/* Category Pills - True Premium Design */
.prorank-category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 16px;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.05),
    0 4px 12px rgba(0, 0, 0, 0.05);
  margin-bottom: 32px;
}

.prorank-category-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  color: #6b7280;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.prorank-category-pill:hover {
  background: #ffffff;
  border-color: #f97316;
  color: #f97316;
  transform: translateY(-2px);
  box-shadow:
    0 4px 6px rgba(249, 115, 22, 0.1),
    0 10px 20px rgba(249, 115, 22, 0.05);
}

.prorank-category-pill.active {
  background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
  border-color: transparent;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow:
    0 4px 6px rgba(249, 115, 22, 0.2),
    0 10px 20px rgba(249, 115, 22, 0.1);
}

.prorank-category-pill .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
}

.prorank-category-pill.active .dashicons {
  color: #ffffff;
}

.prorank-category-pill .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
  line-height: 1;
  opacity: 0.8;
}

.prorank-category-pill:hover .dashicons,
.prorank-category-pill.active .dashicons {
  opacity: 1;
}

.prorank-pill-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  color: inherit;
}

.prorank-category-pill:hover .prorank-pill-count {
  background: rgba(249, 115, 22, 0.1);
}

.prorank-category-pill.active .prorank-pill-count {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* DEPRECATED - Now using ProrankTabPanel component
.prorank-category-tab {
  display: flex;
  align-items: center;
  gap: var(--prorank-space-xs);
  padding: 8px 16px;
  background: var(--prorank-bg);
  border: 1px solid var(--prorank-border);
  border-radius: var(--prorank-radius-sm);
  color: var(--prorank-text-secondary);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.prorank-category-tab:hover {
  background: var(--prorank-bg-secondary);
  border-color: var(--prorank-border-dark);
  color: var(--prorank-text);
}

.prorank-category-tab.active {
  background: var(--prorank-primary);
  border-color: var(--prorank-primary);
  color: white;
}
*/

/* Schema Types Grid - Premium Layout */
.prorank-schema-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin: 32px 0;
  padding: 0;
}

/* Premium Schema Type Cards */
.prorank-schema-type-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 160px;
  background: #ffffff;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.04),
    0 4px 8px rgba(0, 0, 0, 0.05);
}

.prorank-schema-type-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(249, 115, 22, 0.03) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.prorank-schema-type-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.08),
    0 24px 48px rgba(0, 0, 0, 0.06);
}

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

.prorank-schema-type-card.selected {
  background: linear-gradient(135deg, #ffffff 0%, #fff7ed 100%);
  box-shadow:
    0 0 0 3px #f97316,
    0 12px 24px rgba(249, 115, 22, 0.15),
    0 24px 48px rgba(249, 115, 22, 0.1);
  transform: translateY(-4px) scale(1.01);
}

.prorank-schema-type-card.selected:hover {
  transform: translateY(-8px) scale(1.02);
}

/* Pro Badge - Premium Design */
.prorank-schema-type-card.pro-locked {
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
}

.prorank-schema-type-card.pro-locked::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.1) 0%, transparent 100%);
  pointer-events: none;
}

.prorank-pro-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  color: #fbbf24;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.prorank-pro-badge .dashicons {
  font-size: 12px;
  width: 12px;
  height: 12px;
}

/* Card Content - Compact Premium Design */
.prorank-schema-card-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px 12px;
  background: transparent;
  border: none;
}

.prorank-schema-card-header .prorank-schema-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 12px;
  color: #64748b;
  font-size: 24px;
  margin: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.prorank-schema-type-card:hover .prorank-schema-icon {
  background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
  color: #ea580c;
  transform: scale(1.08);
  box-shadow: 0 4px 8px rgba(249, 115, 22, 0.12);
}

.prorank-schema-type-card.selected .prorank-schema-icon {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: white;
  transform: scale(1.02);
  box-shadow: 0 4px 8px rgba(249, 115, 22, 0.15);
}

/* Card Body - Premium Typography */
.prorank-schema-card-body {
  padding: 0 24px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.prorank-schema-type-name {
  font-size: 17px;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 10px 0;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.prorank-schema-type-desc {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
  opacity: 0.9;
}

/* Selected Indicator - Premium Checkmark */
.prorank-schema-selected-indicator {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow:
    0 2px 4px rgba(16, 185, 129, 0.2),
    0 4px 8px rgba(16, 185, 129, 0.1);
  animation: bounceIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.prorank-schema-selected-indicator .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
}

.prorank-schema-icon {
  font-size: 32px;
  margin-bottom: var(--prorank-space-sm);
  color: var(--prorank-primary);
}

.prorank-schema-type-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--prorank-text);
  margin-bottom: var(--prorank-space-xs);
  position: relative;
}

.prorank-schema-badge {
  display: inline-block;
  padding: 2px 6px;
  background: var(--prorank-primary);
  color: white;
  font-size: 10px;
  font-weight: 600;
  border-radius: var(--prorank-radius-xs);
  margin-left: var(--prorank-space-xs);
}

.prorank-schema-type-desc {
  font-size: 12px;
  color: var(--prorank-text-secondary);
  line-height: 1.4;
}

.prorank-no-results {
  text-align: center;
  padding: var(--prorank-space-2xl);
  color: var(--prorank-text-secondary);
}

.prorank-no-results .dashicons {
  font-size: 48px;
  opacity: 0.3;
}

/* Schema Properties Display */
.prorank-schema-properties {
  margin-top: var(--prorank-space-md);
}

.prorank-schema-properties strong {
  display: block;
  margin-bottom: var(--prorank-space-sm);
  font-size: 13px;
  color: var(--prorank-text-secondary);
}

.prorank-schema-properties ul {
  margin: 0;
  padding-left: 20px;
}

.prorank-schema-properties li {
  font-size: 13px;
  color: var(--prorank-text-secondary);
  margin-bottom: 4px;
}

/* ============================================
   SCHEMA TARGETING
   ============================================ */

.prorank-schema-targeting {
  padding: var(--prorank-space-lg);
}

.prorank-targeting-header {
  margin-bottom: var(--prorank-space-xl);
}

.prorank-targeting-header h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--prorank-text);
  margin: 0 0 var(--prorank-space-sm);
}

.prorank-targeting-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.prorank-targeting-mode {
  margin-bottom: var(--prorank-space-xl);
  padding: var(--prorank-space-lg);
  background: var(--prorank-bg-secondary);
  border-radius: var(--prorank-radius);
}

.prorank-auto-targeting,
.prorank-manual-targeting,
.prorank-advanced-targeting {
  margin-top: var(--prorank-space-lg);
}

.prorank-info-box {
  display: flex;
  gap: var(--prorank-space-md);
  padding: var(--prorank-space-lg);
  background: var(--prorank-info-light);
  border: 1px solid var(--prorank-info);
  border-radius: var(--prorank-radius);
}

.prorank-info-box .dashicons {
  flex-shrink: 0;
  font-size: 24px;
  color: var(--prorank-info);
}

.prorank-info-box h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--prorank-text);
  margin: 0 0 var(--prorank-space-xs);
}

.prorank-info-box p {
  font-size: 14px;
  color: var(--prorank-text-secondary);
  margin: 0;
}

/* Targeting Sections */
.prorank-targeting-section {
  margin-bottom: var(--prorank-space-xl);
  padding: var(--prorank-space-lg);
  background: var(--prorank-bg);
  border: 1px solid var(--prorank-border);
  border-radius: var(--prorank-radius);
}

.prorank-targeting-section h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--prorank-text);
  margin: 0 0 var(--prorank-space-sm);
}

.prorank-checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--prorank-space-sm);
  margin-top: var(--prorank-space-md);
}

.prorank-checkbox-group.prorank-scrollable {
  max-height: 200px;
  overflow-y: auto;
  padding: var(--prorank-space-sm);
  background: var(--prorank-bg-secondary);
  border-radius: var(--prorank-radius-sm);
}

/* Rule Builder */
.prorank-rule-builder {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr auto;
  gap: var(--prorank-space-sm);
  align-items: end;
  margin-top: var(--prorank-space-md);
}

.prorank-rules-list {
  margin-top: var(--prorank-space-lg);
  padding: var(--prorank-space-md);
  background: var(--prorank-bg-secondary);
  border-radius: var(--prorank-radius-sm);
}

.prorank-rules-list h5 {
  font-size: 14px;
  font-weight: 600;
  color: var(--prorank-text);
  margin: 0 0 var(--prorank-space-sm);
}

.prorank-rule-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--prorank-space-sm);
  background: var(--prorank-bg);
  border: 1px solid var(--prorank-border);
  border-radius: var(--prorank-radius-sm);
  margin-bottom: var(--prorank-space-xs);
}

.prorank-rule-text {
  font-size: 13px;
  font-family: monospace;
  color: var(--prorank-text-secondary);
}

/* Targeting Summary */
.prorank-targeting-summary {
  margin-top: var(--prorank-space-xl);
  padding: var(--prorank-space-lg);
  background: var(--prorank-bg);
  border: 2px solid var(--prorank-primary-light);
  border-radius: var(--prorank-radius);
}

.prorank-targeting-summary h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--prorank-primary);
  margin: 0 0 var(--prorank-space-md);
}

.prorank-summary-content p {
  font-size: 14px;
  color: var(--prorank-text-secondary);
  margin: 0 0 var(--prorank-space-xs);
}

/* ============================================
   SCHEMA MAPPER
   ============================================ */

.prorank-schema-mapper {
  padding: 20px;
}

.prorank-mapper-header {
  margin-bottom: 30px;
}

.prorank-mapper-header h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.prorank-mapper-controls {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 30px;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 8px;
}

.prorank-mapper-sections {
  margin-bottom: 30px;
}

.prorank-mapper-section {
  margin-bottom: 30px;
}

.prorank-mapper-section h4 {
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e0e0e0;
}

.prorank-properties-list {
  display: grid;
  gap: 20px;
}

.prorank-property-mapper {
  padding: 15px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  transition: all 0.2s;
}

.prorank-property-mapper.required {
  border-left: 4px solid #d63638;
}

.prorank-property-mapper:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.prorank-property-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.prorank-property-label {
  font-weight: 600;
  font-size: 14px;
}

.prorank-property-label .required {
  color: #d63638;
  margin-left: 5px;
}

.prorank-auto-detect {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #00a32a;
  font-size: 12px;
}

.prorank-property-mapping {
  display: grid;
  gap: 10px;
}

.prorank-property-preview {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  padding: 8px;
  background: #f0f8ff;
  border-radius: 4px;
  font-size: 13px;
}

.preview-label {
  font-weight: 600;
  color: #666;
}

.preview-value {
  font-family: monospace;
  color: #2271b1;
}

.prorank-advanced-options {
  margin-top: 20px;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
}

.prorank-mapper-summary {
  margin-top: 30px;
  padding: 20px;
  background: #fff;
  border: 2px solid #2271b1;
  border-radius: 8px;
}

.prorank-mapper-summary h4 {
  margin: 0 0 20px 0;
  color: #2271b1;
}

.prorank-summary-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.prorank-stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 24px;
  font-weight: bold;
  color: #2271b1;
  margin-bottom: 5px;
}

.stat-label {
  display: block;
  font-size: 12px;
  color: #666;
}

/* ============================================
   WIZARD FOOTER
   ============================================ */

.prorank-schema-wizard-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--prorank-space-2xl);
  padding-top: var(--prorank-space-lg);
  border-top: 1px solid var(--prorank-border);
}

.prorank-wizard-navigation {
  display: flex;
  gap: var(--prorank-space-md);
}

.prorank-wizard-help {
  display: flex;
  align-items: center;
}

.prorank-wizard-help .dashicons {
  margin-right: var(--prorank-space-xs);
}

/* ============================================
   SCHEMA LIBRARY
   ============================================ */

.prorank-schema-library {
  padding: var(--prorank-space-lg);
}

.prorank-library-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--prorank-space-xl);
}

.prorank-library-title h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--prorank-text);
  margin: 0 0 var(--prorank-space-sm);
}

.prorank-add-schema-btn {
  display: flex;
  align-items: center;
  gap: var(--prorank-space-xs);
}

/* Library Stats */
.prorank-library-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--prorank-space-md);
  margin-bottom: var(--prorank-space-xl);
}

.prorank-stat-card {
  display: flex;
  align-items: center;
  gap: var(--prorank-space-md);
  padding: var(--prorank-space-lg);
}

.stat-icon {
  font-size: 32px;
  color: var(--prorank-primary);
}

.stat-content {
  display: flex;
  flex-direction: column;
}

.stat-content .stat-number {
  font-size: 24px;
  font-weight: 700;
  color: var(--prorank-text);
}

.stat-content .stat-label {
  font-size: 13px;
  color: var(--prorank-text-secondary);
}

/* Library Controls */
.prorank-library-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--prorank-space-lg);
}

.prorank-control-left {
  display: flex;
  gap: var(--prorank-space-md);
  flex: 1;
}

.prorank-type-filter {
  padding: 8px 12px;
  background: var(--prorank-bg);
  border: 1px solid var(--prorank-border);
  border-radius: var(--prorank-radius-sm);
  font-size: 14px;
  color: var(--prorank-text);
}

.prorank-view-toggle {
  display: flex;
  background: var(--prorank-bg);
  border: 1px solid var(--prorank-border);
  border-radius: var(--prorank-radius-sm);
  overflow: hidden;
}

/* DEPRECATED - Now using ProrankButton component
.prorank-view-btn {
  padding: 8px 12px;
  background: transparent;
  border: none;
  color: var(--prorank-text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.prorank-view-btn:not(:last-child) {
  border-right: 1px solid var(--prorank-border);
}

.prorank-view-btn:hover {
  background: var(--prorank-bg-secondary);
}

.prorank-view-btn.active {
  background: var(--prorank-primary);
  color: white;
}
*/

/* Selected Schema Card - Enterprise Design */
.prorank-schema-selected-card {
  margin-top: 40px;
  padding: 24px;
  border: 2px solid #10b981;
  background: #ffffff;
  border-radius: 12px;
  position: relative;
}

.prorank-schema-selected-card .prorank-card-header {
  background: transparent;
  border-bottom: 1px solid #e5e7eb;
  padding: 0 0 16px 0;
  margin-bottom: 20px;
}

.prorank-selected-header {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.prorank-selected-header .dashicons {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #10b981;
  color: white;
  border-radius: 8px;
  font-size: 18px;
  flex-shrink: 0;
}

.prorank-selected-header h3 {
  flex: 1;
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #111827;
}

.prorank-badge-success {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: #dcfce7;
  color: #14532d;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.prorank-badge-success .dashicons {
  font-size: 14px;
  width: 14px;
  height: 14px;
  color: #16a34a;
}

.prorank-schema-selected-card .prorank-card-body {
  padding: 0;
  background: transparent;
}

.prorank-schema-description {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 20px;
}

.prorank-schema-properties h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  margin: 0 0 12px 0;
}

.prorank-schema-properties h4 .dashicons {
  color: #9ca3af;
  font-size: 16px;
}

.prorank-properties-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.prorank-property-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
}

.prorank-property-chip .dashicons {
  font-size: 14px;
  color: #10b981;
}

.prorank-property-chip.prorank-more {
  background: #fef3c7;
  border-color: #fde68a;
  font-weight: 600;
  color: #92400e;
}

.prorank-schema-properties-list {
  margin-top: 10px;
  padding-left: 20px;
}

/* Schema Grid/List Views */
.prorank-schemas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--prorank-space-lg);
}

.prorank-schemas-list {
  display: flex;
  flex-direction: column;
  gap: var(--prorank-space-md);
}

.prorank-schema-item {
  position: relative;
  transition: all 0.3s ease;
}

.prorank-schema-item.inactive {
  opacity: 0.6;
}

.prorank-schema-item-header {
  display: flex;
  align-items: center;
  gap: var(--prorank-space-md);
  padding: var(--prorank-space-lg);
  border-bottom: 1px solid var(--prorank-border-light);
}

.prorank-schema-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--prorank-primary-light);
  border-radius: var(--prorank-radius);
  flex-shrink: 0;
}

.prorank-schema-icon .dashicons {
  font-size: 24px;
  color: var(--prorank-primary);
}

.prorank-schema-info {
  flex: 1;
}

.prorank-schema-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--prorank-text);
  margin: 0 0 4px;
}

.prorank-schema-type {
  font-size: 13px;
  color: var(--prorank-text-secondary);
}

.prorank-schema-status {
  flex-shrink: 0;
}

.prorank-schema-item-body {
  padding: var(--prorank-space-md) var(--prorank-space-lg);
}

.prorank-schema-details {
  display: flex;
  flex-wrap: wrap;
  gap: var(--prorank-space-md);
}

.prorank-detail {
  display: flex;
  align-items: center;
  gap: var(--prorank-space-xs);
  font-size: 13px;
  color: var(--prorank-text-secondary);
}

.prorank-detail .dashicons {
  font-size: 16px;
  opacity: 0.6;
}

.prorank-schema-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--prorank-space-md) var(--prorank-space-lg);
  background: var(--prorank-bg-secondary);
  border-top: 1px solid var(--prorank-border-light);
}

/* Empty State */
.prorank-empty-state {
  text-align: center;
  padding: var(--prorank-space-3xl);
}

.prorank-empty-state .dashicons {
  font-size: 64px;
  color: var(--prorank-text-tertiary);
  margin-bottom: var(--prorank-space-lg);
}

.prorank-empty-state h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--prorank-text);
  margin: 0 0 var(--prorank-space-sm);
}

.prorank-empty-state p {
  font-size: 14px;
  color: var(--prorank-text-secondary);
  margin: 0 0 var(--prorank-space-xl);
}

/* Library Footer */
.prorank-library-footer {
  margin-top: var(--prorank-space-2xl);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 768px) {
  .prorank-schema-wizard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--prorank-space-md);
  }

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

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

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

  .prorank-schema-wizard-footer {
    flex-direction: column;
    gap: var(--prorank-space-md);
  }

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

  .prorank-library-header {
    flex-direction: column;
    gap: var(--prorank-space-md);
  }

  .prorank-library-controls {
    flex-direction: column;
    gap: var(--prorank-space-md);
  }

  .prorank-control-left {
    width: 100%;
  }

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

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

  .prorank-schema-trust {
    flex-direction: column;
    align-items: flex-start;
  }
}