/* Page-specific styles for settings.html — base styles are in base.css */

/* Container width override */
.container {
  max-width: 1000px;
}

/* ===== SETTINGS GRID ===== */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.settings-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: fadeUp 0.5s ease-out both;
  animation-delay: calc(var(--delay) * 0.05s);
}

.settings-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  background: rgba(255, 215, 0, 0.06);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), 0 0 24px var(--gold-glow);
}

.settings-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-preview-wrapper {
  position: relative;
  width: 100%;
  height: 320px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.settings-preview {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ===== LOADING STATE ===== */
.settings-loading {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  animation: fadeUp 0.5s ease-out both;
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255, 215, 0, 0.1);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== EMPTY STATE ===== */
.settings-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  animation: fadeUp 0.5s ease-out both;
}

.settings-empty svg {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  opacity: 0.4;
}

/* ===== MOBILE ===== */
@media (max-width: 768px),
(pointer: coarse) {
  .bg-canvas {
    display: none;
  }

  body {
    background: radial-gradient(circle at 20% 0%, #18120a 0%, #050505 55%);
  }

  .settings-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(20, 20, 20, 0.85);
  }

  .hero,
  .hero h1,
  .settings-card,
  .settings-loading,
  .settings-empty,
  .back-button {
    animation: none !important;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .settings-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .settings-card {
    padding: 16px;
  }

  .settings-preview-wrapper {
    height: 280px;
  }

  .back-button {
    padding: 12px 24px;
    font-size: 0.85rem;
  }
}