/**
 * Breadcrumbs Settings Styles
 * Modern design system for 2025
 */

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

/* Header removed - component now starts directly with cards */

/* Cards */
.prorank-breadcrumbs-settings .components-card {
  border-radius: 12px;
  border: none;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  background: #ffffff;
  overflow: hidden;
}

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

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

.prorank-breadcrumbs-settings .components-card-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

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

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

.prorank-breadcrumbs-settings .components-text-control__input:focus,
.prorank-breadcrumbs-settings .components-select-control__input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
  outline: none;
}

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

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

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

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

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

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

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

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

.prorank-breadcrumbs-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-breadcrumbs-settings .components-toggle-control .components-form-toggle.is-checked .components-form-toggle__thumb {
  transform: translateX(24px);
}

/* Breadcrumbs Preview */
.prorank-breadcrumbs-preview {
  padding: 24px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 12px;
  border: 2px dashed #e2e8f0;
}

.prorank-breadcrumbs-preview .description {
  color: #64748b;
  font-size: 14px;
  margin-bottom: 20px;
  font-weight: 500;
}

.prorank-breadcrumbs {
  padding: 16px 20px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  font-size: 14px;
}

.prorank-breadcrumbs.has-background {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
}

.prorank-breadcrumbs.style-compact {
  padding: 8px 12px;
  font-size: 13px;
}

.prorank-breadcrumbs.style-large {
  padding: 20px 24px;
  font-size: 16px;
}

.prorank-breadcrumbs-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.prorank-breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.prorank-breadcrumb-item a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  padding: 4px 8px;
  border-radius: 4px;
}

.prorank-breadcrumb-item a:hover {
  color: #3b82f6;
  background: rgba(99, 102, 241, 0.05);
}

.prorank-breadcrumb-separator {
  color: #94a3b8;
  font-weight: 400;
  user-select: none;
}

.prorank-breadcrumb-current {
  color: #475569;
  font-weight: 600;
  padding: 4px 8px;
  background: rgba(99, 102, 241, 0.08);
  border-radius: 4px;
}

/* Code Block */
.prorank-code-block {
  display: block;
  margin: 16px 0;
  padding: 16px;
  background: #1e293b;
  color: #10b981;
  border-radius: 8px;
  font-family: 'SF Mono', Monaco, Consolas, monospace;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  user-select: all;
  position: relative;
  overflow-x: auto;
}

.prorank-code-block::before {
  content: 'SHORTCODE';
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 10px;
  color: #64748b;
  letter-spacing: 1px;
  font-weight: 600;
}

/* Info Box */
.prorank-info-box {
  margin-top: 24px;
  padding: 20px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-left: 4px solid #3b82f6;
  border-radius: 8px;
  position: relative;
}

.prorank-info-box::before {
  content: '💡';
  position: absolute;
  top: 20px;
  left: -2px;
  width: 24px;
  height: 24px;
  background: #3b82f6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.prorank-info-box strong {
  display: block;
  color: #1e40af;
  font-size: 15px;
  margin-bottom: 8px;
}

.prorank-info-box p {
  margin: 8px 0 0;
  color: #1d4ed8;
  font-size: 14px;
  line-height: 1.6;
}

/* Shortcode Parameters List */
.prorank-breadcrumbs-settings ul {
  margin: 16px 0;
  padding-left: 0;
  list-style: none;
}

.prorank-breadcrumbs-settings ul li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
}

.prorank-breadcrumbs-settings ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #3b82f6;
  font-weight: bold;
}

.prorank-breadcrumbs-settings ul li code {
  background: #f1f5f9;
  color: #3b82f6;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'SF Mono', Monaco, Consolas, monospace;
}

/* Horizontal Rule */
.prorank-breadcrumbs-settings hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 24px 0;
}

/* 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%, #2563eb 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25);
}

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

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

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

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

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

/* Responsive Design */
@media (max-width: 768px) {
  .prorank-breadcrumbs-settings {
    padding: 16px;
  }
  
  .prorank-settings-header {
    padding: 24px;
  }
  
  .prorank-settings-header h3 {
    font-size: 24px;
  }
  
  .prorank-breadcrumbs-list {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .prorank-breadcrumb-separator {
    transform: rotate(90deg);
  }
}

/* Animations */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.prorank-breadcrumbs-settings .components-card {
  animation: slideIn 0.4s ease forwards;
}

.prorank-breadcrumbs-settings .components-card:nth-child(2) {
  animation-delay: 0.1s;
}

.prorank-breadcrumbs-settings .components-card:nth-child(3) {
  animation-delay: 0.2s;
}

.prorank-breadcrumbs-settings .components-card:nth-child(4) {
  animation-delay: 0.3s;
}

.prorank-breadcrumbs-settings .components-card:nth-child(5) {
  animation-delay: 0.4s;
}

/* Notification Badge */
.prorank-new-feature {
  display: inline-block;
  padding: 2px 8px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  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;
  }
}