/* ======================================== */
/* SETTINGS LAYOUT */
/* ======================================== */

.settings-content {
  display: grid;

  grid-template-columns: 240px 1fr;

  height: 100%;
}

/* ======================================== */
/* SIDEBAR */
/* ======================================== */

.settings-sidebar {
  border-right: 1px solid rgba(75, 75, 75, 0.151);

  padding: 20px;
  background-color: var(--surface-light3);
  border-top: 1px solid rgba(75, 75, 75, 0.151);
}

.settings-section {
  display: none;

  height: 100%;

  padding-right: 10px; /* prevents scrollbar overlap */
}

.settings-section.active-section {
  display: block;
}

/* ======================================== */
/* TAB */
/* ======================================== */

.settings-tab {
  padding: 16px 18px;

  border-radius: 18px;

  margin-bottom: 10px;

  cursor: pointer;

  transition: 0.3s ease;

  color: var(--text-secondary);
}

.settings-tab:hover {
  background: rgba(255, 122, 0, 0.08);
}

/* ACTIVE */

.active-settings-tab {
  background: rgba(255, 122, 0, 0.12);

  border: 1px solid rgba(255, 122, 0, 0.18);

  color: var(--accent);
}

/* ======================================== */
/* MAIN */
/* ======================================== */

.settings-main {
  padding: 30px;
  border-top: 1px solid rgba(75, 75, 75, 0.151);
}

.settings-main h2 {
  margin-bottom: 30px;
  color: var(--text-secondary);
}

.settings-main h3 {
  margin-bottom: 30px;
  color: var(--text-secondary);
}

/* ======================================== */
/* OPTION */
/* ======================================== */

.settings-option {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 20px;

  border-radius: 24px;

  margin-bottom: 18px;

  background: var(--surface-light2);

  border: 1px solid rgba(255, 255, 255, 0.06);
}

.settings-option p {
  margin-top: 6px;

  color: var(--text-secondary);
}

/* ======================================== */
/* SWITCH */
/* ======================================== */

.switch {
  position: relative;

  width: 56px;
  height: 30px;
}

.switch input {
  display: none;
}

.reset-btn {
  background-color: transparent;

  border: 1px solid rgba(255, 122, 0, 0.3);

  color: var(--accent);

  padding: 10px 16px;

  border-radius: 20px;

  font-size: 14px;

  cursor: pointer;

  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.reset-btn:hover {
  background-color: rgba(255, 123, 0, 0.5);

  color: var(--text-tertiary);

  transform: translateY(-3px) scale(1.03);

  box-shadow: 0 10px 20px rgba(255, 123, 0, 0.25);
}
.disable-glow .app-window,
.disable-glow .active-wallpaper,
.disable-glow .network-card,
.disable-glow .planet,
.disable-glow .core-node {
  box-shadow: none !important;
}
.reduce-transparency .app-window,
.reduce-transparency .task-bar,
.reduce-transparency .start-menu,
.reduce-transparency .system-navbar {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.performance-mode * {
  animation: none !important;

  transition: none !important;
}

/* SLIDER */

.slider {
  position: absolute;

  inset: 0;

  border-radius: 999px;

  background: rgba(255, 255, 255, 0.15);

  cursor: pointer;

  transition: 0.3s ease;
}

.slider::before {
  content: "";

  position: absolute;

  width: 22px;
  height: 22px;

  left: 4px;
  top: 4px;

  border-radius: 50%;

  background: white;

  transition: 0.3s ease;
}

/* ACTIVE */

.switch input:checked + .slider {
  background: rgba(255, 122, 0, 0.6);
}

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

/* ======================================== */
/* SETTINGS GROUP */
/* ======================================== */

.settings-group {
  margin-top: 40px;
  color: var(--text-secondary);
}

/* ======================================== */
/* WALLPAPER GRID */
/* ======================================== */

.wallpaper-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;

  margin-top: 20px;
}

/* WALLPAPER */

.wallpaper-option {
  width: 100%;
  aspect-ratio: 2 / 1; /* replaces height */

  border-radius: 18px;

  background-size: cover;
  background-position: center;

  cursor: pointer;

  border: 2px solid transparent;

  transition: all 0.3s ease;
}

.wallpaper-option:hover {
  transform: scale(1.04);
}
/* ACTIVE */

.active-wallpaper {
  border-color: var(--accent);

  box-shadow: 0 0 20px rgba(255, 122, 0, 0.35);
}

/* ======================================== */
/* ACCENT GRID */
/* ======================================== */

.accent-grid {
  display: flex;
  gap: 14px;

  margin-top: 20px;
}

/* ACCENT */

.accent-option {
  width: 42px;
  height: 42px;

  border-radius: 50%;

  cursor: pointer;

  border: 3px solid transparent;

  transition: 0.3s ease;
}

.accent-option:hover {
  transform: scale(1.08);
}

/* ACTIVE */

.active-accent {
  border-color: white;

  box-shadow: 0 0 18px rgba(255, 255, 255, 0.25);
}

/* Full Screen */
.app-window.fullscreen {
  position: fixed !important;

  top: 0 !important;
  left: 0 !important;

  width: 100vw !important;
  height: 100dvh !important;

  max-width: none !important;
  max-height: none !important;

  transform: none !important;

  border-radius: 0 !important;

  z-index: 900;

  transition:
    width 0.35s ease,
    height 0.35s ease,
    top 0.35s ease,
    left 0.35s ease,
    border-radius 0.35s ease;
}

.app-window.fullscreen .window-content {
  height: calc(100vh - 50px);
}
