/* ==========================================================================
   itzblaze AI Hub — Maximalist Claymorphism Settings Drawer
   ========================================================================== */

.settings-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.settings-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.settings-drawer {
  width: 100%;
  max-width: 500px;
  height: 100%;
  background: linear-gradient(145deg, #121424 0%, #080913 100%);
  box-shadow: -12px 0 48px rgba(0, 0, 0, 0.8), inset 3px 3px 6px rgba(255, 255, 255, 0.1);
  border-left: 1px solid var(--glass-border-glow);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.settings-overlay.open .settings-drawer {
  transform: translateX(0);
}

.settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 18px;
}

.settings-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

.settings-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-label {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-purple-light);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.label-badge {
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: var(--accent-purple-light);
}

.form-input, .form-textarea {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: #090a14;
  box-shadow: inset 3px 5px 10px rgba(0, 0, 0, 0.7), inset -1px -1px 3px rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: all 0.25s ease;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--accent-purple);
  box-shadow: inset 3px 5px 10px rgba(0, 0, 0, 0.7), 0 0 16px var(--accent-purple-glow);
}

.form-textarea {
  min-height: 85px;
  resize: vertical;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.form-help {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.btn-save-settings {
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--grad-button-clay);
  box-shadow: 6px 12px 24px rgba(139, 92, 246, 0.45), inset 2px 2px 4px rgba(255, 255, 255, 0.3);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  text-align: center;
  margin-top: 10px;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-save-settings:hover {
  transform: translateY(-2px);
  box-shadow: 8px 18px 32px rgba(139, 92, 246, 0.6);
  filter: brightness(1.08);
}
