/* ============================
   EDITOR DE POSIÇÃO DE BG (banners + hero)
   Press E to toggle, drag to pan, scroll to zoom, R to reset
   ============================ */

.edit-toggle{
  position: fixed;
  top: 14px; left: 14px;
  z-index: 100;
  width: 40px; height: 40px;
  border: 1px solid var(--gold);
  background: rgba(10,8,4,.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--gold-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s;
  box-shadow: 0 4px 12px rgba(0,0,0,.45);
}
.edit-toggle svg{ width: 16px; height: 16px; }
.edit-toggle:hover{ transform: scale(1.05); }
.edit-toggle.active{
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold-light);
}

body.edit-on .banner,
body.edit-on .hero{ cursor: move; }
body.edit-on .banner,
body.edit-on .hero{ outline: 2px dashed var(--gold); outline-offset: -2px; }
body.edit-on .banner-content{ pointer-events: none; }
body.edit-on .profile{ pointer-events: none; opacity: .55; }
body.edit-on .lang-switch{ opacity: .3; pointer-events: none; }
body.edit-on .banner-pos-label,
body.edit-on .hero-pos-label{ display: flex; }

.banner-pos-label,
.hero-pos-label{
  display: none;
  position: absolute;
  top: 8px; left: 8px;
  z-index: 4;
  padding: 4px 9px;
  background: rgba(10,8,4,.92);
  color: var(--gold-light);
  font-family: 'Menlo', 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  border-radius: 6px;
  pointer-events: none;
  letter-spacing: .04em;
  white-space: nowrap;
}
.hero-pos-label{
  top: 14px !important;
  left: 64px !important;
  z-index: 99 !important;
}

/* ============================
   PAINEL LATERAL DE CONTROLE
   ============================ */
.edit-panel{
  display: none;
  position: fixed;
  top: 64px;
  left: 14px;
  z-index: 99;
  width: 250px;
  max-height: calc(100vh - 90px);
  overflow-y: auto;
  padding: 14px;
  background: rgba(15,12,8,.96);
  color: var(--paper);
  border: 1px solid rgba(201,167,107,.30);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(0,0,0,.65);
  font-family: var(--sans);
}
body.edit-on .edit-panel{ display: block; }

.edit-panel-title{
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 12px;
}

.edit-row{
  padding: 10px 11px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(201,167,107,.10);
  border-radius: 11px;
  margin-bottom: 8px;
  transition: border-color .2s, background .2s;
  cursor: pointer;
}
.edit-row:hover{ background: rgba(255,255,255,.08); }
.edit-row.active{
  border-color: var(--gold);
  background: rgba(201,167,107,.10);
}
.edit-row-head{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.edit-row-name{
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--paper);
}
.edit-row-reset{
  width: 22px; height: 22px;
  border: 1px solid rgba(201,167,107,.25);
  background: transparent;
  color: var(--gold-light);
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Menlo', 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}
.edit-row-reset:hover{ background: var(--gold); color: var(--ink); border-color: var(--gold); }

.edit-row-vals{
  font-family: 'Menlo', 'JetBrains Mono', monospace;
  font-size: 10px;
  color: rgba(241,233,213,.55);
  line-height: 1.4;
  margin-bottom: 8px;
}
.edit-row-vals strong{ color: var(--gold-light); font-weight: 700; }

.edit-control-group{ margin-bottom: 6px; }
.edit-control-group:last-child{ margin-bottom: 0; }
.edit-control-label{
  font-size: 9px;
  color: rgba(241,233,213,.45);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 4px;
}
.edit-btns{ display: flex; gap: 4px; }
.edit-btn{
  flex: 1;
  height: 26px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(201,167,107,.18);
  color: var(--paper);
  border-radius: 7px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
  padding: 0;
}
.edit-btn:hover{
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}
.edit-btn:active{ transform: scale(.95); }

.edit-pan-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}
.edit-pan-grid .edit-btn{ height: 22px; }
.edit-pan-grid .edit-btn.empty{ visibility: hidden; }

.edit-copy-all{
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  background: var(--gold);
  color: var(--ink);
  border: 0;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  cursor: pointer;
  transition: all .2s;
}
.edit-copy-all:hover{ background: var(--gold-light); }
.edit-copy-all.copied{ background: #4caf50; color: white; }

.edit-help{
  display: none;
  position: fixed;
  bottom: 14px;
  left: 14px;
  z-index: 99;
  padding: 8px 12px;
  background: rgba(10,8,4,.92);
  color: var(--paper);
  border: 1px solid rgba(201,167,107,.25);
  border-radius: 10px;
  font-size: 10px;
  line-height: 1.5;
  max-width: 250px;
  font-family: 'Menlo', 'JetBrains Mono', monospace;
}
body.edit-on .edit-help{ display: block; }
.edit-help b{ color: var(--gold-light); }

.edit-panel::-webkit-scrollbar{ width: 4px; }
.edit-panel::-webkit-scrollbar-thumb{
  background: rgba(201,167,107,.30);
  border-radius: 2px;
}
