/* Bug Report Modal - BroJack Agent #12 - October 28, 2025 */
/* Glassmorphism design matching SOLIUS app aesthetic */

/* Overlay */
.bug-report-modal-overlay {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bug-report-modal-overlay.active {
  opacity: 1;
}

/* Modal Container */
.bug-report-modal {
  position: relative;
  width: 90%;
  max-width: 600px;
  background: rgba(28, 35, 56, 0.95);
  border: 1px solid rgba(85, 93, 255, 0.4);
  border-radius: 24px;
  padding: 0;
  max-height: 80vh;
  overflow-y: auto;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform: translateY(50px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bug-report-modal-overlay.active .bug-report-modal {
  transform: translateY(0);
  opacity: 1;
}

/* Header */
.bug-report-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  border-bottom: 1px solid rgba(85, 93, 255, 0.2);
}

.bug-report-header h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0;
}

.bug-report-close {
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 2rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s ease;
  padding: 0;
}

.bug-report-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.bug-report-close svg {
  width: 12px;
  height: 12px;
}

/* Body */
.bug-report-body {
  padding: 32px;
}

.bug-report-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  color: #ADB1FF;
  margin-bottom: 24px;
  line-height: 1.6;
}

/* Form Field */
.bug-report-field {
  margin-bottom: 24px;
}

.bug-report-field label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.bug-report-field textarea {
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(85, 93, 255, 0.3);
  background: rgba(13, 21, 41, 0.8);
  color: #FFFFFF;
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  outline: none;
  resize: vertical;
  min-height: 120px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.bug-report-field textarea:focus {
  border-color: #555DFF;
  box-shadow: 0 0 0 3px rgba(85, 93, 255, 0.1);
}

.bug-report-field textarea::placeholder {
  color: rgba(173, 177, 255, 0.5);
}

/* Character Count */
.char-count {
  font-size: 0.85rem;
  color: #ADB1FF;
  text-align: right;
  margin-top: 8px;
  font-family: 'Montserrat', sans-serif;
}

/* Info Box */
.bug-report-info {
  background: rgba(85, 93, 255, 0.1);
  border: 1px solid rgba(85, 93, 255, 0.2);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
}

.bug-report-info p {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  color: #FFFFFF;
  font-weight: 600;
  margin: 0 0 8px 0;
}

.bug-report-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bug-report-info li {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  color: #ADB1FF;
  padding-left: 20px;
  position: relative;
  margin-bottom: 6px;
}

.bug-report-info li::before {
  content: "•";
  position: absolute;
  left: 8px;
  color: #555DFF;
}

.bug-report-info li:last-child {
  margin-bottom: 0;
}

/* Submit Button - Glassy Style (matches landing page) */
.btn-submit-bug {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  display: block;
  width: 100%;
  overflow: visible;
  isolation: isolate;
  margin-bottom: 0;
}

/* Glow layer behind button */
.btn-submit-bug .btn-glow {
  position: absolute;
  width: 100px;
  height: 50px;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(266.42deg, #000DFF -21.15%, rgba(85, 93, 255, 0) 88.34%);
  border: 2px solid #969CFF;
  filter: blur(10px);
  border-radius: 40px;
  pointer-events: none;
  z-index: -1;
}

/* Button surface - glass icing effect */
.btn-submit-bug .btn-content {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 32px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 40px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 24px;
  color: #FFFFFF;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    inset 0 1px 0 0 rgba(255, 255, 255, 0.4),
    0 4px 12px rgba(0, 13, 255, 0.3);
}

.btn-submit-bug:hover {
  background: none;
}

.btn-submit-bug:hover .btn-content {
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 
    inset 0 1px 0 0 rgba(255, 255, 255, 0.6),
    0 6px 16px rgba(0, 13, 255, 0.4);
}

.btn-submit-bug:disabled .btn-content {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-submit-bug .btn-text {
  display: inline;
}

.btn-submit-bug .btn-loading {
  display: none;
  align-items: center;
  justify-content: center;
}

.btn-submit-bug .btn-loading i {
  font-size: 1.2rem;
}

/* Status Messages */
.bug-report-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  text-align: center;
  transition: all 0.3s ease;
}

.bug-report-status.success {
  background: rgba(20, 241, 149, 0.15);
  border: 1px solid rgba(20, 241, 149, 0.4);
  color: #14F195;
}

.bug-report-status.error {
  background: rgba(255, 79, 79, 0.1);
  border: 1px solid rgba(255, 79, 79, 0.3);
  color: #FF4F4F;
}

/* Custom Scrollbar */
.bug-report-modal::-webkit-scrollbar {
  width: 8px;
}

.bug-report-modal::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.bug-report-modal::-webkit-scrollbar-thumb {
  background: rgba(85, 93, 255, 0.3);
  border-radius: 4px;
}

.bug-report-modal::-webkit-scrollbar-thumb:hover {
  background: rgba(85, 93, 255, 0.5);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .bug-report-modal {
    width: 95%;
    max-height: 90vh;
  }
  
  .bug-report-header {
    padding: 20px 24px;
  }
  
  .bug-report-header h2 {
    font-size: 1.5rem;
  }
  
  .bug-report-body {
    padding: 24px;
  }
  
  .bug-report-field textarea {
    font-size: 16px; /* Prevent iOS zoom on focus */
  }
}

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

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

