/* Allgot Support Page - Modern Guided Flow Styles */

:root {
  --allgot-primary: #82895b;
  --allgot-primary-light: #a1a77d;
  --allgot-secondary: #f8fafc;
  --allgot-text: #333;
  --allgot-text-light: #64748b;
  --allgot-border: #e2e8f0;
  --allgot-success: #10b981;
  --allgot-warning: #f59e0b;
  --allgot-danger: #ef4444;
  --allgot-info: #6366f1;
}

/* Support Container */
.allgot-support-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Header Styles */
.support-header {
  text-align: center;
  margin-bottom: 3rem;
}

.support-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--allgot-text);
  margin-bottom: 1rem;
  font-weight: 700;
}

.support-subtitle {
  font-size: 1.2rem;
  color: var(--allgot-text-light);
  margin-bottom: 2rem;
}

/* Progress Indicator */
.support-progress-container {
  margin: 1rem 0 2rem 0;
  text-align: center;
}

.support-progress-bar {
  width: 100%;
  height: 4px;
  background: var(--allgot-border);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.support-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--allgot-primary), var(--allgot-primary-light));
  width: 25%;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 0.9rem;
  color: var(--allgot-text-light);
  margin: 0;
}

/* Breadcrumb Navigation */
.support-breadcrumb {
  display: none;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--allgot-secondary);
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--allgot-text-light);
}

.breadcrumb-separator {
  color: var(--allgot-border);
  font-weight: 600;
}

.breadcrumb-link {
  color: var(--allgot-primary);
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.breadcrumb-link:hover {
  background: var(--allgot-border);
}

/* Support Grid */
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Category Buttons */
.support-category-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem 1.5rem;
  background: white;
  border: none;
  border-radius: 16px;
  box-shadow: 
    0 4px 20px rgba(130, 137, 91, 0.15),
    0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  min-height: 140px;
  text-decoration: none;
  color: var(--allgot-text);
  text-align: center;
}

.support-category-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--allgot-primary), var(--allgot-primary-light));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.support-category-btn:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 8px 30px rgba(130, 137, 91, 0.25),
    0 4px 15px rgba(0, 0, 0, 0.15);
}

.support-category-btn:hover::before {
  transform: scaleX(1);
}

.support-category-btn:active {
  transform: translateY(-2px);
  transition-duration: 0.1s;
}

.support-category-btn:focus {
  outline: 2px solid var(--allgot-primary);
  outline-offset: 2px;
}

/* Icons */
.support-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 2px 4px rgba(130, 137, 91, 0.3));
}

.support-category-btn h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: var(--allgot-text);
}

.support-category-btn p {
  font-size: 0.9rem;
  color: var(--allgot-text-light);
  margin: 0;
  line-height: 1.4;
}

/* Other Option */
.other-option {
  margin-top: 2rem;
  text-align: center;
}

.other-btn {
  background: linear-gradient(135deg, var(--allgot-primary), var(--allgot-primary-light));
  color: white;
  max-width: 400px;
  margin: 0 auto;
}

.other-btn:hover {
  color: white;
}

/* Solution Cards */
.solution-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border-left: 4px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.solution-card.quick-solution {
  border-left-color: var(--allgot-success);
}

.solution-card.ai-solution {
  border-left-color: var(--allgot-warning);
}

.solution-card.human-solution {
  border-left-color: var(--allgot-info);
}

.solution-card:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

/* Action Buttons */
.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  font-size: 0.9rem;
}

.action-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: all 0.4s ease;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.action-btn:active::before {
  width: 300px;
  height: 300px;
}

.action-btn > * {
  position: relative;
  z-index: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--allgot-primary), var(--allgot-primary-light));
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(130, 137, 91, 0.4);
  color: white;
}

.btn-secondary {
  background: var(--allgot-secondary);
  color: var(--allgot-text-light);
  border: 2px solid var(--allgot-border);
}

.btn-secondary:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: var(--allgot-text);
}

.btn-success {
  background: linear-gradient(135deg, var(--allgot-success), #059669);
  color: white;
}

.btn-success:hover {
  color: white;
  transform: translateY(-2px);
}

.btn-danger {
  background: linear-gradient(135deg, var(--allgot-danger), #dc2626);
  color: white;
}

.btn-danger:hover {
  color: white;
  transform: translateY(-2px);
}

/* Open Question Section */
.open-question-section {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.question-input-container {
  position: relative;
  margin: 1.5rem 0;
}

.question-input-container textarea {
  width: 100%;
  min-height: 120px;
  padding: 1rem;
  border: 2px solid var(--allgot-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
  transition: border-color 0.2s ease;
}

.question-input-container textarea:focus {
  outline: none;
  border-color: var(--allgot-primary);
}

.char-counter {
  text-align: right;
  font-size: 0.8rem;
  color: var(--allgot-text-light);
  margin-top: 0.5rem;
}

.question-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* AI Response */
.ai-response-container {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid var(--allgot-border);
}

.ai-response-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--allgot-warning);
}

.response-text {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.helpful-links ul {
  list-style: none;
  padding: 0;
}

.helpful-links li {
  padding: 0.25rem 0;
}

.helpful-links a {
  color: var(--allgot-primary);
  text-decoration: none;
}

.helpful-links a:hover {
  text-decoration: underline;
}

.response-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Footer */
.support-footer {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--allgot-secondary);
  border-radius: 12px;
  text-align: center;
}

.human-support-cta h3 {
  margin-bottom: 1rem;
  color: var(--allgot-text);
}

.footer-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Floating Elements */
.floating-help-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--allgot-info), #8b5cf6);
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
  font-size: 1.5rem;
  font-weight: bold;
}

.floating-help-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.restart-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--allgot-primary);
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(130, 137, 91, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
  font-size: 0.9rem;
}

.restart-btn:hover {
  background: #6d7548;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(130, 137, 91, 0.4);
}

.restart-icon {
  font-size: 1.2rem;
  animation: rotate 2s ease-in-out infinite;
}

@keyframes rotate {
  0%, 90%, 100% { transform: rotate(0deg); }
  95% { transform: rotate(360deg); }
}

/* Quick Help Modal */
.quick-help-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: fadeIn 0.3s ease;
}

.help-content {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.help-content ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.help-content li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.help-content kbd {
  background: #f1f5f9;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.9rem;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* Loading States */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #f3f4f6;
  border-radius: 50%;
  border-top-color: var(--allgot-primary);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Step Transitions */
[data-step] {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-step]:not([style*="display: block"]) {
  display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .allgot-support-container {
    padding: 1rem;
  }
  
  .support-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .support-category-btn {
    min-height: 120px;
    padding: 1.5rem 1rem;
  }
  
  .support-icon {
    font-size: 2rem;
  }
  
  .solution-card {
    padding: 1rem;
  }
  
  .action-btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
  }
  
  .question-actions {
    flex-direction: column;
  }
  
  .footer-actions {
    flex-direction: column;
  }
  
  .restart-btn {
    bottom: 80px;
    right: 15px;
  }
  
  .floating-help-btn {
    bottom: 80px;
    left: 15px;
    width: 45px;
    height: 45px;
  }
  
  .restart-text {
    display: none;
  }
  
  .support-breadcrumb {
    padding: 0.75rem;
    font-size: 0.8rem;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .support-category-btn {
    background: #1e293b;
    color: #f1f5f9;
  }
  
  .solution-card {
    background: #1e293b;
    color: #f1f5f9;
  }
  
  .support-breadcrumb {
    background: #334155;
    color: #94a3b8;
  }
  
  .open-question-section {
    background: #1e293b;
    color: #f1f5f9;
  }
}

/* Accessibility */
.support-category-btn:focus,
.action-btn:focus {
  outline: 2px solid var(--allgot-primary);
  outline-offset: 2px;
}

/* Reduce Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Hidden by default */
.support-step {
  display: none;
}

.support-step[data-step="1"] {
  display: block;
}