/* GhostPort blog — shared toggle styles.
   Source of truth for theme picker + font-size toggle visuals.
   Loaded via <link rel="stylesheet" href="/_shared/toggles.css"> in each article.
   Do NOT inline duplicates. If you need to change styling, change it here. */

.theme-toggle {
  position: fixed; bottom: 32px; left: 32px; z-index: 3000;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg2); border: 2px solid var(--border);
  cursor: pointer; font-size: 18px; display: flex;
  align-items: center; justify-content: center;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
  transition: border-color 0.3s;
}
.theme-toggle:hover { border-color: var(--green); }

.theme-picker {
  position: fixed; bottom: 80px; left: 32px; z-index: 3000;
  background: var(--bg2); border: 1px solid var(--green-dim);
  border-radius: 8px; padding: 12px 16px;
  display: none; flex-direction: column; gap: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  backdrop-filter: blur(12px);
}
.theme-picker.open { display: flex; }
.theme-picker-label { font-size: 9px; color: var(--text-dim); letter-spacing: 2px; margin-bottom: 4px; }
.theme-swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.theme-swatch {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid transparent; cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
  box-shadow: 0 0 8px rgba(0,0,0,0.3);
}
.theme-swatch:hover { transform: scale(1.15); }
.theme-swatch.active { border-color: #fff; }

.font-toggle {
  position: fixed; bottom: 32px; right: 32px; z-index: 3000;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg2); border: 2px solid var(--border);
  cursor: pointer; font-size: 16px; display: flex;
  align-items: center; justify-content: center;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
  transition: border-color 0.3s;
  color: var(--text); font-family: 'Cinzel', serif; font-weight: 700;
}
.font-toggle:hover { border-color: var(--green); }

.font-label {
  position: fixed; bottom: 78px; right: 20px; z-index: 3000;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 6px; padding: 6px 12px;
  font-size: 10px; color: var(--text-dim);
  letter-spacing: 1px; display: none; white-space: nowrap;
}
.font-label.show { display: block; }

@media (max-width: 600px) {
  .theme-toggle { bottom: 20px; left: 20px; width: 36px; height: 36px; font-size: 16px; }
  .theme-picker { bottom: 64px; left: 20px; }
  .font-toggle { bottom: 20px; right: 20px; width: 36px; height: 36px; font-size: 14px; }
  .font-label { bottom: 64px; right: 20px; }
}
