/**
 * Caching & Delivery Page Styles
 * Clean, professional styles for performance settings
 * @since 3.0.0
 */

/* ============================================
   QUICK ACTIONS BAR
   ============================================ */

.prorank-quick-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding: 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.prorank-actions-left {
  display: flex;
  gap: 12px;
  align-items: center;
}

.prorank-actions-right {
  display: flex;
  align-items: center;
}

.prorank-import-button {
  display: inline-block;
}

/* ============================================
   STATS DASHBOARD
   ============================================ */

.prorank-stats-dashboard {
  margin-bottom: 24px;
}

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

.prorank-stat-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}

.prorank-stat-icon {
  font-size: 24px;
  color: #f97316;
  margin-bottom: 12px;
}

.prorank-stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 4px;
}

.prorank-stat-label {
  font-size: 12px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.prorank-stat-gauge {
  width: 100%;
  height: 8px;
  background: #f3f4f6;
  border-radius: 4px;
  margin-top: 12px;
  overflow: hidden;
}

.prorank-stat-gauge-fill {
  height: 100%;
  background: linear-gradient(90deg, #f97316, #fb923c);
  border-radius: 4px;
  transition: width 0.5s ease;
}

/* ============================================
   OPTIMIZATION SCORE
   ============================================ */

.prorank-optimization-score {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
}

.prorank-score-label {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 12px;
}

.prorank-score-bar {
  position: relative;
  height: 24px;
  background: #f3f4f6;
  border-radius: 12px;
  overflow: hidden;
}

.prorank-score-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #34d399);
  border-radius: 12px;
  transition: width 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12px;
}

.prorank-score-value {
  color: white;
  font-size: 13px;
  font-weight: 600;
}

.prorank-score-recommendations {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.prorank-recommendation-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  font-size: 14px;
  color: #6b7280;
}

.prorank-recommendation-item .dashicons {
  color: #fbbf24;
  font-size: 16px;
}

/* ============================================
   SPEED TEST RESULTS
   ============================================ */

.prorank-speed-results {
  padding: 20px;
}

.prorank-speed-comparison {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.prorank-speed-item {
  text-align: center;
}

.prorank-speed-label {
  display: block;
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 4px;
}

.prorank-speed-value {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
}

.prorank-speed-value.prorank-text-success {
  color: #10b981;
}

.prorank-speed-value.prorank-text-primary {
  color: #f97316;
}

.prorank-recommendations {
  background: #f9fafb;
  border-radius: 6px;
  padding: 16px;
}

.prorank-recommendations h4 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 12px 0;
  color: #1f2937;
}

.prorank-recommendations ul {
  margin: 0;
  padding: 0 0 0 20px;
}

.prorank-recommendations li {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 6px;
}

/* ============================================
   PRESET BUTTONS
   ============================================ */

.prorank-preset-buttons {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.prorank-preset-buttons .prorank-button-link {
  padding: 4px 12px;
  font-size: 12px;
  color: #2563eb;
  text-decoration: none;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.prorank-preset-buttons .prorank-button-link:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

/* ============================================
   CDN STATUS
   ============================================ */

.prorank-cdn-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 6px;
  margin-top: 12px;
}

.prorank-cdn-status-icon {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.prorank-cdn-status-text {
  font-size: 13px;
  color: #166534;
}

/* ============================================
   CACHE EXCLUSIONS
   ============================================ */

.prorank-exclusions-list {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 12px;
  margin-top: 8px;
}

.prorank-exclusion-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #e5e7eb;
}

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

.prorank-exclusion-pattern {
  font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
  font-size: 13px;
  color: #374151;
}

.prorank-exclusion-remove {
  color: #ef4444;
  cursor: pointer;
  font-size: 12px;
  text-decoration: none;
}

.prorank-exclusion-remove:hover {
  text-decoration: underline;
}

/* ============================================
   PRELOAD SETTINGS
   ============================================ */

.prorank-preload-status {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 6px;
  margin-top: 12px;
}

.prorank-preload-progress {
  flex: 1;
  height: 8px;
  background: #fef3c7;
  border-radius: 4px;
  overflow: hidden;
}

.prorank-preload-progress-bar {
  height: 100%;
  background: #f59e0b;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.prorank-preload-status-text {
  font-size: 12px;
  color: #92400e;
  white-space: nowrap;
}

/* ============================================
   ADVANCED MODE
   ============================================ */

.prorank-advanced-section {
  background: #fafafa;
  border: 2px dashed #d1d5db;
  border-radius: 8px;
  padding: 20px;
  margin-top: 24px;
}

.prorank-advanced-warning {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  margin-bottom: 16px;
}

.prorank-advanced-warning-icon {
  color: #ef4444;
  font-size: 20px;
}

.prorank-advanced-warning-text {
  font-size: 13px;
  color: #991b1b;
  line-height: 1.5;
}