/* Customize button and modal */

/* Revamped floating buttons (Uiverse style by Pradeepsaranbishnoi) */
.social-links,.flex-center { display: flex; justify-content: center; align-items: center; }

.social-btn {
  cursor: pointer;
  height: 50px;
  width: 50px;
  font-family: 'Titillium Web', ui-sans-serif, system-ui, Segoe UI, Roboto, Arial, sans-serif;
  color: #e5e7eb; /* light text for dark theme */
  border-radius: 10px;
  box-shadow: 0px 10px 18px rgba(0,0,0,0.35);
  background: #0b0b0b; /* black theme */
  border: 1px solid #1f2937; /* subtle border for definition */
  margin: 5px;
  transition: 0.3s;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
}

.social-btn svg { height: 24px; width: 24px; }
.social-btn span { width: 0px; overflow: hidden; transition: 0.3s; text-align: center; margin-left: 5px; color: #e5e7eb; }
.social-btn:hover { width: 150px; border-radius: 5px; background: #111; z-index: 1000; }
.social-btn:hover span { padding: 2px; width: 80px; }

/* Position buttons bottom-right, vertically stacked to avoid hover collision */
#customize-btn.social-btn { position: fixed; right: 16px; bottom: 16px; z-index: 999; opacity: 0; transform: translateY(8px); }
#trash-egg-btn.social-btn { position: fixed; right: 16px; bottom: 16px; z-index: 999; }
#customize-btn.social-btn.ready { opacity: 1; transform: translateY(0); }

/* Neon icon colors + soft glow for clarity */
#customize-btn.social-btn svg { fill: #00e7ff; filter: drop-shadow(0 0 4px rgba(0,231,255,0.7)); }
#trash-egg-btn.social-btn svg { fill: #39ff14; filter: drop-shadow(0 0 4px rgba(57,255,20,0.7)); }

/* Modal */
.customize-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  display: grid;
  place-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility 0s linear .25s;
}
.customize-overlay.open { opacity: 1; visibility: visible; transition: opacity .25s ease; }

.customize-dialog {
  width: min(720px, 92vw);
  border-radius: 14px;
  border: 1px solid color-mix(in oklab, var(--border, #1f2937) 70%, transparent);
  background: color-mix(in oklab, var(--surface, #101317) 92%, black 8%);
  color: var(--text, #e5e7eb);
  box-shadow: 0 24px 60px rgba(0,0,0,.55);
  transform: translateY(8px) scale(.98);
  transition: transform .25s ease, opacity .25s ease;
  opacity: 0;
}
.customize-overlay.open .customize-dialog { transform: translateY(0) scale(1); opacity: 1; }

.customize-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid color-mix(in oklab, var(--border, #1f2937) 70%, transparent);
}
.customize-title { font-size: 16px; font-weight: 600; }
.customize-close {
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  width: 36px; height: 36px; border-radius: 8px;
}
.customize-close:hover { background: color-mix(in oklab, var(--surface, #101317) 55%, transparent); }
.customize-close svg { width: 22px; height: 22px; }

.customize-body { padding: 14px 16px; display: grid; gap: 16px; }

.field { display: grid; gap: 8px; }
.field label { font-size: 13px; color: var(--muted, #9ca3af); }

.select-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.wall-card {
  position: relative;
  border: 1px solid color-mix(in oklab, var(--border, #1f2937) 70%, transparent);
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #111;
  cursor: pointer;
}
.wall-card .thumb { width: 100%; height: 100%; background-position: center; background-size: cover; background-repeat: no-repeat; filter: contrast(.98) saturate(1.05); }
.wall-card input { position: absolute; inset: 0; opacity: 0; }
.wall-card .badge { position: absolute; bottom: 8px; right: 8px; padding: 6px 10px; border-radius: 999px; background: rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.12); font-size: 12px; color: #e5e7eb; }
.wall-card input:checked + .thumb { outline: 2px solid var(--accent, #7dd3fc); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent, #7dd3fc) 35%, transparent); }

.range-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; }
.range-row input[type="range"] { width: 100%; }
.range-row .val { width: 52px; text-align: right; color: var(--muted, #9ca3af); font-variant-numeric: tabular-nums; }

.color-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
.color-row input[type="color"] { width: 36px; height: 28px; padding: 0; border: none; background: transparent; }

.customize-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 16px; border-top: 1px solid color-mix(in oklab, var(--border, #1f2937) 70%, transparent); }
.customize-footer .btn { width: auto; height: 34px; padding: 0 12px; font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  .customize-btn, .customize-overlay, .customize-dialog { transition: none !important; }
}
