/**
 * Schema Components Styles
 * Styles for all schema wizard components
 */

/* Schema Type Selector Component */
.prorank-schema-type-selector {
  padding: 20px;
  background: transparent;
}

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

.prorank-selector-header h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #1e1e1e;
}

.prorank-selector-header .description {
  color: #666;
  font-size: 14px;
  line-height: 1.5;
}

.prorank-schema-name-field {
  margin-bottom: 30px;
  max-width: 500px;
}

.prorank-selector-controls {
  margin-bottom: 20px;
  max-width: 400px;
}

.prorank-schema-categories {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.prorank-category-tab {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 13px;
}

.prorank-category-tab:hover {
  background: #f5f5f5;
}

.prorank-category-tab.active {
  background: #ff6900;
  color: #fff;
  border-color: #ff6900;
}

.prorank-schema-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.prorank-schema-card {
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  background: #fff;
}

.prorank-schema-card:hover {
  border-color: #ff6900;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.prorank-schema-card.selected {
  border-color: #ff6900;
  background: #f0f8ff;
}

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

.prorank-schema-icon {
  font-size: 32px;
  color: #ff6900;
}

.prorank-selected-badge {
  color: #00a32a;
  font-size: 24px;
}

.prorank-schema-card-body h4 {
  margin: 0 0 8px 0;
  font-size: 16px;
  color: #1e1e1e;
}

.prorank-schema-card-body p {
  margin: 0 0 10px 0;
  color: #666;
  font-size: 13px;
  line-height: 1.5;
}

.prorank-schema-category {
  display: inline-block;
  background: #f0f0f0;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  color: #666;
}

.prorank-schema-extends {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e0e0e0;
  font-size: 12px;
  color: #999;
}

.prorank-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.prorank-no-results .dashicons {
  font-size: 48px;
  display: block;
  margin: 0 auto 20px;
}

.prorank-selected-schema-info {
  margin-top: 30px;
}

.prorank-info-box {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
}

.prorank-info-box h4 {
  margin: 0 0 10px 0;
  color: #ff6900;
}

.prorank-schema-properties {
  margin-top: 15px;
}

.prorank-schema-properties strong {
  display: block;
  margin-bottom: 8px;
  color: #1e1e1e;
}

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

.prorank-schema-properties li {
  margin: 4px 0;
  color: #666;
}

/* Schema Targeting Component */
.prorank-schema-targeting {
  padding: 20px;
  background: transparent;
}

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

.prorank-targeting-header h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #1e1e1e;
}

.prorank-targeting-mode {
  margin-bottom: 30px;
}

.prorank-auto-targeting .prorank-info-box {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #f0f8ff;
  border: 1px solid #ff6900;
  border-radius: 8px;
  padding: 20px;
}

.prorank-auto-targeting .prorank-info-box .dashicons {
  font-size: 32px;
  color: #ff6900;
}

.prorank-auto-targeting .prorank-info-box h4 {
  margin: 0 0 5px 0;
  color: #1e1e1e;
}

.prorank-auto-targeting .prorank-info-box p {
  margin: 0;
  color: #666;
}

.prorank-targeting-section {
  margin-bottom: 30px;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
}

.prorank-targeting-section h4 {
  margin: 0 0 10px 0;
  color: #1e1e1e;
}

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

.prorank-scrollable {
  max-height: 200px;
  overflow-y: auto;
  padding: 10px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
}

.prorank-rule-builder {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 15px;
  align-items: end;
  margin-top: 15px;
}

.prorank-rules-list {
  margin-top: 20px;
  padding: 15px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
}

.prorank-rules-list h5 {
  margin: 0 0 10px 0;
  color: #1e1e1e;
}

.prorank-rule-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px;
  margin-bottom: 5px;
  background: #f5f5f5;
  border-radius: 4px;
}

.prorank-rule-text {
  font-family: monospace;
  font-size: 13px;
}

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

.prorank-targeting-summary h4 {
  margin: 0 0 15px 0;
  color: #ff6900;
}

.prorank-summary-content p {
  margin: 5px 0;
  color: #00a32a;
}

/* Schema Mapper Component */
.prorank-schema-mapper {
  padding: 20px;
  background: transparent;
}

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

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

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

.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;
  color: #1e1e1e;
}

.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;
  color: #1e1e1e;
}

.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: #ff6900;
}

.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 #ff6900;
  border-radius: 8px;
}

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

.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: #ff6900;
  margin-bottom: 5px;
}

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

/* Schema Library Component */
.prorank-schema-library {
  padding: 20px;
  background: transparent;
}

.prorank-library-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 30px;
}

.prorank-library-title h2 {
  margin: 0 0 10px 0;
  color: #1e1e1e;
}

.prorank-add-schema-btn {
  display: flex;
  align-items: center;
  gap: 5px;
}

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

.prorank-stat-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
}

.prorank-stat-card .stat-icon {
  font-size: 32px;
  color: #ff6900;
}

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

.prorank-library-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 8px;
  flex-wrap: wrap;
  gap: 15px;
}

.prorank-control-left {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.prorank-control-right {
  display: flex;
  gap: 5px;
}

.prorank-type-filter {
  min-width: 150px;
  padding: 6px 12px;
  border: 1px solid #8c8f94;
  border-radius: 4px;
  background: #fff;
  font-size: 13px;
}

.prorank-empty-state {
  text-align: center;
  padding: 60px 20px;
  background: #f9f9f9;
  border-radius: 8px;
}

.prorank-empty-state .dashicons {
  font-size: 64px;
  color: #ddd;
  display: block;
  margin: 0 auto 20px;
}

.prorank-empty-state h3 {
  margin: 0 0 10px 0;
  color: #1e1e1e;
}

.prorank-empty-state p {
  margin: 0 0 20px 0;
  color: #666;
}

.prorank-schemas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.prorank-schemas-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
}

.prorank-schema-item {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  transition: all 0.2s;
}

.prorank-schema-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

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

.prorank-schema-item-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.prorank-schema-icon {
  width: 48px;
  height: 48px;
  background: #f0f8ff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prorank-schema-icon .dashicons {
  font-size: 24px;
  color: #ff6900;
}

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

.prorank-schema-name {
  margin: 0 0 5px 0;
  font-size: 16px;
  color: #1e1e1e;
}

.prorank-schema-type {
  display: inline-block;
  padding: 2px 8px;
  background: #f0f0f0;
  border-radius: 3px;
  font-size: 12px;
  color: #666;
}

.prorank-schema-status {
  margin-left: auto;
}

.prorank-schema-item-body {
  margin-bottom: 15px;
}

.prorank-schema-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prorank-detail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #666;
}

.prorank-detail .dashicons {
  font-size: 16px;
  color: #999;
}

.prorank-schema-item-footer {
  display: flex;
  gap: 10px;
  padding-top: 15px;
  border-top: 1px solid #e0e0e0;
}

.prorank-schemas-list .prorank-schema-item {
  display: flex;
  align-items: center;
  gap: 20px;
}

.prorank-schemas-list .prorank-schema-item-header {
  flex: 1;
  margin-bottom: 0;
}

.prorank-schemas-list .prorank-schema-item-body {
  flex: 2;
  margin-bottom: 0;
}

.prorank-schemas-list .prorank-schema-details {
  flex-direction: row;
  gap: 20px;
}

.prorank-schemas-list .prorank-schema-item-footer {
  border: none;
  padding: 0;
}

.prorank-library-footer {
  margin-top: 30px;
}

/* Loading States */
.prorank-targeting-loading,
.prorank-mapper-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding: 40px;
}

.prorank-targeting-loading p,
.prorank-mapper-loading p {
  margin-top: 20px;
  color: #666;
  font-size: 14px;
}

/* Responsive Design */
@media (max-width: 782px) {
  .prorank-schema-grid {
    grid-template-columns: 1fr;
  }
  
  .prorank-checkbox-group {
    grid-template-columns: 1fr;
  }
  
  .prorank-rule-builder {
    grid-template-columns: 1fr;
  }
  
  .prorank-mapper-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .prorank-summary-stats {
    grid-template-columns: 1fr;
  }
  
  .prorank-library-stats {
    grid-template-columns: 1fr;
  }
  
  .prorank-schemas-grid {
    grid-template-columns: 1fr;
  }
  
  .prorank-library-header {
    flex-direction: column;
    gap: 15px;
  }
  
  .prorank-library-controls {
    flex-direction: column;
  }
  
  .prorank-control-left,
  .prorank-control-right {
    width: 100%;
    justify-content: center;
  }
}