/**
 * Prompt Guidance System Styles
 * Beautiful, helpful UI to guide users through creating perfect prompts
 */

.prompt-guidance-panel,
.prompt-suggestions-panel {
  margin-top: 24px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  border: 2px solid rgba(99, 102, 241, 0.2);
  border-radius: 16px;
  animation: slideInUp 0.5s ease-out;
}

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

/* Guidance Header */
.guidance-header,
.suggestions-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-color, #6366f1);
}

.guidance-header i,
.suggestions-header i {
  font-size: 24px;
  animation: pulse 2s ease-in-out infinite;
}

/* Progress Bar */
.guidance-progress {
  margin-bottom: 24px;
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 50%, #10b981 100%);
  border-radius: 12px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.5);
}

.progress-text {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-secondary, #64748b);
  text-align: center;
  font-weight: 600;
}

/* Checklist */
.guidance-checklist {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid transparent;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

.checklist-item:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: var(--primary-color, #6366f1);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.checklist-item.completed {
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

.checklist-item.completed i {
  color: #10b981;
  animation: checkBounce 0.5s ease;
}

@keyframes checkBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.checklist-item.pending {
  color: var(--text-secondary, #64748b);
}

.checklist-item.pending i {
  color: #cbd5e1;
}

.checklist-item i {
  font-size: 18px;
  flex-shrink: 0;
}

.checklist-item span {
  flex: 1;
}

/* Quality Score */
.guidance-quality {
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.4) 100%);
  border-radius: 16px;
  border: 2px solid rgba(99, 102, 241, 0.2);
}

.quality-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary, #64748b);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

/* Guidance Panel Quality Score - LARGE display in sidebar */
.guidance-quality .quality-score,
#promptGuidancePanel .quality-score {
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 12px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  animation: scoreAppear 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: block !important; /* Override header inline style */
}

@keyframes scoreAppear {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.quality-hint {
  font-size: 14px;
  color: var(--text-secondary, #64748b);
  line-height: 1.5;
  max-width: 400px;
  margin: 0 auto;
}

/* Suggestions Panel */
.prompt-suggestions-panel {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(251, 191, 36, 0.1) 100%);
  border-color: rgba(245, 158, 11, 0.4);
  border-width: 2px;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.1);
}

.suggestions-list {
  display: grid;
  gap: 16px;
}

.suggestion-item {
  display: flex;
  gap: 16px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.suggestion-item:hover {
  background: rgba(255, 255, 255, 1.0);
  border-color: rgba(245, 158, 11, 0.7);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(245, 158, 11, 0.25);
}

.suggestion-item i {
  font-size: 24px;
  color: #d97706;
  flex-shrink: 0;
  margin-top: 4px;
}

.suggestion-content {
  flex: 1;
}

.suggestion-content strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 6px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.suggestion-content p {
  font-size: 14px;
  color: #374151;
  margin: 0;
  line-height: 1.5;
  font-weight: 500;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .prompt-guidance-panel,
  .prompt-suggestions-panel {
    padding: 16px;
    margin-top: 16px;
  }

  .guidance-header,
  .suggestions-header {
    font-size: 18px;
  }

  /* Guidance Panel Quality Score on mobile */
  .guidance-quality .quality-score,
  #promptGuidancePanel .quality-score {
    font-size: 36px;
  }

  .checklist-item,
  .suggestion-item {
    padding: 10px 12px;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .prompt-guidance-panel,
  .prompt-suggestions-panel {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    border-color: rgba(99, 102, 241, 0.4);
  }

  .prompt-suggestions-panel {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(251, 191, 36, 0.15) 100%);
    border-color: rgba(245, 158, 11, 0.5);
  }

  .checklist-item,
  .suggestion-item {
    background: rgba(30, 41, 59, 0.8);
  }

  .checklist-item:hover,
  .suggestion-item:hover {
    background: rgba(30, 41, 59, 0.95);
  }

  .suggestion-content strong {
    color: #f1f5f9;
  }

  .suggestion-content p {
    color: #cbd5e1;
  }

  .guidance-quality {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(30, 41, 59, 0.4) 100%);
  }
}
