/* =============================================
   UNBAN.LIVE - Settings Page Styles
   ============================================= */

.settings-sections {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.settings-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.settings-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
}

.settings-card-header svg {
  width: 24px;
  height: 24px;
  color: var(--primary-light);
}

.settings-card-header h3 {
  font-size: 1.125rem;
  font-weight: 600;
}

.settings-card-body {
  padding: 24px;
}

/* Settings Row */
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
}

.settings-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.settings-row:first-child {
  padding-top: 0;
}

.settings-label {
  flex: 1;
}

.settings-label h4 {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.settings-label p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.settings-value {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  font-family: 'Space Mono', monospace;
}

/* Form Elements */
.settings-input {
  width: 100%;
  max-width: 300px;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-family: inherit;
  transition: border-color var(--transition-fast);
}

.settings-input:focus {
  outline: none;
  border-color: var(--primary);
}

.settings-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  width: 52px;
  height: 28px;
  cursor: pointer;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--border-color);
  border-radius: 28px;
  transition: all var(--transition-fast);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--gradient-primary);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(24px);
}

/* Password Section */
.password-form {
  max-width: 400px;
}

.password-form .form-group {
  margin-bottom: 16px;
}

.password-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.password-form .settings-input {
  max-width: 100%;
}

.password-form .btn {
  margin-top: 8px;
}

/* Danger Zone */
.danger-card {
  border-color: rgba(239, 68, 68, 0.3);
}

.danger-card .settings-card-header {
  border-bottom-color: rgba(239, 68, 68, 0.2);
}

.danger-card .settings-card-header svg {
  color: var(--error);
}

.danger-card .settings-card-header h3 {
  color: var(--error);
}

.btn-danger {
  background: transparent;
  border: 1px solid var(--error);
  color: var(--error);
}

.btn-danger:hover {
  background: var(--error);
  color: white;
}

/* Account Info */
.account-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.account-info-item {
  padding: 16px;
  background: var(--bg-input);
  border-radius: var(--radius-md);
}

.account-info-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.account-info-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.account-info-value.email {
  font-family: inherit;
  word-break: break-all;
}

/* Success Message */
.settings-success {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  color: var(--success);
  font-size: 0.875rem;
  margin-top: 16px;
}

.settings-success.show {
  display: flex;
}

.settings-success svg {
  width: 18px;
  height: 18px;
}

/* Responsive */
@media (max-width: 768px) {
  .settings-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .settings-input {
    max-width: 100%;
  }
  
  .account-info {
    grid-template-columns: 1fr;
  }
}
