/* Support Page Specific Styles */

/* Support Card Components */
.support-card {
  background: rgba(31, 41, 55, 0.8) !important;
  border: 1px solid rgba(34, 197, 94, 0.3) !important;
  backdrop-filter: blur(10px);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.support-card:hover {
  border-color: rgba(34, 197, 94, 0.4);
  transform: translateY(-2px);
}

/* Hero Section Styles */
.hero-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom right,
    #111827,    /* gray-900 */
    #1f2937,    /* gray-800 */
    #000000);   /* black */
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 16px;
  margin: 0 24px;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 4px 25px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(34, 197, 94, 0.4) 20%, 
    rgba(59, 130, 246, 0.4) 50%, 
    rgba(34, 197, 94, 0.4) 80%, 
    transparent 100%);
  border-radius: 16px 16px 0 0;
  z-index: 3;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
    rgba(34, 197, 94, 0.05),  /* green-500/5 */
    rgba(59, 130, 246, 0.05)); /* blue-500/5 */
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 32px 32px;
}

/* Professional Badge */
.professional-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(147, 51, 234, 0.1);
  border: 1px solid rgba(147, 51, 234, 0.2);
  border-radius: 9999px;
  padding: 8px 16px;
  margin-bottom: 16px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #9333ea;
  border-radius: 50%;
  margin-right: 8px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #9333ea 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* FAQ Styles */
.faq-item {
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(34, 197, 94, 0.4);
}

.faq-question {
  background: rgba(31, 41, 55, 0.6);
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-question:hover {
  background: rgba(31, 41, 55, 0.8);
}

.faq-answer {
  background: rgba(17, 24, 39, 0.8);
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-answer.open {
  padding: 20px;
  max-height: 500px;
}

/* Support Action Cards */
.support-action-card {
  background: rgba(31, 41, 55, 0.6);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.support-action-card:hover {
  border-color: rgba(34, 197, 94, 0.4);
  transform: translateY(-2px);
}

/* Mobile Menu Styles */
#mobile-menu {
  transition: all 0.3s ease-in-out;
}

#mobile-menu.show {
  display: block !important;
}

.show {
  display: block !important;
}

/* Mobile-specific optimizations */
@media (max-width: 767px) {
  /* Force mobile menu to be visible when JavaScript toggles it */
  #mobile-menu:not(.hidden) {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    width: 100% !important;
    background-color: rgba(31, 41, 55, 0.95) !important;
    border-top: 1px solid rgba(34, 197, 94, 0.2) !important;
    padding: 16px !important;
    z-index: 1000 !important;
  }
  
  /* Force all mobile menu links to be visible */
  #mobile-menu a {
    display: flex !important;
    align-items: center !important;
    padding: 12px 16px !important;
    color: #d1d5db !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    margin-bottom: 8px !important;
    transition: all 0.2s !important;
    background-color: transparent !important;
  }
  
  #mobile-menu a:hover {
    background-color: rgba(34, 197, 94, 0.1) !important;
    color: white !important;
  }
  
  /* Force mobile menu icons to be visible */
  #mobile-menu i {
    width: 20px !important;
    height: 20px !important;
    margin-right: 12px !important;
    color: inherit !important;
    font-size: 20px !important;
  }
  
  /* Force mobile menu text to be visible */
  #mobile-menu span,
  #mobile-menu .text-white,
  #mobile-menu .text-gray-300 {
    color: #d1d5db !important;
    font-size: 16px !important;
    font-weight: 500 !important;
  }
  
  /* Force mobile menu button to be visible */
  #mobile-menu-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: rgba(31, 41, 55, 0.8) !important;
    border: 1px solid rgba(34, 197, 94, 0.3) !important;
    border-radius: 8px !important;
    padding: 8px !important;
    color: white !important;
    width: 40px !important;
    height: 40px !important;
  }
  
  #mobile-menu-button i {
    width: 24px !important;
    height: 24px !important;
    color: white !important;
    font-size: 24px !important;
  }
  
  /* Ultra-aggressive mobile menu text visibility */
  #mobile-menu * {
    color: #d1d5db !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  #mobile-menu a * {
    color: inherit !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* Force mobile menu hamburger button to be ultra-visible */
  #mobile-menu-button {
    background-color: #374151 !important;
    border: 2px solid #10b981 !important;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5) !important;
  }
  
  /* Force mobile menu container to be ultra-visible */
  #mobile-menu {
    background-color: rgba(31, 41, 55, 0.98) !important;
    border: 2px solid rgba(34, 197, 94, 0.5) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5) !important;
  }
  
  /* Force all mobile menu links to have visible text */
  #mobile-menu a span,
  #mobile-menu a div,
  #mobile-menu a {
    color: #e5e7eb !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8) !important;
  }
  
  /* Force all FontAwesome icons in mobile menu to be visible */
  #mobile-menu i {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: inherit !important;
  }
  
  /* Hero section mobile adjustments */
  .hero-content {
    padding: 24px 24px;
  }
  
  .hero-section {
    margin: 0 16px;
  }
}

/* Desktop navigation visibility */
@media (min-width: 768px) {
  .hidden.md\:flex {
    display: flex !important;
    align-items: center;
    gap: 8px;
  }
  
  .hidden.md\:flex a {
    padding: 8px 16px;
    border-radius: 8px;
    color: #d1d5db;
    text-decoration: none;
    transition: all 0.2s;
  }
  
  .hidden.md\:flex a:hover {
    background: rgba(16, 185, 129, 0.1);
    color: white;
  }
  
  #mobile-menu-button {
    display: none !important;
  }
}

/* Form-specific styles */
.contact-form-field {
  transition: all 0.2s ease;
}

.contact-form-field:focus {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(147, 51, 234, 0.15);
}

/* File upload styles */
.file-upload-zone {
  transition: all 0.3s ease;
}

.file-upload-zone:hover {
  border-color: rgba(147, 51, 234, 0.5);
  background-color: rgba(147, 51, 234, 0.05);
}

.file-upload-zone.drag-over {
  border-color: rgba(147, 51, 234, 0.8);
  background-color: rgba(147, 51, 234, 0.1);
  transform: scale(1.02);
}

/* Notification styles */
.dashboard-notification {
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Button hover effects */
.support-btn {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.support-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.support-btn:hover::before {
  left: 100%;
}

.support-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(147, 51, 234, 0.3);
}

/* Loading animation for buttons */
.btn-loading {
  position: relative;
  pointer-events: none;
}

.btn-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Accessibility improvements */
.focus\:ring-purple-500:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.3);
}

/* Custom scrollbar for form elements */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: rgba(31, 41, 55, 0.5);
  border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(147, 51, 234, 0.6);
  border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(147, 51, 234, 0.8);
}

/* Animation for FAQ toggles */
.faq-chevron {
  transition: transform 0.3s ease;
}

.faq-chevron.rotated {
  transform: rotate(180deg);
}

/* Priority level colors */
.priority-low { color: #10b981; }
.priority-medium { color: #f59e0b; }
.priority-high { color: #ef4444; }
.priority-critical { color: #dc2626; }

/* Success states */
.form-success {
  border-color: #10b981;
  background-color: rgba(16, 185, 129, 0.05);
}

.form-error {
  border-color: #ef4444;
  background-color: rgba(239, 68, 68, 0.05);
}

/* Character counter styling */
.char-counter {
  font-size: 0.75rem;
  transition: color 0.2s ease;
}

.char-counter.warning {
  color: #f59e0b;
}

.char-counter.danger {
  color: #ef4444;
}

/* Support ticket status indicators */
.status-submitted { color: #3b82f6; }
.status-in-progress { color: #f59e0b; }
.status-resolved { color: #10b981; }
.status-closed { color: #6b7280; }
