/* VT360 Frontend Styles */
.vt360-container {
    position: relative;
    background: #111827;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.1);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}
.vt360-container * { box-sizing: border-box; }

.vt360-loading, .vt360-error {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0,0,0,0.6);
    padding: 12px 24px;
    border-radius: 50px;
    backdrop-filter: blur(8px);
}

/* Glassmorphism Controls */
.vt360-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.vt360-nav-btn {
    width: 38px; height: 38px;
    border: none;
    background: transparent;
    color: #4b5563;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s ease;
}
.vt360-nav-btn:hover { background: #e5e7eb; color: #111827; }
.vt360-nav-btn.vt360-left { order: 1; }
.vt360-nav-btn.vt360-up { order: 2; }
.vt360-nav-btn.vt360-down { order: 3; }
.vt360-nav-btn.vt360-right { order: 4; }

.vt360-hotspot-list-btn {
    order: 5;
    margin-left: 4px;
    padding: 8px 16px;
    background: #0f62fe;
    color: #fff;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    display: flex; align-items: center; gap: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(15, 98, 254, 0.3);
}
.vt360-hotspot-list-btn:hover { background: #0353e9; transform: translateY(-1px); }

/* Hotspot Slide-in Panel */
.vt360-hotspot-panel {
    position: fixed;
    right: 20px; top: 50%;
    transform: translateY(-50%) translateX(120%);
    width: 320px; max-height: 80vh;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    z-index: 9999;
    display: flex; flex-direction: column;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.vt360-hotspot-panel.open {
    transform: translateY(-50%) translateX(0);
    opacity: 1;
}

.vt360-panel-header {
    background: #f9fafb;
    color: #111827;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex; justify-content: space-between; align-items: center;
    border-radius: 16px 16px 0 0;
}
.vt360-panel-header h3 { margin: 0; font-size: 16px; font-weight: 600; }
.vt360-panel-close {
    background: #e5e7eb; color: #4b5563;
    border: none; border-radius: 50%;
    width: 28px; height: 28px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
}
.vt360-panel-close:hover { background: #d1d5db; color: #111827; }

.vt360-hotspot-list { padding: 16px; overflow-y: auto; flex-grow: 1; }
.vt360-hotspot-list ul { list-style: none; margin: 0; padding: 0; }
.vt360-hotspot-list li { margin-bottom: 10px; }
.vt360-hotspot-item-btn {
    width: 100%; padding: 12px 16px;
    background: #fff; border: 1px solid #e5e7eb;
    border-radius: 8px; cursor: pointer; text-align: left;
    transition: all 0.2s ease;
    display: flex; align-items: center; gap: 12px;
}
.vt360-hotspot-item-btn:hover { border-color: #0f62fe; box-shadow: 0 4px 12px rgba(0,0,0,0.05); transform: translateY(-1px); }

.hotspot-type-badge {
    padding: 4px 8px; border-radius: 20px;
    font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
    flex-shrink: 0;
}
.vt360-type-info { background: #e0f2fe; color: #0284c7; }
.vt360-type-scene { background: #fee2e2; color: #dc2626; }
.vt360-type-image { background: #dcfce7; color: #16a34a; }
.vt360-type-video { background: #fef9c3; color: #ca8a04; }
.vt360-type-pdf { background: #f3e8ff; color: #9333ea; }
.vt360-type-social { background: #e0e7ff; color: #4f46e5; }
.hotspot-text { flex: 1; font-size: 14px; color: #374151; font-weight: 500;}
.vt360-empty-state { text-align: center; color: #9ca3af; padding: 30px 10px; font-size: 14px;}
.vt360-empty-state i { font-size: 24px; margin-bottom: 10px; display: block;}

/* Modern Modal Overlay */
.vt360-modal {
    position: absolute; z-index: 999999;
    left: 0; top: 0; width: 100%; height: 100%;
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s ease;
}
.vt360-modal.open { opacity: 1; }

.vt360-modal-content {
    background: #fff;
    width: 90%; max-width: 450px;
    position: relative;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden; max-height: 85vh;
    display: flex; flex-direction: column;
    transform: scale(0.95); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.vt360-modal.open .vt360-modal-content { transform: scale(1); }

.vt360-modal-close {
    position: absolute; right: 15px; top: 15px;
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(0,0,0,0.05); color: #4b5563; border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 10; transition: all 0.2s;
}
.vt360-modal-close:hover { background: rgba(0,0,0,0.1); color: #111827; transform: rotate(90deg); }

.vt360-modal-body { overflow-y: auto; flex: 1; padding: 0; }
.vt360-fluid-media { max-width: 100%; height: auto; display: block; border-bottom: 1px solid #f3f4f6;}
.vt360-pdf-frame { width: 100%; height: 60vh; border-radius: 16px; }

.vt360-info-box { padding: 30px 24px; }
.vt360-modal-title { margin: 0 0 12px 0; color: #111827; font-size: 1.25rem; font-weight: 700; line-height: 1.2;}
.vt360-modal-info-content { color: #4b5563; font-size: 0.95rem; line-height: 1.6; }
.vt360-modal-info-content p { margin-top: 0; }
.vt360-modal-caption { padding: 16px 24px; color: #4b5563; font-size: 0.9rem; text-align: center; background: #f9fafb;}

/* Refined Social Panel */
.vt360-social-panel { background: #fff; }
.vt360-social-intro { padding: 30px 24px 20px; background: linear-gradient(to bottom, #f3f4f6, #ffffff); border-bottom: 1px solid #e5e7eb;}
.vt360-social-intro p { margin: 0; color: #6b7280; font-size: 0.9rem;}
.vt360-social-links-list { padding: 15px 24px 24px; display: flex; flex-direction: column; gap: 10px; }

.vt360-social-item {
    display: flex; align-items: center; text-decoration: none;
    padding: 12px 16px; border-radius: 10px;
    background: #f9fafb; border: 1px solid #e5e7eb;
    transition: all 0.2s ease; gap: 16px;
}
.vt360-social-item:hover { background: #fff; border-color: #d1d5db; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); transform: translateY(-2px); }

.vt360-social-icon-wrapper {
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; flex-shrink: 0;
}
.vt360-custom-social-icon { width: 24px; height: 24px; object-fit: contain; }
.vt360-social-text { flex-grow: 1; display: flex; flex-direction: column; }
.vt360-social-name { font-weight: 600; font-size: 15px; color: #111827; }
.vt360-social-caption { font-size: 12px; color: #6b7280; }
.vt360-social-arrow { color: #d1d5db; font-size: 14px; transition: color 0.2s; }
.vt360-social-item:hover .vt360-social-arrow { color: #9ca3af; }

/* In-Scene Markers */
.pnlm-hotspot-base {
    padding: 6px 10px; border-radius: 6px; color: #fff; font-size: 13px; font-weight: 500;
    cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.15); backdrop-filter: blur(4px);
    transition: transform 0.2s;
}
.pnlm-hotspot-base:hover { transform: scale(1.05); }

.vt360-hs-info .pnlm-hotspot-base{background:rgba(2, 132, 199, 0.85)}
.vt360-hs-image .pnlm-hotspot-base{background:rgba(22, 163, 74, 0.85)}
.vt360-hs-video .pnlm-hotspot-base{background:rgba(202, 138, 4, 0.85)}
.vt360-hs-pdf .pnlm-hotspot-base{background:rgba(147, 51, 234, 0.85)}
.vt360-hs-social .pnlm-hotspot-base{background:rgba(79, 70, 229, 0.85)}
.vt360-hs-scene .pnlm-hotspot-base{background:rgba(220, 38, 38, 0.85)}

.vt360-custom-hotspot .pnlm-hotspot-base{background:transparent!important;padding:0;border:none;box-shadow:none;display:flex;flex-direction:column;align-items:center;gap:4px;}
.vt360-custom-hotspot .pnlm-hotspot-base:hover .vt360-hs-icon-txt, 
.vt360-custom-hotspot .pnlm-hotspot-base:hover .vt360-hs-icon-img { transform: scale(1.1); box-shadow: 0 4px 12px rgba(0,0,0,0.3); }

.vt360-hs-icon-img { width:44px; height:44px; border-radius:50%; object-fit:cover; border:3px solid #fff; box-shadow:0 2px 8px rgba(0,0,0,0.2); transition: all 0.2s; }
.vt360-hs-icon-txt { 
    display:inline-flex; align-items:center; justify-content:center;
    width:44px; height:44px; font-size:18px; color:#fff; background:#0f62fe;
    border-radius:50%; border:3px solid #fff; box-shadow:0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.2s; animation: vtPulse 2s infinite;
}

@keyframes vtPulse {
    0% { box-shadow: 0 0 0 0 rgba(15, 98, 254, 0.5); }
    70% { box-shadow: 0 0 0 10px rgba(15, 98, 254, 0); }
    100% { box-shadow: 0 0 0 0 rgba(15, 98, 254, 0); }
}

.vt360-hotspot-label-text {
    font-size: 12px; font-weight: 600; color: #111827; background: #fff;
    padding: 4px 8px; border-radius: 4px; white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

@media (max-width: 600px) {
    .vt360-controls { padding: 6px; border-radius: 30px; }
    .vt360-nav-btn { width: 34px; height: 34px; font-size: 13px; }
    .vt360-hotspot-list-btn { padding: 6px 12px; font-size: 12px; }
    .vt360-hotspot-panel { width: 85%; right: 7.5%; border-radius: 16px; }
    .vt360-modal-content { width: 95%; max-height: 90vh; }
}
