/* =============================================
   3D Múzeum Néző – Frontend stílusok
   ============================================= */

#muzeum3d-wrap {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #10101e;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

#muzeum3d-canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    position: absolute;
    top: 0;
    left: 0;
}

/* ---- Betöltés képernyő ---- */
#muzeum3d-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #10101e;
    color: #c9d1e0;
    z-index: 20;
    gap: 16px;
    transition: opacity 0.5s ease;
}

#muzeum3d-loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.muzeum3d-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: #6c8ef5;
    border-radius: 50%;
    animation: muzeum3d-spin 0.8s linear infinite;
}

@keyframes muzeum3d-spin {
    to {
        transform: rotate(360deg);
    }
}

#muzeum3d-loading p {
    margin: 0;
    font-size: 14px;
    letter-spacing: 0.05em;
    color: #8899bb;
}

/* ---- Hotspot overlay réteg ---- */
#muzeum3d-hotspots {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 10;
}

/* ---- Egyedi hotspot gomb ---- */
.muzeum3d-hotspot {
    position: absolute;
    transform: translate(-50%, -50%);
    pointer-events: auto;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    padding: 0;
    user-select: none;
}

.muzeum3d-hotspot-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #14243b;
    border: 2px solid rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    box-shadow: 0 0 0 0 rgba(108, 142, 245, 0.7);
    animation: muzeum3d-pulse 2.5s ease infinite;
    transition: transform 0.2s ease, background 0.2s ease;
}

.muzeum3d-hotspot:hover .muzeum3d-hotspot-icon {
    background: rgba(108, 142, 245, 1);
    transform: scale(1.15);
    animation: none;
}

.muzeum3d-hotspot-icon svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

.muzeum3d-hotspot-label {
    background: rgba(10, 12, 30, 0.82);
    color: #e8eaf6;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
    letter-spacing: 0.04em;
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(4px);
    pointer-events: none;
}

@keyframes muzeum3d-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(108, 142, 245, 0.6);
    }

    50% {
        box-shadow: 0 0 0 12px rgba(108, 142, 245, 0);
    }
}

/* ---- Aktív hotspot stilusa ---- */
.muzeum3d-hotspot.active .muzeum3d-hotspot-icon {
    background: #C7AD70;
    border-color: #fff;
    animation: none;
}

/* ---- Lebegő névfelirat (center bottom) ---- */
#muzeum3d-label {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 12, 30, 0.82);
    color: #e8eaf6;
    font-size: 15px;
    font-weight: 600;
    padding: 8px 22px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    letter-spacing: 0.06em;
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 15;
    white-space: nowrap;
}

#muzeum3d-label.visible {
    opacity: 1;
}

/* ---- Responsivitás ---- */
@media (max-width: 600px) {
    .muzeum3d-hotspot-label {
        display: none;
    }

    .muzeum3d-hotspot-icon {
        width: 36px;
        height: 36px;
    }
}

/* =============================================
   FEJLESZTŐI MÓD (admin-only)
   ============================================= */

#muzeum3d-dev-toggle {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 50;
    background: rgba(20, 20, 40, 0.88);
    color: #f0c040;
    border: 1px solid rgba(240, 192, 64, 0.5);
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: background 0.2s, border-color 0.2s;
    font-family: 'Segoe UI', sans-serif;
}

#muzeum3d-dev-toggle:hover {
    background: rgba(240, 192, 64, 0.15);
    border-color: #f0c040;
}

#muzeum3d-dev-toggle.active {
    background: rgba(240, 192, 64, 0.22);
    border-color: #f0c040;
    color: #ffe07a;
}

/* ---- Koordináta panel ---- */
#muzeum3d-dev-panel {
    position: absolute;
    top: 52px;
    right: 12px;
    z-index: 50;
    background: rgba(10, 12, 28, 0.93);
    border: 1px solid rgba(240, 192, 64, 0.4);
    border-radius: 10px;
    padding: 14px 16px;
    min-width: 300px;
    max-width: 380px;
    color: #dde0f0;
    font-family: 'Segoe UI', monospace, sans-serif;
    font-size: 13px;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.dev-panel-header {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 12px;
    color: #f0c040;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dev-badge {
    background: #f0c040;
    color: #1a1400;
    font-size: 10px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.dev-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.dev-row-btns {
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 10px;
}

.dev-label {
    color: #8899bb;
    font-size: 11px;
    min-width: 90px;
    flex-shrink: 0;
}

#muzeum3d-dev-panel code {
    background: rgba(255, 255, 255, 0.07);
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 12px;
    color: #a8ffce;
    font-family: 'Consolas', monospace;
    flex: 1;
    word-break: break-all;
}

.dev-copy,
#dev-snap-pos {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #aabbdd;
    border-radius: 4px;
    padding: 2px 8px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.15s;
    white-space: nowrap;
}

.dev-copy:hover,
#dev-snap-pos:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

#dev-snap-pos {
    font-size: 12px;
    padding: 5px 12px;
}

.dev-hint {
    font-size: 11px;
    color: #6677aa;
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Mentett pozíciók */
#dev-saved-list {
    margin-top: 8px;
    max-height: 160px;
    overflow-y: auto;
}

.dev-saved-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    padding: 6px 8px;
    font-size: 11px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    color: #c8d0e8;
}

.dev-saved-item strong {
    color: #f0c040;
    margin-right: 4px;
}

.dev-saved-item code {
    background: rgba(255, 255, 255, 0.06);
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 11px;
}

.dev-copy-item {
    margin-left: auto;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #8899bb;
    border-radius: 3px;
    padding: 1px 6px;
    cursor: pointer;
    font-size: 11px;
}

.dev-copy-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* =============================================
   INFO PANEL (Bal oldali hotspot infó)
   ============================================= */

#muzeum3d-info-panel {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 320px;
    background: #14243be0;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    z-index: 40;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
    color: #e8eaf6;
    font-family: 'Segoe UI', sans-serif;
}

#muzeum3d-info-panel.visible {
    transform: translateX(0);
}

.info-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.info-panel-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.03em;
}

.info-panel-close {
    background: none;
    border: none;
    color: #8899bb;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color 0.2s;
}

.info-panel-close:hover {
    color: #ff6b6b;
}

.info-panel-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.info-panel-section {
    margin-bottom: 20px;
}

.info-panel-label {
    display: block;
    font-size: 12px;
    color: #8899bb;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.info-panel-textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e8eaf6;
    border-radius: 6px;
    padding: 10px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.info-panel-textarea:focus {
    outline: none;
    border-color: #6c8ef5;
}

.info-panel-coord-row {
    display: flex;
    gap: 8px;
}

.info-panel-coord {
    flex: 1;
    width: 0;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #a8ffce;
    border-radius: 4px;
    padding: 6px 4px;
    font-family: 'Consolas', monospace;
    font-size: 12px;
    text-align: center;
    box-sizing: border-box;
}

.info-panel-coord:focus {
    outline: none;
    border-color: #f0c040;
}

/* Kisebb képernyőkön mondjuk lógjon be alulról vagy legyen teljes képernyős, de most marad oldalról csúszó, csak keskenyebb */
@media (max-width: 500px) {
    #muzeum3d-info-panel {
        width: 100%;
        max-width: 320px;
    }
}