/* AI App Analyzer Styles */
/* Extends portfolio CSS variables and theme system */

/* CSS Variables - Analyzer Specific */
:root {
  /* Analyzer-specific spacing */
  --analyzer-section-gap: 60px;
  --analyzer-card-gap: 30px;
  
  /* Analyzer-specific transitions */
  --analyzer-transition-smooth: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Analyzer-specific shadows */
  --analyzer-shadow-card: 0 4px 20px rgba(0, 0, 0, 0.15);
  --analyzer-shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.light {
  --analyzer-shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
  --analyzer-shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* Input Forms */
.input-form {
  background: var(--bg-secondary);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  max-width: 800px;
  margin: 0 auto;
  display: none;
  box-shadow: var(--analyzer-shadow-card);
  transition: all var(--analyzer-transition-smooth);
}

.light .input-form {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.input-form.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

/* Form Header */
.form-header {
  text-align: center;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid rgba(214, 178, 94, 0.1);
}

.light .form-header {
  border-bottom-color: rgba(139, 107, 31, 0.15);
}

.form-header h3 {
  font-size: 24px;
  margin-bottom: 12px;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.form-header p {
  color: var(--text-muted);
  font-size: 14px;
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.required {
  color: #ef4444;
  margin-left: 4px;
}

.char-counter,
.file-counter {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-tertiary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  transition: all var(--transition-fast);
}

.form-group select {
  padding-right: 40px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23d6b25e' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}

.light .form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238b6b1f' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

.light .form-group input,
.light .form-group textarea,
.light .form-group select {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
  line-height: 1.6;
}

.form-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

.validation-message {
  font-size: 12px;
  color: #ef4444;
  margin-top: 6px;
  display: none;
}

.validation-message.show {
  display: block;
}

/* File Upload */
.file-upload-area {
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
  background: var(--bg-tertiary);
}

.light .file-upload-area {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.2);
}

.file-upload-area:hover {
  border-color: var(--accent-primary);
  background: rgba(214, 178, 94, 0.05);
}

.file-upload-area.drag-over {
  border-color: var(--accent-primary);
  background: rgba(214, 178, 94, 0.1);
  transform: scale(1.02);
}

.file-upload-area i {
  font-size: 48px;
  color: var(--accent-primary);
  margin-bottom: 16px;
  display: block;
}

.file-upload-area p {
  margin-bottom: 8px;
  color: var(--text-primary);
}

.upload-hint {
  font-size: 12px;
  color: var(--text-muted);
}

.screenshot-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.screenshot-preview {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 9/16;
  background: var(--bg-tertiary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.screenshot-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screenshot-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(239, 68, 68, 0.9);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: all var(--transition-fast);
}

.screenshot-remove:hover {
  background: #dc2626;
  transform: scale(1.1);
}

/* Submit Button */
.submit-btn {
  width: 100%;
  margin-top: var(--space-lg);
  padding: 16px;
  font-size: 16px;
  justify-content: center;
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.light .loading-overlay {
  background: rgba(255, 255, 255, 0.9);
}

.loading-content {
  background: var(--bg-secondary);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  text-align: center;
  max-width: 400px;
  width: 90%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--analyzer-shadow-hover);
}

.light .loading-content {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Loading spinner styles moved to enhanced version below */

.loading-content h3 {
  margin-bottom: 12px;
}

.loading-message {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 20px;
}

.loading-progress {
  margin-bottom: 20px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-accent);
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
  width: 0%;
}

.progress-text {
  font-size: 12px;
  color: var(--text-muted);
}

.cancel-btn {
  background: none;
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #ef4444;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 14px;
  transition: all var(--transition-fast);
}

.cancel-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: #ef4444;
}

/* Report Container */
.report-container {
  max-width: 1000px;
  margin: 60px auto 0;
  animation: fadeIn 0.5s ease;
  padding: 0 var(--space-md);
}

@media (min-width: 768px) {
  .report-container {
    padding: 0 var(--space-lg);
  }
}

@media (min-width: 1024px) {
  .report-container {
    max-width: 1200px;
    padding: 0 var(--space-xl);
  }
}

.report-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.report-title h2 {
  font-size: 32px;
  margin-bottom: 8px;
}

.report-subtitle {
  font-size: 14px;
  color: var(--text-muted);
}

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

/* Report Sections */
.report-section {
  background: var(--bg-secondary);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: var(--space-lg);
  box-shadow: var(--analyzer-shadow-card);
  transition: all var(--analyzer-transition-smooth);
}

.report-section:hover {
  box-shadow: var(--analyzer-shadow-hover);
  transform: translateY(-2px);
}

.light .report-section {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.light .report-section:hover {
  box-shadow: var(--analyzer-shadow-hover);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid rgba(214, 178, 94, 0.2);
}

.section-icon {
  font-size: 28px;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header h3 {
  font-size: 24px;
  margin: 0;
}

/* Quality Metrics */
.quality-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
}

.metric-card {
  background: var(--bg-tertiary);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.metric-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(214, 178, 94, 0.3);
}

.metric-card:hover::before {
  transform: scaleX(1);
}

.light .metric-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.light .metric-card:hover {
  border-color: rgba(139, 107, 31, 0.3);
}

.metric-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 600;
}

.metric-value {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
}

.score {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.score-max {
  font-size: 20px;
  color: var(--text-muted);
}

/* Metric Bar */
.metric-bar {
  width: 100%;
  height: 8px;
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 12px;
  position: relative;
}

.light .metric-bar {
  background: rgba(0, 0, 0, 0.05);
}

.metric-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
  position: relative;
  overflow: hidden;
}

.metric-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.metric-badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.metric-explanation {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Problems List */
.problems-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.problem-card {
  background: var(--bg-tertiary);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  border-left: 4px solid;
  transition: all var(--transition-base);
  position: relative;
}

.problem-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.light .problem-card {
  background: #ffffff;
}

.problem-card[data-impact="high"] {
  border-left-color: #ef4444;
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.05) 0%, var(--bg-tertiary) 10%);
}

.problem-card[data-impact="medium"] {
  border-left-color: #f59e0b;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.05) 0%, var(--bg-tertiary) 10%);
}

.problem-card[data-impact="low"] {
  border-left-color: #3b82f6;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.05) 0%, var(--bg-tertiary) 10%);
}

.light .problem-card[data-impact="high"] {
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.03) 0%, #ffffff 10%);
}

.light .problem-card[data-impact="medium"] {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.03) 0%, #ffffff 10%);
}

.light .problem-card[data-impact="low"] {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.03) 0%, #ffffff 10%);
}

.problem-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

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

.problem-title {
  font-size: 18px;
  font-weight: 600;
  flex: 1;
}

/* Impact Badge */
.impact-badge {
  padding: 4px 12px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.impact-badge.high {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.impact-badge.medium {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.impact-badge.low {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.problem-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Suggestions Container */
.suggestions-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.suggestion-category h4 {
  font-size: 18px;
  margin-bottom: var(--space-md);
  color: var(--accent-primary);
}

.suggestion-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* Suggestion Card */
.suggestion-card {
  background: var(--bg-tertiary);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.suggestion-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition-base);
}

.suggestion-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(214, 178, 94, 0.3);
}

.suggestion-card:hover::before {
  transform: scaleY(1);
}

.light .suggestion-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.light .suggestion-card:hover {
  border-color: rgba(139, 107, 31, 0.3);
}

.suggestion-header {
  display: flex;
  align-items: start;
  gap: 12px;
  margin-bottom: 12px;
}

.suggestion-icon {
  font-size: 18px;
  color: var(--accent-primary);
  margin-top: 2px;
}

.suggestion-title {
  font-size: 16px;
  font-weight: 600;
  flex: 1;
}

.suggestion-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Technical Recommendations */
.tech-recommendations {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.tech-card {
  background: var(--bg-tertiary);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all var(--transition-base);
  position: relative;
}

.tech-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(214, 178, 94, 0.3);
}

.light .tech-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.light .tech-card:hover {
  border-color: rgba(139, 107, 31, 0.3);
}

.tech-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.tech-icon {
  font-size: 24px;
  color: var(--accent-primary);
}

.tech-title {
  font-size: 18px;
  font-weight: 600;
  flex: 1;
}

.tech-category {
  padding: 4px 12px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
  background: rgba(214, 178, 94, 0.15);
  color: var(--accent-primary);
}

.tech-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.tech-implementation {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  padding: 12px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent-primary);
}

.light .tech-implementation {
  background: rgba(0, 0, 0, 0.02);
}

/* Business Analysis */
.business-analysis {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.business-metric h4 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--accent-primary);
}

/* Rating Stars */
.rating {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.rating i {
  font-size: 20px;
  color: var(--accent-primary);
  transition: all var(--transition-fast);
}

.rating i.empty {
  color: rgba(214, 178, 94, 0.2);
}

.rating i.filled {
  animation: starPop 0.3s ease;
}

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

.light .rating i.empty {
  color: rgba(139, 107, 31, 0.2);
}

.business-metric p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Call to Action */
.report-cta {
  background: var(--gradient-accent);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  text-align: center;
  margin-top: var(--space-xl);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-glow);
}

.report-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  animation: ctaShine 3s infinite;
}

@keyframes ctaShine {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.report-cta h3 {
  font-size: 28px;
  color: #000;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.report-cta p {
  font-size: 16px;
  color: rgba(0, 0, 0, 0.7);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.report-cta .btn {
  background: #000;
  color: var(--accent-primary);
  border: none;
  padding: 16px 32px;
  font-size: 16px;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.report-cta .btn:hover {
  background: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* Error Messages */
.error-message {
  display: flex;
  align-items: start;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

.error-message.low {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.error-message.medium {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.error-message.high {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.error-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.error-message.low .error-icon {
  color: #3b82f6;
}

.error-message.medium .error-icon {
  color: #f59e0b;
}

.error-message.high .error-icon {
  color: #ef4444;
}

.error-content {
  flex: 1;
}

.error-content h4 {
  margin: 0 0 8px 0;
  font-size: 16px;
  color: var(--text-primary);
}

.error-content p {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.error-actions {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.error-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 18px;
  padding: 4px;
  transition: color var(--transition-fast);
}

.error-close:hover {
  color: var(--text-primary);
}

/* Responsive Design - Mobile First Approach */

/* Mobile Base Styles (< 768px) - Default */
.input-form {
  padding: var(--space-lg);
}

.quality-metrics {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.suggestions-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.report-header {
  flex-direction: column;
  gap: var(--space-lg);
}

.report-actions {
  width: 100%;
  flex-direction: column;
  gap: 12px;
}

.report-actions .btn {
  width: 100%;
  justify-content: center;
}

.input-method-selection {
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

/* Tablet Styles (768px - 1024px) */
@media (min-width: 768px) {
  .input-form {
    padding: var(--space-xl);
    max-width: 700px;
  }
  
  .quality-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }
  
  .suggestions-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }
  
  .report-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: start;
  }
  
  .report-actions {
    width: auto;
    flex-direction: row;
  }
  
  .report-actions .btn {
    width: auto;
  }
  
  .input-method-selection {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
  }
  
  .hero-section h1 {
    font-size: 48px;
  }
  
  .hero-section p {
    font-size: 18px;
  }
}

/* Desktop Styles (> 1024px) */
@media (min-width: 1024px) {
  .input-form {
    max-width: 800px;
  }
  
  .quality-metrics {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
  }
  
  .suggestions-container {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
  }
  
  .report-container {
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .hero-section h1 {
    font-size: 50px;
  }
}

/* Touch Target Optimization for Mobile */
@media (max-width: 768px) {
  .btn {
    min-height: 44px;
    padding: 14px 24px;
  }
  
  .filter-btn {
    min-height: 44px;
    padding: 10px 16px;
  }
  
  .screenshot-remove {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  
  .chatbot-option {
    min-height: 44px;
  }
  
  .form-group input,
  .form-group textarea,
  .form-group select {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 14px 16px;
  }
  
  /* Loading Overlay Responsive */
  .loading-content {
    max-width: 90%;
    width: 90%;
    padding: var(--space-lg);
  }
  
  .loading-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
  }
  
  .loading-message {
    font-size: 13px;
    margin-bottom: 16px;
  }
  
  .loading-spinner {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
  }
  
  .spinner-ring {
    width: 80px;
    height: 80px;
  }
  
  .loading-spinner i {
    font-size: 28px;
  }
  
  .progress-bar {
    height: 6px;
  }
  
  .progress-text {
    font-size: 11px;
  }
  
  .analysis-stages {
    gap: 10px;
  }
  
  .stage {
    font-size: 12px;
    padding: 8px 12px;
  }
  
  .stage i {
    font-size: 12px;
  }
  
  .cancel-btn {
    font-size: 13px;
    padding: 8px 16px;
  }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .loading-spinner {
    animation: none;
    border-top-color: var(--accent-primary);
  }
  
  .progress-fill {
    transition: none;
  }
}

/* Print Styles */
@media print {
  .tech-bg-container,
  nav,
  .report-actions,
  .report-cta,
  footer {
    display: none !important;
  }
  
  .report-container {
    max-width: 100%;
    padding: 0;
  }
  
  .report-section {
    page-break-inside: avoid;
  }
}


/* Additional Report Styles */

.report-date {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
}

.score-display {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 16px 0;
}

.score-number {
  font-size: 48px;
  font-weight: 700;
}

.score-display.green .score-number {
  color: #10b981;
}

.score-display.blue .score-number {
  color: #3b82f6;
}

.score-display.orange .score-number {
  color: #f59e0b;
}

.score-display.red .score-number {
  color: #ef4444;
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge.high {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge.medium {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge.low {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge.green {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge.blue {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge.orange {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge.red {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge.category {
  background: rgba(214, 178, 94, 0.15);
  color: var(--accent-primary);
  border: 1px solid rgba(214, 178, 94, 0.3);
}

.progress-fill.green {
  background: linear-gradient(90deg, #10b981, #34d399);
}

.progress-fill.blue {
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.progress-fill.orange {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.progress-fill.red {
  background: linear-gradient(90deg, #ef4444, #f87171);
}

.problems-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

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

.problem-title {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.problem-title h4 {
  margin: 0;
  font-size: 18px;
}

.problem-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.growth-subsection {
  margin-bottom: var(--space-xl);
}

.growth-subsection:last-child {
  margin-bottom: 0;
}

.growth-subsection h4 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
}

.suggestions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

.suggestion-card h4 {
  font-size: 16px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.suggestion-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.suggestion-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.tech-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.tech-header {
  display: flex;
  align-items: start;
  gap: 16px;
}

.tech-header i {
  font-size: 28px;
  color: var(--accent-primary);
  margin-top: 4px;
}

.tech-header > div {
  flex: 1;
}

.tech-category {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-primary);
  margin-bottom: 8px;
}

.tech-card h4 {
  font-size: 18px;
  margin: 0 0 12px 0;
  color: var(--text-primary);
}

.tech-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.implementation-guide {
  background: var(--bg-secondary);
  padding: 16px;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--accent-primary);
}

.light .implementation-guide {
  background: rgba(0, 0, 0, 0.02);
}

.implementation-guide strong {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-primary);
  margin-bottom: 8px;
}

.implementation-guide p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

.business-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.business-card {
  background: var(--bg-tertiary);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all var(--transition-base);
}

.business-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(214, 178, 94, 0.3);
}

.light .business-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.light .business-card:hover {
  border-color: rgba(139, 107, 31, 0.3);
}

.business-card h4 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.star-rating {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.star-rating i {
  font-size: 20px;
  color: var(--accent-primary);
}

.star-rating i.filled {
  color: var(--accent-primary);
}

.star-rating i:not(.filled) {
  color: rgba(214, 178, 94, 0.2);
}

.light .star-rating i:not(.filled) {
  color: rgba(139, 107, 31, 0.2);
}

.business-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.cta-section {
  background: var(--gradient-accent);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  animation: ctaShine 3s infinite;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-content h3 {
  font-size: 28px;
  color: #000;
  margin-bottom: 12px;
}

.cta-content p {
  font-size: 16px;
  color: rgba(0, 0, 0, 0.7);
  margin-bottom: 24px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn.large {
  padding: 16px 32px;
  font-size: 16px;
}

.cta-section .btn.primary {
  background: #000;
  color: var(--accent-primary);
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.cta-section .btn.primary:hover {
  background: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* Enhanced Loading Spinner with Rings */
.loading-spinner {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 30px;
}

.spinner-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 3px solid transparent;
  animation: spinRing 2s linear infinite;
}

.spinner-ring:nth-child(1) {
  width: 100px;
  height: 100px;
  border-top-color: var(--accent-primary);
  border-right-color: var(--accent-primary);
  animation-duration: 1.5s;
}

.spinner-ring:nth-child(2) {
  width: 80px;
  height: 80px;
  border-top-color: rgba(214, 178, 94, 0.6);
  border-right-color: rgba(214, 178, 94, 0.6);
  animation-duration: 2s;
  animation-direction: reverse;
}

.spinner-ring:nth-child(3) {
  width: 60px;
  height: 60px;
  border-top-color: rgba(214, 178, 94, 0.3);
  border-right-color: rgba(214, 178, 94, 0.3);
  animation-duration: 2.5s;
}

.loading-spinner .fa-microchip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 32px;
  color: var(--accent-primary);
  z-index: 10;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes spinRing {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.7; transform: translate(-50%, -50%) scale(1.1); }
}

/* Analysis Stages */
.analysis-stages {
  margin-top: 24px;
  padding: 20px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.light .analysis-stages {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.stage {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin-bottom: 8px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-muted);
  transition: all var(--transition-base);
}

.stage:last-child {
  margin-bottom: 0;
}

.stage i {
  font-size: 16px;
  color: var(--text-muted);
  transition: all var(--transition-base);
}

.stage.active {
  background: rgba(214, 178, 94, 0.1);
  color: var(--accent-primary);
  font-weight: 600;
}

.stage.active i {
  color: var(--accent-primary);
  animation: stagePulse 1s ease-in-out infinite;
}

.stage.completed {
  color: var(--text-secondary);
}

.stage.completed i {
  color: #10b981;
}

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

/* Progress Glow Effect */
.progress-bar {
  position: relative;
  overflow: visible;
}

.progress-fill {
  position: relative;
  box-shadow: 0 0 10px var(--accent-glow);
}

.progress-glow {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(214, 178, 94, 0.4),
    transparent
  );
  animation: progressGlow 2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes progressGlow {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Quotation Modal */
.quotation-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.quotation-modal.active {
  opacity: 1;
}

.light .quotation-modal {
  background: rgba(255, 255, 255, 0.9);
}

.quotation-modal-content {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: scale(0.9);
  transition: transform var(--transition-base);
}

.quotation-modal.active .quotation-modal-content {
  transform: scale(1);
}

.light .quotation-modal-content {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.quotation-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.light .quotation-modal-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.quotation-modal-header h3 {
  margin: 0;
  font-size: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 24px;
  padding: 8px;
  transition: all var(--transition-fast);
  border-radius: var(--radius-sm);
}

.modal-close:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.quotation-modal-body {
  padding: var(--space-lg);
}

.form-message {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  font-size: 14px;
  display: none;
}

.form-message.success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
}

.form-message.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

/* Pulse Animation for CTA Button */
.pulse-animation {
  animation: ctaPulse 2s ease-in-out infinite;
  position: relative;
}

.pulse-animation::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: var(--radius-full);
  background: var(--gradient-accent);
  opacity: 0.5;
  animation: pulseRing 2s ease-in-out infinite;
  z-index: -1;
}

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

@keyframes pulseRing {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  .report-header {
    flex-direction: column;
    align-items: start;
  }
  
  .report-header h2 {
    font-size: 24px;
  }
  
  .report-actions {
    width: 100%;
    flex-direction: column;
  }
  
  .report-actions .btn {
    width: 100%;
  }
  
  .metrics-grid,
  .suggestions-grid,
  .business-grid {
    grid-template-columns: 1fr;
  }
  
  .problem-header {
    flex-direction: column;
    gap: 12px;
  }
  
  .problem-badges {
    width: 100%;
  }
  
  .cta-content h3 {
    font-size: 22px;
  }
  
  .cta-content p {
    font-size: 14px;
  }
  
  .loading-spinner {
    width: 100px;
    height: 100px;
  }
  
  .spinner-ring:nth-child(1) {
    width: 80px;
    height: 80px;
  }
  
  .spinner-ring:nth-child(2) {
    width: 64px;
    height: 64px;
  }
  
  .spinner-ring:nth-child(3) {
    width: 48px;
    height: 48px;
  }
  
  .loading-spinner .fa-microchip {
    font-size: 24px;
  }
  
  .quotation-modal-content {
    max-height: 95vh;
  }
  
  .quotation-modal-header h3 {
    font-size: 18px;
  }
  
  .quotation-modal-body {
    padding: var(--space-md);
  }
}
