/* Phone Nav (Video) preview styles */

.phone-nav-preview {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-nav-preview.hidden {
    display: none;
}

.pn-frame {
    position: relative;
    width: 360px;
    aspect-ratio: 9 / 16;
    border-radius: 28px;
    overflow: hidden;
    background: #0a0a0f;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5),
                0 0 0 6px #1a1a1f,
                0 0 0 8px #2a2a2f;
}

#pn-mapbox-map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.pn-logo-overlay {
    position: absolute;
    top: 3%;
    left: 50%;
    transform: translateX(-50%);
    width: 52.25%;
    height: auto;
    z-index: 5;
    pointer-events: none;
    user-select: none;
    /* drop-shadow filter respects the PNG's alpha channel — the shadow
       hugs the logo's actual silhouette, not its bounding box. */
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.55))
            drop-shadow(0 0 2px rgba(0, 0, 0, 0.35));
}

.pn-loading {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 15, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #fff;
    font-size: 13px;
    z-index: 10;
}

.pn-loading.hidden {
    display: none;
}

/* Style picker grid */
.pn-style-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.pn-style-btn, .rm-style-btn {
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
}

.pn-style-btn:hover, .rm-style-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.pn-style-btn.active, .rm-style-btn.active {
    background: linear-gradient(135deg, rgba(77, 184, 184, 0.3), rgba(77, 184, 184, 0.15));
    border-color: #4DB8B8;
    color: #fff;
}

.pn-style-name {
    display: block;
}

/* Hide Mapbox attribution / logo for cleaner preview look */
.pn-frame .mapboxgl-ctrl-logo,
.pn-frame .mapboxgl-ctrl-attrib {
    display: none !important;
}

/* Range slider sizing */
#phone-nav-fields input[type="range"] {
    width: 100%;
}
