/* app/static/css/dropup-menu.css
   Layer-4 dropup menu for the 360 viewer info bar.
   Anchored to bottom of trigger, opens upward, glass-card aesthetic.
*/

.p360-dropup-trigger {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f5f5f5;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 150ms ease, border-color 150ms ease;
}
.p360-dropup-trigger:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
}
.p360-dropup-trigger[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.p360-dropup-panel {
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    min-width: 280px;
    max-height: 60vh;
    overflow-y: auto;
    background: rgba(20, 20, 20, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    backdrop-filter: blur(16px);
    padding: 8px;
    box-sizing: border-box;
    transform: translateY(8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 150ms ease, opacity 150ms ease;
    z-index: 100;
}
.p360-dropup-panel[data-state="open"] {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.p360-dropup-panel hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 8px 0;
}

.p360-dropup-panel section {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.p360-dropup-panel button,
.p360-dropup-panel a[data-action] {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    background: transparent;
    border: none;
    color: #f5f5f5;
    padding: 10px 12px;
    border-radius: 6px;
    font: inherit;
    text-align: left;
    cursor: pointer;
    text-decoration: none;
    transition: background 100ms ease;
}
.p360-dropup-panel button:hover,
.p360-dropup-panel a[data-action]:hover {
    background: rgba(255, 255, 255, 0.06);
}
.p360-dropup-panel i {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.p360-dropup-panel button[data-action="hero-toggle"][data-state="in-hero"] i {
    color: #e13e13; /* brand */
}

.p360-dropup-panel details.dropup-model-details {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    padding: 8px 12px;
}
.p360-dropup-panel details.dropup-model-details summary {
    cursor: pointer;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
}
.p360-dropup-panel details.dropup-model-details[open] summary {
    margin-bottom: 8px;
}

.p360-dropup-panel .views-count {
    color: rgba(255, 255, 255, 0.6);
    padding: 4px 12px;
    font-size: 13px;
}

/* Hide elements moved into the dropup. Layer 4 toggles these classes
   on the existing vendor-rendered nodes after init. */
.p360-info-bar .p360-info-fullsettings,
.p360-info-bar .p360-info-fullsettings-body,
.p360-info-bar .p360-info-details,
.p360-info-bar .p360-info-model,
.p360-info-bar .p360-info-config,
.p360-info-bar .gallery-infobar-btn--share,
.p360-info-bar .gallery-infobar-btn--views,
.p360-info-bar .gallery-infobar-btn--download,
.p360-info-bar .gallery-infobar-btn--copy {
    /* Default: keep visible. Layer 4 adds .moved-to-dropup to hide. */
}
.p360-info-bar .moved-to-dropup {
    display: none !important;
}
