/* LiveLocal Custom Styles */

@keyframes pulse-slow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.animate-pulse-slow { animation: pulse-slow 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }


/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #1e293b; }
::-webkit-scrollbar-thumb { background: #475569; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #64748b; }

/* Pull to refresh */
.ptr-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.ptr-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}
.ptr-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(254, 187, 0, 0.2);
    border-top-color: #febb00;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.ptr-arrow {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}
.ptr-arrow.flipped {
    transform: rotate(180deg);
}

/* Add to homescreen banner */
.a2hs-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: linear-gradient(135deg, #8f0000 0%, #6a0000 100%);
    padding: 16px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}
.a2hs-banner.visible {
    transform: translateY(0);
}

/* Modal - bottom sheet */
.modal-overlay {
    opacity: 0;
    pointer-events: none;
}
.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}
.modal-panel {
    transform: translateY(100%);
}
.modal-overlay.open .modal-panel {
    transform: translateY(0);
}
.modal-overlay.animating,
.modal-overlay.animating .modal-panel {
    transition: all 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}

/* Drag handle */
.drag-handle {
    width: 36px;
    height: 5px;
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
    margin: 0 auto 16px auto;
}

/* Glass effect */
.glass-bg {
    background: rgba(15, 23, 42, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Ezoic button - nearly invisible but technically present */
#ezPrivacyCenter,
span#ezPrivacyCenter {
    opacity: 0.05 !important;
    transform: scale(0.5) !important;
    bottom: 5px !important;
    left: 5px !important;
    background: transparent !important;
    border: none !important;
}

#ezPrivacyCenter:hover,
span#ezPrivacyCenter:hover {
    opacity: 0.8 !important;
    transform: scale(1) !important;
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    border-radius: 8px !important;
}

#ezPrivacyCenter svg,
#ezPrivacyCenter img {
    filter: grayscale(100%) brightness(1.5) !important;
}

/* M28 Traffic Cameras */
.cam-tile:active {
    transform: scale(0.97);
    transition: transform 0.1s ease;
}
.cam-tile video {
    background: #0f172a;
}
#cam-featured video {
    background: #0f172a;
}
