/**
 * Featured Install widget (class PL_Featured_Install_Widget).
 * Lifted from the prior hand-coded HTML-widget panel. Hotspot left/top come
 * from per-item generated CSS (Offset X/Y sliders via `selectors`), not from
 * this file. Square corners throughout; the pulsing dot stays circular
 * (semantic hotspot indicator, allowed by the square-corners rule).
 */

.pl-install-panel {
    position: relative;
    margin-top: 20px;
    border-radius: 0;
    overflow: hidden;
    border: 1px solid #e5e5e3;
    aspect-ratio: 16 / 9;
    background: #1a1a1a;
}
.pl-install-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pl-install-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(26,26,26,0.85) 0%, rgba(26,26,26,0.20) 50%, rgba(26,26,26,0) 100%); }

/* padding + compensating negative margin expands the touch/hover target to ~44px
   while keeping the 20px dot visually pinned to its image feature (mobile tap comfort). */
.pl-hotspot { position: absolute; background: none; border: 0; padding: 12px; margin: -12px; cursor: pointer; z-index: 5; border-radius: 0; }
/* Hello reset paints bare <button> hover/focus #CC3366 + white text — keep hotspot transparent */
.pl-hotspot:hover,
.pl-hotspot:focus,
.pl-hotspot:active { background: none; color: inherit; }
.pl-hotspot-dot { position: relative; display: block; width: 20px; height: 20px; border-radius: 50%; background: #D16D32; box-shadow: 0 0 0 2px #fff, 0 0 15px rgba(0,0,0,0.5); }
.pl-hotspot-dot::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; background: rgba(209,109,50,0.55); animation: pl-pulse 2s ease-in-out infinite; z-index: -1; }
@keyframes pl-pulse {
    0%   { transform: scale(0.85); opacity: 0.7; }
    70%  { transform: scale(1.6);  opacity: 0; }
    100% { transform: scale(1.6);  opacity: 0; }
}

.pl-hotspot-tooltip {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 240px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 0;
    box-shadow: 0 12px 32px rgba(0,0,0,0.25);
    padding: 14px 16px;
    text-align: left;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
}
.pl-hotspot:hover .pl-hotspot-tooltip,
.pl-hotspot:focus .pl-hotspot-tooltip { opacity: 1; }
.pl-hotspot-tooltip--right { left: 28px; }
.pl-hotspot-tooltip--left { right: 28px; }
.pl-hotspot-eyebrow { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: #40A3A1; font-weight: 600; white-space: normal; }
.pl-hotspot-title { font-family: 'Cabin', sans-serif; font-size: 15px; font-weight: 600; color: #1a1a1a; margin-top: 4px; white-space: normal; }
.pl-hotspot-desc { font-size: 12px; color: rgba(26,26,26,0.70); margin: 4px 0 0; line-height: 1.45; white-space: normal; }

.pl-install-caption {
    position: absolute;
    bottom: 20px;
    left: 24px;
    right: 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    color: #FBFAF6;
    pointer-events: none;
}
.pl-install-eyebrow { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: rgba(251,250,246,0.70); font-weight: 600; }
.pl-install-title { font-family: 'Cabin', sans-serif; font-size: 22px; font-weight: 600; margin-top: 4px; }
.pl-install-cta {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #40A3A1;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 0;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    transition: background .15s, color .15s;
}
.pl-install-cta:hover,
.pl-install-cta:focus { background: #D16D32; color: #fff; }

@media (prefers-reduced-motion: reduce) {
    .pl-hotspot-dot::before { animation: none; }
}
