/* MTLogic · Tema pentru interfața squaremap (frontend din arhiva 2026-11-12). */
:root {--mt-cyan:#00ffff;--mt-mint:#39ff14;--mt-deep:#071520;--mt-surface:rgba(8,22,35,.94);--mt-stroke:rgba(0,255,255,.27);--mt-ink:#e7fbff;--mt-muted:#97adba;}
html, body {font-family:Inter,"Segoe UI",system-ui,sans-serif;}
#map, .leaflet-container {background-color:#102635;}
/* Titlul din colț nu ascunde harta; doar elementele pe care se poate apăsa primesc pointer events. */
#mtlogic-shell {position:fixed;top:0;left:0;right:0;pointer-events:none;z-index:8500;font-family:Inter,"Segoe UI",system-ui,sans-serif;color:var(--mt-ink);}
.mtlogic-topbar {box-sizing:border-box;position:relative;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 14px 0;padding:9px 12px;border:1px solid var(--mt-stroke);border-radius:16px;background:linear-gradient(105deg,rgba(5,19,32,.96),rgba(10,32,47,.91));box-shadow:0 12px 36px #0008, inset 0 1px #ffffff13;backdrop-filter:blur(17px);pointer-events:auto;}
.mtlogic-brand{display:flex;align-items:center;gap:12px;min-width:0;user-select:none;}
.mtlogic-symbol{display:grid;place-items:center;position:relative;flex:none;width:42px;height:42px;border-radius:13px;border:1px solid #00ffff65;background:radial-gradient(circle at 20% 10%,#056776,#081a2f 76%);font-weight:900;font-size:25px;line-height:1;color:var(--mt-cyan);box-shadow:inset 0 0 18px #00ffff20,0 0 20px #00ffff0c;}
.mtlogic-symbol span{font-size:11px;position:absolute;right:2px;top:4px;color:#c5fff9;}
.mtlogic-brand-text{display:flex;min-width:0;flex-direction:column;gap:3px;}
.mtlogic-brand-text strong{font-size:15px;letter-spacing:.085em;color:#ebffff;white-space:nowrap;}
.mtlogic-brand-text strong span{color:var(--mt-cyan)}
.mtlogic-brand-text small{font-size:10px;letter-spacing:.17em;color:var(--mt-muted);white-space:nowrap;font-weight:650;}
.mtlogic-brand-text small i{display:inline-block;width:6px;height:6px;margin:0 2px 1px 5px;border-radius:50%;background:var(--mt-mint);box-shadow:0 0 9px #39ff1477;}
.mtlogic-actions{display:flex;gap:6px;align-items:center;justify-content:flex-end;flex-wrap:wrap;}
.mtlogic-action,.mtlogic-close,.mtlogic-quick-links button{font:inherit;cursor:pointer;color:var(--mt-ink);border:1px solid transparent;background:transparent;transition:background .15s,border-color .15s,transform .15s;}
.mtlogic-action{display:flex;align-items:center;justify-content:center;gap:8px;border-radius:10px;padding:11px 13px;font-size:12px;font-weight:680;letter-spacing:.02em;white-space:nowrap;}
.mtlogic-action svg{height:17px;width:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none;}
.mtlogic-action:hover,.mtlogic-action:focus-visible,.mtlogic-action[aria-pressed=true]{outline:none;color:var(--mt-cyan);background:#00ffff12;border-color:#00ffff55;}
.mtlogic-info-toggle{background:#00ffff14;border-color:#00ffff55;color:var(--mt-cyan);}
.mtlogic-info{box-sizing:border-box;position:absolute;right:14px;top:calc(100% + 10px);width:min(352px,calc(100vw - 28px));padding:17px 18px 18px;border:1px solid var(--mt-stroke);border-radius:15px;background:var(--mt-surface);box-shadow:0 14px 40px #000a;backdrop-filter:blur(14px);pointer-events:auto;}
.mtlogic-info[hidden],.mtlogic-toast[hidden]{display:none!important;}
.mtlogic-info-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px;}
.mtlogic-info-heading>div{display:flex;flex-direction:column;gap:4px;}
.mtlogic-info-heading small{color:var(--mt-cyan);font-size:10px;font-weight:800;letter-spacing:.16em;}
.mtlogic-info-heading strong{font-size:18px;}
.mtlogic-close{display:grid;place-items:center;border:1px solid #ffffff24;width:29px;height:29px;border-radius:8px;font-size:24px;line-height:1;}
.mtlogic-close:hover{background:#ffffff22;}
.mtlogic-info p{font-size:12px;line-height:1.7;color:#c0d5de;margin:8px 0 15px;}
.mtlogic-legend-line{display:flex;align-items:center;gap:9px;margin:10px 0;font-size:12px;color:#deeff5;}
.mtlogic-swatch{width:12px;height:12px;box-sizing:border-box;border-radius:3px;flex:none;}
.mtlogic-swatch-protected{background:#39ff142e;border:2px solid var(--mt-mint);box-shadow:0 0 9px #39ff143c;}
.mtlogic-swatch-border{background:#ff444428;border:2px solid #ff4848;}
.mtlogic-quick-links{display:grid;grid-template-columns:1fr;gap:8px;margin-top:16px;border-top:1px solid #ffffff1f;padding-top:13px;}
.mtlogic-quick-links button{border-radius:9px;border-color:var(--mt-stroke);text-align:left;font-size:12px;padding:10px 12px;background:#00ffff0a;}
.mtlogic-quick-links button:hover{background:#00ffff1a;color:var(--mt-cyan);}
.mtlogic-toast{position:absolute;right:16px;top:calc(100% + 10px);max-width:calc(100vw - 32px);box-sizing:border-box;padding:10px 14px;background:var(--mt-surface);border:1px solid var(--mt-stroke);border-radius:9px;box-shadow:0 8px 25px #0009;font-size:12px;color:var(--mt-ink);pointer-events:none;}
/* Stilizarea elementelor native squaremap: sidebar, lista de straturi, popup-uri și zoom. */
#sidebar {background:rgba(7,20,32,.94)!important;backdrop-filter:blur(12px);border-left:1px solid var(--mt-stroke)!important;color:var(--mt-ink)!important;box-shadow:-8px 0 28px #0005;}
#sidebar fieldset{border-top-color:#00ffff38!important;}
#sidebar fieldset a,#sidebar fieldset a:visited{color:#e8faff!important;}
#sidebar fieldset a:hover,#sidebar fieldset a.following{background:#00ffff22!important;}
#sidebar legend{color:var(--mt-cyan)!important;font-weight:750;letter-spacing:.04em;}
.leaflet-control-layers,.leaflet-bar,.leaflet-control-scale-line,.leaflet-control-layers.coordinates{background:var(--mt-surface)!important;border:1px solid var(--mt-stroke)!important;color:var(--mt-ink)!important;border-radius:10px!important;box-shadow:0 6px 22px #0008!important;}
.leaflet-control-layers-expanded{max-height:50vh;overflow-y:auto;}
.leaflet-control-layers label,.leaflet-control-layers span,.leaflet-control-layers-list{color:var(--mt-ink)!important;}
.leaflet-control-layers-overlays label{padding:3px 4px;}
.leaflet-control-layers-overlays label:hover{background:#00ffff10;}
.leaflet-bar a,.leaflet-bar a:hover,.leaflet-bar a:focus{background:var(--mt-surface)!important;color:var(--mt-cyan)!important;border-color:#00ffff30!important;}
.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:var(--mt-deep)!important;color:var(--mt-ink)!important;}
.leaflet-popup-content-wrapper{border:1px solid var(--mt-stroke);border-radius:12px!important;box-shadow:0 9px 32px #0009!important;}
.leaflet-popup-content a{color:var(--mt-cyan)!important;}
.leaflet-popup-close-button{color:var(--mt-cyan)!important;}
.leaflet-tooltip{background:var(--mt-deep)!important;color:var(--mt-ink)!important;border:1px solid var(--mt-stroke)!important;}
.leaflet-tooltip::before{border-top-color:var(--mt-deep)!important;}
/* Zona de zoom este lăsată vizibilă sub bara custom. */
.leaflet-top{top:82px;}
@media(max-width:720px){
 .mtlogic-topbar{align-items:flex-start;flex-direction:column;gap:7px;margin:8px 8px 0;padding:9px;}
 .mtlogic-symbol{width:34px;height:34px;font-size:22px;border-radius:10px;}
 .mtlogic-brand-text strong{font-size:13px;}
 .mtlogic-brand-text small{font-size:9px;}
 .mtlogic-actions{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;}
 .mtlogic-action{padding:8px 2px;flex-direction:column;gap:4px;font-size:10px;}
 .mtlogic-action svg{width:15px;height:15px;}
 .mtlogic-info{top:calc(100% + 8px);right:8px;}
 .leaflet-top{top:142px;}
 .leaflet-top.leaflet-right{right:0;}
}
@media(max-width:355px){.mtlogic-brand-text strong{font-size:12px}.mtlogic-action{font-size:9px}}
@media(prefers-reduced-motion:reduce){.mtlogic-action,.mtlogic-close{transition:none;}}

/* ==============================================================
   MTLOGIC EXPLORER — ADAUGĂ LA FINALUL mtlogic-theme.css
   Numai design/sidebar; nu modifică #map sau resursele squaremap.
   =============================================================== */

/* Bara este ancorată în STÂNGA, nu se mai întinde până în dreapta. */
#mtlogic-shell {
  left: 0 !important;
  right: auto !important;
  width: min(656px, calc(100vw - 20px)) !important;
  max-width: 100vw;
  z-index: 8500;
  pointer-events: none;
}
.mtlogic-topbar {
  box-sizing: border-box;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  min-height: 66px !important;
  width: auto;
  margin: 12px 0 0 12px !important;
  padding: 10px 12px !important;
  gap: 8px !important;
  border: 1px solid rgba(0, 255, 255, .33) !important;
  border-radius: 15px !important;
  background: linear-gradient(110deg, rgba(5,18,31,.97), rgba(10,32,46,.95)) !important;
  box-shadow: 0 12px 32px #0008, inset 0 1px #ffffff12 !important;
  pointer-events: auto;
}
.mtlogic-brand { gap: 9px !important; flex: 0 0 auto; }
.mtlogic-symbol {
  width: 42px !important;
  height: 42px !important;
  border-radius: 11px !important;
  font-size: 25px !important;
}
.mtlogic-symbol span { font-size: 10px !important; }
.mtlogic-brand-text { gap: 3px !important; }
.mtlogic-brand-text strong { font-size: 14px !important; letter-spacing: .07em !important; }
.mtlogic-brand-text small { display: block !important; font-size: 9px !important; letter-spacing: .12em !important; }
.mtlogic-actions {
  display: flex !important;
  flex: 0 1 auto;
  width: auto !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: nowrap !important;
  gap: 3px !important;
  min-width: 0;
}
.mtlogic-action {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 9px 8px !important;
  min-height: 38px;
  border-radius: 9px !important;
  font-size: 11px !important;
  white-space: nowrap;
}
.mtlogic-action svg { width: 16px !important; height: 16px !important; }
.mtlogic-action span { display: inline !important; }
.mtlogic-action.mtx-active { color: #00ffff !important; background: #00ffff15 !important; border-color: #00ffff55 !important; }
.mtlogic-info {
  left: 12px !important;
  right: auto !important;
  top: calc(100% + 10px) !important;
  max-width: calc(100vw - 24px);
}
.mtlogic-toast { left: 12px !important; right: auto !important; }
/* Sidebarul standard este doar ascuns. squaremap încă îl folosește
   intern pentru navigare, jucători și urmărirea lor pe hartă. */
#sidebar { display: none !important; }
/* Mutăm zoom-ul/straturile sub noua bară din stânga. */
.leaflet-top.leaflet-left { top: 91px !important; }
.leaflet-top.leaflet-right { top: 0 !important; }

/* Meniul custom care se deschide din bara MTLogic. */
.mtlogic-explorer {
  box-sizing: border-box;
  position: absolute;
  top: calc(100% + 10px);
  left: 12px;
  width: min(325px, calc(100vw - 24px));
  max-height: min(440px, calc(100dvh - 105px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(165deg, rgba(6,24,37,.985), rgba(6,17,29,.98));
  border: 1px solid rgba(0,255,255,.28);
  border-radius: 15px;
  color: #e9fcff;
  box-shadow: 0 18px 54px #000b, inset 0 1px #ffffff11;
  backdrop-filter: blur(16px);
  pointer-events: auto;
  font: 12px/1.4 Inter,"Segoe UI",system-ui,sans-serif;
}
.mtlogic-explorer[hidden] { display:none !important; }
.mtx-heading { padding: 16px 16px 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mtx-heading-copy { display:flex; flex-direction:column; gap:4px; }
.mtx-kicker { color:#00e7ef; font-weight:800; font-size:9px; letter-spacing: .18em; }
.mtx-heading-copy strong {font-size:17px;font-weight:780;letter-spacing:.015em;}
.mtx-x {width:28px;height:28px;font-size:20px;line-height:1;border:1px solid #ffffff22;border-radius:8px;background:#ffffff08;color:#d3f2f8;cursor:pointer;}
.mtx-x:hover {border-color:#00ffff60;background:#00ffff16;}
.mtx-search-wrap { display:flex; align-items:center; gap:8px; min-height:38px; margin: 3px 14px 11px; padding:0 10px; background: #06131f; border: 1px solid #3d728177; border-radius:10px; box-sizing:border-box; }
.mtx-search-wrap:focus-within {border-color:#00e6ef;box-shadow:0 0 0 2px #00ffff12;}
.mtx-search-wrap svg {width:16px;height:16px;fill:none;stroke:#71bbc8;stroke-width:2;stroke-linecap:round;}
.mtx-search-wrap input {min-width:0;width:100%;height:33px;flex:1;background:transparent;border:0;outline:0;box-shadow:none;font:inherit;font-size:12px;color:#e9fbff;}
.mtx-search-wrap input::placeholder {color:#748f9e;}
.mtx-search-wrap kbd {font:10px ui-monospace,monospace;color:#6d8e9b;border:1px solid #395263;padding:0 5px;border-radius:4px;}
.mtx-tabs {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;margin:0 14px 5px;padding:3px;border-radius:9px;background:#03111d;}
.mtx-tabs button {display:flex;justify-content:center;align-items:center;gap:5px;min-width:0;padding:7px 4px;border:0;border-radius:7px;background:transparent;color:#92b0bf;font:inherit;font-size:11px;font-weight:700;cursor:pointer;}
.mtx-tabs button[aria-pressed=true] {background:#123849;color:#00ffff;box-shadow:0 1px 6px #0008;}
.mtx-tabs button span {font-size:9px;color:#9bb9c5;}
.mtx-scroll {min-height:55px;overflow:auto;overscroll-behavior:contain;padding:4px 8px 9px 14px;scrollbar-width:thin;scrollbar-color:#246270 transparent;}
.mtx-group:not(:first-child) {margin-top:12px;padding-top:9px;border-top:1px solid #ffffff10;}
.mtx-group-head {display:flex;justify-content:space-between;align-items:center;padding:0 6px 6px 1px;color:#81a3b0;font-size:10px;letter-spacing:.09em;font-weight:800;text-transform:uppercase;}
.mtx-number {font-size:10px;color:#00e4d9;letter-spacing:0;}
.mtx-item {box-sizing:border-box;width:100%;display:flex;gap:10px;align-items:center;min-height:44px;margin:2px 0;padding:6px 8px;border:1px solid transparent;border-radius:9px;background:transparent;color:#e8faff;text-align:left;cursor:pointer;font:inherit;}
.mtx-item:hover,.mtx-item:focus-visible,.mtx-item.mtx-selected {background:#00ffff0d;border-color:#00ffff2a;outline:none;}
.mtx-avatar {flex:none;width:28px;height:28px;object-fit:cover;border-radius:6px;background:#0a2936;image-rendering:auto;}
.mtx-item-text {display:flex;flex:1;flex-direction:column;gap:2px;min-width:0;}
.mtx-item-text strong {font-size:12px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-weight:700;}
.mtx-item-text small {font-size:10px;color:#7eacbd;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;}
.mtx-item-dot,.mtx-online-dot {width:6px;height:6px;background:#39ff14;box-shadow:0 0 9px #39ff1470;border-radius:50%;flex:none;}
.mtx-world-ico {width:28px;height:28px;display:grid;place-items:center;border:1px solid #ffffff23;border-radius:8px;color:#eafff6;font-size:12px;font-weight:900;flex:none;}
.mtx-world-ico.mtx-overworld {background:linear-gradient(150deg,#116d50,#0a372b);border-color:#2ab87680;}
.mtx-world-ico.mtx-nether {background:linear-gradient(150deg,#a63842,#3b1420);border-color:#ff616b60;}
.mtx-world-ico.mtx-end {background:linear-gradient(150deg,#6940a3,#25173e);border-color:#9c70e860;}
.mtx-selected-label {color:#39ff14;font-size:8px;font-weight:800;letter-spacing:.05em;}
.mtx-empty {padding:12px 8px;color:#779eac;font-size:11px;}
.mtx-footer {margin-top:auto;display:flex;align-items:center;gap:7px;padding:11px 16px;background:#03111c;border-top:1px solid #ffffff10;color:#9cb9c7;font-size:10px;}
.mtx-update {margin-left:auto;color:#50cfb6;letter-spacing:.12em;font-size:9px;font-weight:850;}
@media (max-width: 720px) {
  #mtlogic-shell {width:calc(100vw - 16px) !important;}
  .mtlogic-topbar {min-height:60px !important;margin:8px 0 0 8px !important;padding:9px 8px !important;gap:5px !important;}
  .mtlogic-brand {gap:6px !important;}
  .mtlogic-symbol {width:36px !important;height:36px !important;font-size:22px !important;}
  .mtlogic-brand-text strong {font-size:12px !important;}
  .mtlogic-brand-text small {display:none !important;}
  .mtlogic-actions {display:flex !important;width:auto !important;gap:2px !important;}
  .mtlogic-action {padding:9px 7px !important;gap:0 !important;min-height:36px;}
  .mtlogic-action span {display:none !important;}
  .mtlogic-info {left:8px !important;right:auto !important;top:calc(100% + 8px) !important;}
  .mtlogic-explorer {left:8px;top:calc(100% + 9px);max-height:calc(100dvh - 92px);}
  .leaflet-top.leaflet-left {top:79px !important;}
}
@media (max-width: 355px) {
  .mtlogic-brand-text small {display:none !important;}
  .mtlogic-action {padding:8px 5px !important;}
  .mtlogic-symbol {width:32px !important;height:32px !important;}
}


/* MTLOGIC • 13.11.2026: logo corect, explorer doar pentru jucători */
.mtlogic-symbol {
  box-sizing: border-box;
  overflow: hidden !important;
  padding: 0 !important;
  min-width: 42px;
  isolation: isolate;
}
.mtlogic-brand-logo {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain !important;
  object-position: center;
  border-radius: inherit;
}
.mtlogic-brand-text { flex: 0 1 auto; }
.mtlogic-brand-text strong { line-height: 1.1; }
/* Bara fără „Lumi” ocupă mai puțin spațiu, dar rămâne înaltă. */
#mtlogic-shell { width: min(560px, calc(100vw - 20px)) !important; }
.mtlogic-topbar { max-width: 560px; }
/* Avatar Minecraft 3D/suprapus cu stratul căștii, din serviciul de skinuri. */
.mtx-avatar {
  display: block;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid rgba(0,255,255,.25);
  box-sizing: border-box;
  border-radius: 7px;
  background: #0b2733;
  image-rendering: pixelated;
  object-fit: cover;
}
.mtx-avatar-placeholder {
  display: grid;
  place-items: center;
  font-size: 18px;
  color: #00ffff;
}
.mtx-item.mtx-player { min-height: 52px; }
.mtx-search-wrap { margin-bottom: 9px; }
@media (max-width: 720px) {
  #mtlogic-shell { width: calc(100vw - 16px) !important; }
  .mtlogic-symbol { min-width: 36px; }
  .mtlogic-brand-logo { width:100% !important; height:100% !important; }
}
@media (max-width: 355px) { .mtlogic-symbol { min-width: 32px; } }
