:root {
  --primary-bg: #0f172a;
  --secondary-bg: #1e293b;
  --card-bg: rgba(30, 41, 59, 0.8);
  --accent-color: #3b82f6;
  --accent-hover: #2563eb;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-color: #334155;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--primary-bg);
  background-image: linear-gradient(
      135deg,
      rgba(56, 189, 248, 0.15) 0%,
      transparent 50%
    ),
    linear-gradient(
      -45deg,
      rgba(168, 85, 247, 0.15) 0%,
      transparent 50%
    );
  background-attachment: fixed;
  min-height: 100vh;
  color: var(--text-primary);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
}

.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.2),
    0 2px 4px -1px rgba(59, 130, 246, 0.1);
  outline: none;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3),
    0 4px 6px -2px rgba(59, 130, 246, 0.2);
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

#mobileMenu {
  background-color: rgba(15, 23, 42, 0.98) !important;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
  transform: translateX(-100%);
  opacity: 0;
}

#mobileMenu.active {
  transform: translateX(0);
  opacity: 1;
}

#mobileMenu .flex-col {
  background-color: rgba(15, 23, 42, 1);
}

#mobileMenu .p-4.border-b {
  background-color: rgba(30, 41, 59, 0.95);
  border-bottom: 2px solid rgba(59, 130, 246, 0.3);
  padding: 16px 20px;
}

#mobileMenu nav a {
  background-color: rgba(30, 41, 59, 0.7);
  margin-bottom: 6px;
  border-left: 3px solid rgba(59, 130, 246, 0.5);
  padding: 12px 16px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

#mobileMenu nav a:hover {
  background-color: rgba(59, 130, 246, 0.2);
  transform: translateX(4px);
}

#mobileMenu .flex.justify-between.items-center {
  background-color: rgba(30, 41, 59, 1);
  border-bottom: 2px solid rgba(59, 130, 246, 0.3);
  padding: 12px 20px;
}

.mobile-menu-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 10px 0;
}

/* Discord Embed Style Cards */
.discord-embed {
  background: var(--card-bg);
  border-left: 4px solid var(--accent-color);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.discord-embed:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.embed-title {
  color: var(--accent-color);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.embed-content {
  color: var(--text-secondary);
  line-height: 1.6;
}

.embed-bullet {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.embed-bullet-point {
  color: var(--accent-color);
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.embed-link {
  color: var(--accent-color);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.embed-link:hover {
  color: var(--accent-hover);
}

.embed-special {
  border-left-color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
}

.embed-special .embed-title {
  color: #fbbf24;
}

.embed-special .embed-bullet-point {
  color: #fbbf24;
}

.embed-link-button {
  background: none;
  border: none;
  color: #5865f2;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font: inherit;
  font-weight: 500;
  transition: color 0.2s ease;
}

.embed-link-button:hover {
  color: #4752c4;
  text-decoration: none;
}

.embed-link-button:focus {
  outline: 2px solid #5865f2;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Modal styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background-color: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease, backdrop-filter 0.4s ease;
  backdrop-filter: blur(0);
  padding: 1rem;
}

.modal.show {
  opacity: 1;
  visibility: visible;
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  background: #1e293b;
  border-radius: 1rem;
  width: 100%;
  max-width: 42rem;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.4s ease;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal.show .modal-content {
  transform: scale(1);
  opacity: 1;
}

.modal-close {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  transform-origin: center center !important;
  line-height: 1 !important;
  text-align: center !important;
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 50;
  border: none;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg) scale(1.1);
}

/* Report form styles */
.report-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  display: block;
  color: #f3f4f6;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.required-asterisk {
  color: #ef4444;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  color: #f3f4f6;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
  transform: translateY(-2px);
}

.form-hint {
  color: #9ca3af;
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* Toast notification styles */
.toast {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  background: #1e293b;
  border-left: 4px solid #3b82f6;
  border-radius: 0.5rem;
  padding: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transform: translateX(calc(100% + 1.5rem));
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55),
    opacity 0.5s ease;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
  animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shake {
  10%,
  90% {
    transform: translateX(-1px);
  }
  20%,
  80% {
    transform: translateX(2px);
  }
  30%,
  50%,
  70% {
    transform: translateX(-2px);
  }
  40%,
  60% {
    transform: translateX(1px);
  }
}
