/* PowVibes Weather - Custom Styles */

/* Safe area insets for notched phones */
.safe-top { padding-top: env(safe-area-inset-top); }
.safe-bottom { padding-bottom: env(safe-area-inset-bottom); }

/* Hide scrollbar but keep scrollable */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Custom thin scrollbar for desktop */
@media (min-width: 1024px) {
    main::-webkit-scrollbar { width: 6px; }
    main::-webkit-scrollbar-track { background: transparent; }
    main::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.15);
        border-radius: 3px;
    }
    main::-webkit-scrollbar-thumb:hover {
        background: rgba(255,255,255,0.25);
    }
}

/* Glass morphism card variant */
.glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animated weather icon container */
#weatherIcon svg {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

/* Tab content fade-in animation for list items */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

[x-show] [x-for] > * {
    animation: fadeSlideUp 0.3s ease-out both;
}

/* Pulse dot for active alerts */
@keyframes alertPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Snap scroll for hourly */
.snap-x { scroll-snap-type: x mandatory; }
.snap-start { scroll-snap-align: start; }

/* Line clamp */
.line-clamp-4 {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* PWA standalone mode adjustments */
@media (display-mode: standalone) {
    body { padding-top: env(safe-area-inset-top); }
}

/* Print friendly */
@media print {
    nav, .safe-bottom, button { display: none !important; }
    body { background: white !important; color: black !important; }
}

/* Temperature number uses tabular figures for stable layout */
.tabular-nums { font-variant-numeric: tabular-nums; }

/* Smooth page transitions */
[x-transition\:enter] {
    will-change: opacity, transform;
}

/* Map container needs explicit height */
#radarMap {
    min-height: 300px;
}

/* Loading skeleton shimmer */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 0.5rem;
}
