@import url('/features/themes/preview-card.css?v=20261123-blossoms-v2');
/* settings/appearance.css */

.themes-settings {
  min-width: 0;
  padding: calc(10px * var(--aux-ui-scale, 1)) calc(6px * var(--aux-ui-scale, 1)) calc(36px * var(--aux-ui-scale, 1)) 0;
}

.themes-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: calc(16px * var(--aux-ui-scale, 1));
  margin-bottom: calc(20px * var(--aux-ui-scale, 1));
}

.themes-heading > h1 {
  margin: 0;
  color: #d2d2d2;
  font-size: calc(32px * var(--aux-ui-scale, 1));
  letter-spacing: 0;
}

.themes-heading-actions {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: calc(7px * var(--aux-ui-scale, 1));
}

.theme-buttons-toggle {
  display: flex;
  align-items: center;
  gap: calc(9px * var(--aux-ui-scale, 1));
  color: #c7c7c7;
  font-size: calc(12px * var(--aux-ui-scale, 1));
  cursor: pointer;
}

.theme-buttons-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.theme-toggle-track {
  position: relative;
  width: calc(36px * var(--aux-ui-scale, 1));
  height: calc(18px * var(--aux-ui-scale, 1));
  border-radius: calc(9px * var(--aux-ui-scale, 1));
  background: #3b3b3b;
  transition: background 0.2s ease;
}

.theme-toggle-track i {
  position: absolute;
  top: calc(3px * var(--aux-ui-scale, 1));
  left: calc(3px * var(--aux-ui-scale, 1));
  width: calc(12px * var(--aux-ui-scale, 1));
  height: calc(12px * var(--aux-ui-scale, 1));
  border-radius: 50%;
  background: #c8c8c8;
  transition: transform 0.2s ease;
}

.theme-buttons-toggle input:checked + .theme-toggle-track {
  background: #9b2d2d;
}

.theme-buttons-toggle input:checked + .theme-toggle-track i {
  transform: translateX(calc(18px * var(--aux-ui-scale, 1)));
}

.theme-save-status {
  min-height: calc(16px * var(--aux-ui-scale, 1));
  color: #ababab;
  font-size: calc(12px * var(--aux-ui-scale, 1));
}

.theme-save-status.is-error { color: #db6262; }
.theme-save-status.is-success { color: #7fc694; }

/* --- Theme Preview Grid --- */
.theme-preview-grid,
.premium-theme-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: calc(14px * var(--aux-ui-scale, 1));
  align-items: start;
}

/* Author display rules otherwise override the browser's default [hidden] rule. */
.premium-theme-grid[hidden] {
  display: none !important;
}

/* --- Premium Themes --- */
.premium-themes {
  margin-top: calc(58px * var(--aux-ui-scale, 1));
}

.premium-themes > h2 {
  margin-bottom: calc(18px * var(--aux-ui-scale, 1));
  font-size: calc(28px * var(--aux-ui-scale, 1));
  color: #d2d2d2;
}

.premium-theme-set-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: calc(38px * var(--aux-ui-scale, 1));
  border: 0;
  border-bottom: calc(1px * var(--aux-ui-scale, 1)) solid rgba(255, 255, 255, 0.08);
  margin: 0 0 calc(14px * var(--aux-ui-scale, 1));
  padding: 0 calc(4px * var(--aux-ui-scale, 1));
  color: #c8c8c8;
  background: transparent;
  font-size: calc(18px * var(--aux-ui-scale, 1));
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.premium-theme-set-toggle .material-icons {
  transition: none;
}

.premium-theme-set-toggle[aria-expanded="false"] .material-icons {
  transform: none;
}

.premium-theme-set-toggle[aria-expanded="true"] .material-icons {
  transform: rotate(180deg);
}

/* --- Responsive Adaptations --- */
@media (max-width: 1280px) {
  .theme-preview-grid,
  .premium-theme-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .theme-preview-grid,
  .premium-theme-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .theme-preview-grid,
  .premium-theme-grid {
    grid-template-columns: 1fr;
  }
}
