/**
 * Innovation Hub Styles
 * Modern, clean design for recommendations and insights
 */

/* ============================================================================
   Modal Base Styles
   ============================================================================ */

.innovation-hub-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  animation: fadeIn 0.3s ease-out;
}

.innovation-hub-modal.visible {
  display: flex;
  align-items: center;
  justify-content: center;
}

.innovation-hub-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.innovation-hub-container {
  position: relative;
  width: 90%;
  max-width: 1200px;
  max-height: 85vh;
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ============================================================================
   Header
   ============================================================================ */

.innovation-hub-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.innovation-hub-title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.innovation-icon {
  font-size: 32px;
}

.innovation-hub-title h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
}

.innovation-subtitle {
  margin: 4px 0 0 0;
  font-size: 14px;
  opacity: 0.9;
}

.innovation-close-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  color: white;
  transition: all 0.2s ease;
}

.innovation-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

/* ============================================================================
   Tabs
   ============================================================================ */

.innovation-hub-tabs {
  display: flex;
  gap: 8px;
  padding: 16px 32px 0;
  background: white;
  border-bottom: 1px solid #e5e7eb;
}

.innovation-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: none;
  border: none;
  border-radius: 8px 8px 0 0;
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s ease;
}

.innovation-tab:hover {
  background: #f3f4f6;
  color: #374151;
}

.innovation-tab.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.tab-icon {
  font-size: 16px;
}

.tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}

.innovation-tab.active .tab-badge {
  background: rgba(255, 255, 255, 0.4);
}

/* ============================================================================
   Content
   ============================================================================ */

.innovation-hub-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px 32px;
  background: #f9fafb;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease-out;
}

/* ============================================================================
   Empty State
   ============================================================================ */

.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.empty-state h3 {
  margin: 0 0 8px 0;
  font-size: 20px;
  color: #1f2937;
}

.empty-state p {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
}

/* ============================================================================
   Recommendation Cards
   ============================================================================ */

.recommendations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 20px;
}

.rec-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border-left: 4px solid #667eea;
}

.rec-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.rec-card.priority-critical {
  border-left-color: #ef4444;
}

.rec-card.priority-high {
  border-left-color: #f59e0b;
}

.rec-card.priority-medium {
  border-left-color: #10b981;
}

.rec-card.priority-low {
  border-left-color: #3b82f6;
}

.rec-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.rec-priority {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: #fef2f2;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  color: #991b1b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rec-card.priority-high .rec-priority {
  background: #fffbeb;
  color: #92400e;
}

.rec-card.priority-medium .rec-priority {
  background: #ecfdf5;
  color: #065f46;
}

.rec-card.priority-low .rec-priority {
  background: #eff6ff;
  color: #1e40af;
}

.rec-type {
  padding: 4px 8px;
  background: #f3f4f6;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  color: #6b7280;
  text-transform: capitalize;
}

.rec-title {
  margin: 0 0 12px 0;
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
}

.rec-description {
  margin: 0 0 16px 0;
  font-size: 14px;
  line-height: 1.6;
  color: #4b5563;
}

.rec-impact {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px;
  background: linear-gradient(135deg, #667eea10 0%, #764ba210 100%);
  border-radius: 8px;
}

.impact-icon {
  font-size: 20px;
}

.impact-content {
  flex: 1;
}

.impact-metric {
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  margin-bottom: 2px;
}

.impact-value {
  font-size: 14px;
  font-weight: 600;
  color: #667eea;
}

.rec-effort {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #6b7280;
}

.effort-icon {
  font-size: 16px;
}

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

.rec-actions button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
  background: #f3f4f6;
  color: #374151;
}

.btn-secondary:hover {
  background: #e5e7eb;
}

/* ============================================================================
   Insight Cards
   ============================================================================ */

.insights-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.insight-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-left: 4px solid #10b981;
}

.insight-card.impact-high {
  border-left-color: #ef4444;
}

.insight-card.impact-medium {
  border-left-color: #f59e0b;
}

.insight-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.insight-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: #f3f4f6;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  color: #374151;
  text-transform: capitalize;
}

.insight-confidence {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
}

.insight-title {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
}

.insight-description {
  margin: 0 0 12px 0;
  font-size: 14px;
  line-height: 1.6;
  color: #4b5563;
}

.insight-footer {
  display: flex;
  justify-content: flex-end;
}

.insight-impact {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================================================
   Statistics
   ============================================================================ */

.stats-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.stats-section h3 {
  margin: 0 0 16px 0;
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
}

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

.stat-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: #667eea;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  color: #6b7280;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.feature-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: white;
}

.feature-name {
  flex: 1;
  font-size: 14px;
  color: #374151;
}

.feature-count {
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
}

.feature-item.low-usage {
  opacity: 0.6;
}

/* ============================================================================
   Settings
   ============================================================================ */

.settings-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.settings-section {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.settings-section h3 {
  margin: 0 0 20px 0;
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
}

.setting-item {
  margin-bottom: 16px;
}

.setting-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.setting-label {
  font-size: 15px;
  font-weight: 500;
  color: #1f2937;
}

.setting-description {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #6b7280;
}

.setting-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 20px 0;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: 0.3s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

input:checked + .toggle-slider:before {
  transform: translateX(24px);
}

/* Privacy Info */
.privacy-info {
  margin-top: 20px;
}

.privacy-info h4 {
  margin: 16px 0 8px 0;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.privacy-info ul {
  margin: 0 0 16px 0;
  padding-left: 24px;
}

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

.privacy-note {
  margin: 16px 0 0 0;
  padding: 12px 16px;
  background: #f0f9ff;
  border-left: 3px solid #3b82f6;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.6;
  color: #1e40af;
}

/* Data Info */
.data-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.data-stat {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
}

.data-label {
  font-size: 14px;
  color: #6b7280;
}

.data-value {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.data-actions {
  display: flex;
  gap: 12px;
}

.data-actions button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-danger {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.btn-danger:hover {
  background: #fee2e2;
  border-color: #fca5a5;
}

/* ============================================================================
   Toast Notifications
   ============================================================================ */

.innovation-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 16px 24px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10001;
}

.innovation-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.toast-success {
  background: #ecfdf5;
  color: #065f46;
  border-left: 3px solid #10b981;
}

.toast-error {
  background: #fef2f2;
  color: #991b1b;
  border-left: 3px solid #ef4444;
}

.toast-info {
  background: #f0f9ff;
  color: #1e40af;
  border-left: 3px solid #3b82f6;
}

/* ============================================================================
   Responsive
   ============================================================================ */

@media (max-width: 768px) {
  .innovation-hub-container {
    width: 95%;
    max-height: 90vh;
  }

  .innovation-hub-header {
    padding: 16px 20px;
  }

  .innovation-hub-title h2 {
    font-size: 20px;
  }

  .innovation-hub-tabs {
    padding: 12px 20px 0;
    overflow-x: auto;
  }

  .innovation-tab {
    padding: 10px 16px;
    font-size: 13px;
    white-space: nowrap;
  }

  .innovation-hub-content {
    padding: 16px 20px;
  }

  .recommendations-grid {
    grid-template-columns: 1fr;
  }

  .data-actions {
    flex-direction: column;
  }
}
