/* Bug Report Page Styles */

/* Base Layout */
body {
  background: var(--darker);
  background-image:
    radial-gradient(circle at 20% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 40% 60%, rgba(6, 182, 212, 0.08) 0%, transparent 50%);
  background-attachment: fixed;
  padding-top: 8rem;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Animated background particles */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(2px 2px at 30px 50px, rgba(139, 92, 246, 0.4), transparent),
    radial-gradient(2px 2px at 80px 100px, rgba(236, 72, 153, 0.3), transparent),
    radial-gradient(1px 1px at 150px 80px, rgba(6, 182, 212, 0.3), transparent);
  background-repeat: repeat;
  background-size: 200px 150px;
  animation: sparkle 20s linear infinite;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}

@keyframes sparkle {
  0%, 100% { transform: translateY(0px) translateX(0px); }
  50% { transform: translateY(-15px) translateX(10px); }
}

/* Hero Section */
.hero-section {
  padding: 3rem 0 4rem;
  position: relative;
  z-index: 2;
}

/* Enhanced hero title with animations */
.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
  text-align: center;
  animation: titleGradient 6s ease-in-out infinite, titleFloat 4s ease-in-out infinite;
  position: relative;
}

.hero-title::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: blur(2px);
  opacity: 0.3;
  z-index: -1;
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes titleGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes titleFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

.hero-subtitle {
  color: var(--gray);
  font-size: 1.3rem;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
  animation: subtitleFadeIn 1.2s ease-out 0.3s both;
}

@keyframes subtitleFadeIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced bug report container */
.bug-report-container {
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 32px;
  padding: 3.5rem;
  box-shadow: 
    0 30px 60px rgba(139, 92, 246, 0.2),
    0 15px 35px rgba(0, 0, 0, 0.3),
    inset 0 0 80px rgba(139, 92, 246, 0.08);
  position: relative;
  overflow: hidden;
  animation: containerFadeIn 1s ease-out;
}

@keyframes containerFadeIn {
  0% {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.bug-report-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent), var(--primary));
  background-size: 300% 100%;
  animation: gradientSlide 4s linear infinite;
}

.bug-report-container::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  animation: backgroundGlow 8s ease-in-out infinite;
}

@keyframes gradientSlide {
  0% { background-position: 0% 0%; }
  100% { background-position: 300% 0%; }
}

@keyframes backgroundGlow {
  0%, 100% { opacity: 0.05; transform: rotate(0deg); }
  50% { opacity: 0.15; transform: rotate(180deg); }
}

/* Form Styling */
.form-group {
  margin-bottom: 2rem;
  position: relative;
}

/* Enhanced form styling */
.form-floating {
  position: relative;
  margin-bottom: 2rem;
  animation: formSlideIn 0.8s ease-out;
}

@keyframes formSlideIn {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.form-control {
  background: rgba(30, 41, 59, 0.7);
  border: 2px solid rgba(139, 92, 246, 0.25);
  border-radius: 18px;
  color: var(--light);
  font-size: 1.05rem;
  font-weight: 500;
  padding: 1.8rem 1.8rem 0.8rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    inset 0 3px 10px rgba(0, 0, 0, 0.1),
    0 0 0 0 rgba(139, 92, 246, 0);
  min-height: 65px;
  position: relative;
}

.form-control::placeholder {
  color: transparent;
}

.form-control:focus {
  background: rgba(30, 41, 59, 0.9);
  border-color: var(--primary);
  color: var(--light);
  box-shadow: 
    0 0 0 4px rgba(139, 92, 246, 0.25),
    inset 0 3px 10px rgba(0, 0, 0, 0.1),
    0 10px 30px rgba(139, 92, 246, 0.2);
  outline: none;
  transform: translateY(-2px);
}

.form-label {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  padding: 1.8rem 1.8rem 0;
  pointer-events: none;
  border: 1px solid transparent;
  transform-origin: 0 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--gray);
  font-weight: 600;
  font-size: 1.05rem;
}

.form-control:focus ~ .form-label,
.form-control:not(:placeholder-shown) ~ .form-label {
  opacity: 0.9;
  transform: scale(0.8) translateY(-0.9rem) translateX(0.3rem);
  color: var(--primary);
  font-weight: 700;
}

/* Select dropdown styling */
.form-select {
  background: rgba(30, 41, 59, 0.7);
  border: 2px solid rgba(139, 92, 246, 0.25);
  border-radius: 18px;
  color: var(--light);
  padding: 1.4rem 1.8rem;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.1);
}

.form-select:focus {
  background: rgba(30, 41, 59, 0.9);
  border-color: var(--primary);
  color: var(--light);
  box-shadow: 
    0 0 0 4px rgba(139, 92, 246, 0.25),
    inset 0 3px 10px rgba(0, 0, 0, 0.1),
    0 10px 30px rgba(139, 92, 246, 0.2);
  outline: none;
  transform: translateY(-2px);
}

/* Clean label styling for select */
.select-label {
  display: block;
  color: var(--light);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.8rem;
  padding-left: 0.5rem;
}

/* Enhanced priority selector */
.priority-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.priority-option {
  padding: 1.5rem 1rem;
  border: 2px solid rgba(139, 92, 246, 0.25);
  border-radius: 18px;
  background: rgba(30, 41, 59, 0.5);
  text-align: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--light);
  font-weight: 600;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.priority-option i {
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
}

.priority-option::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.priority-option:hover {
  border-color: rgba(139, 92, 246, 0.5);
  background: rgba(139, 92, 246, 0.15);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.2);
}

.priority-option:hover::before {
  opacity: 1;
}

.priority-option.selected {
  border-color: var(--primary);
  background: rgba(139, 92, 246, 0.25);
  color: white;
  transform: translateY(-2px);
  box-shadow: 
    0 10px 25px rgba(139, 92, 246, 0.3),
    inset 0 0 20px rgba(139, 92, 246, 0.2);
}

.priority-low { 
  border-left: 5px solid #22C55E; 
}
.priority-low.selected {
  border-left: 5px solid #22C55E;
  background: rgba(34, 197, 94, 0.2);
}

.priority-medium { 
  border-left: 5px solid #F59E0B; 
}
.priority-medium.selected {
  border-left: 5px solid #F59E0B;
  background: rgba(245, 158, 11, 0.2);
}

.priority-high { 
  border-left: 5px solid #EF4444; 
}
.priority-high.selected {
  border-left: 5px solid #EF4444;
  background: rgba(239, 68, 68, 0.2);
}

.priority-critical { 
  border-left: 5px solid #DC2677; 
}
.priority-critical.selected {
  border-left: 5px solid #DC2677;
  background: rgba(220, 38, 127, 0.2);
}

/* Button Styling */
.btn-submit {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  border-radius: 25px;
  color: white;
  font-weight: 700;
  font-size: 1.15rem;
  padding: 1.2rem 3rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 10px 30px rgba(139, 92, 246, 0.4),
    inset 0 0 20px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

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

.btn-submit:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 
    0 20px 40px rgba(139, 92, 246, 0.5),
    inset 0 0 30px rgba(255, 255, 255, 0.2);
}

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

.btn-submit:active {
  transform: translateY(-2px) scale(1.02);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Enhanced back button */
.btn-back {
  background: rgba(139, 92, 246, 0.15);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(139, 92, 246, 0.3);
  border-radius: 25px;
  color: var(--light);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 1.2rem 2.5rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-back::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.2), transparent);
  transition: left 0.5s;
}

.btn-back:hover {
  background: rgba(139, 92, 246, 0.25);
  color: white;
  transform: translateY(-3px) scale(1.05);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 10px 25px rgba(139, 92, 246, 0.3);
  text-decoration: none;
}

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

/* Success Animation */
.success-animation {
  animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .bug-report-container {
    margin: 1rem;
    padding: 2rem 1.5rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .priority-selector {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  
  .priority-option {
    min-width: auto;
    padding: 1.2rem 1rem;
  }

  .form-control {
    font-size: 1rem;
    padding: 1.6rem 1.5rem 0.7rem;
  }

  .form-label {
    font-size: 1rem;
    padding: 1.6rem 1.5rem 0;
  }

  .btn-submit,
  .btn-back {
    width: 100%;
    margin-bottom: 1rem;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  body {
    padding-top: 6rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .bug-report-container {
    padding: 1.5rem 1rem;
    border-radius: 20px;
  }
}