/*
 * AvigoCabs shared stylesheet
 * Loaded globally via includes/header.php
 */

:root {
    --app-safe-top: env(safe-area-inset-top, 0px);
    --app-safe-right: env(safe-area-inset-right, 0px);
    --app-safe-bottom: env(safe-area-inset-bottom, 0px);
    --app-safe-left: env(safe-area-inset-left, 0px);
}

html {
    scroll-behavior: smooth;
    background: #f8fafc;
}

body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    -webkit-tap-highlight-color: transparent;
}

body.app-shell {
    padding-left: var(--app-safe-left);
    padding-right: var(--app-safe-right);
}

.pb-safe {
    padding-bottom: max(0.5rem, var(--app-safe-bottom));
}

#navbar {
    backdrop-filter: saturate(180%) blur(16px);
}

.site-install-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(4.5rem + var(--app-safe-bottom));
    z-index: 55;
    padding: 0 1rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(1rem);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.site-install-banner.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.site-install-banner__card {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    border: 1px solid rgba(59, 130, 246, 0.16);
    border-radius: 1.25rem;
    padding: 0.95rem 1rem;
    background: rgba(15, 23, 42, 0.94);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
    backdrop-filter: blur(18px);
}

.site-install-banner__copy {
    min-width: 0;
    flex: 1;
}

.site-install-banner__title {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: #f8fafc;
}

.site-install-banner__text {
    margin: 0.2rem 0 0;
    font-size: 0.75rem;
    line-height: 1.4;
    color: rgba(226, 232, 240, 0.84);
}

.site-install-banner__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-install-banner__button {
    border: 0;
    border-radius: 999px;
    padding: 0.7rem 0.95rem;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
}

.site-install-banner__dismiss {
    border: 0;
    border-radius: 999px;
    padding: 0.55rem;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(248, 250, 252, 0.88);
}

@media (display-mode: standalone) {
    #navbar {
        padding-top: max(0.25rem, var(--app-safe-top));
    }

    .site-install-banner {
        display: none;
    }
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 12px)); }
}

.animate-marquee {
    animation: marquee 30s linear infinite;
}

.animate-marquee:hover {
    animation-play-state: paused;
}

.animate-marquee-slow {
    animation: marquee 40s linear infinite;
}

.animate-marquee-slow:hover {
    animation-play-state: paused;
}

.offer-card {
    flex-shrink: 0;
    width: 320px;
    cursor: pointer;
}

@media (min-width: 768px) {
    .offer-card {
        width: 480px;
    }
}

@media (min-width: 1024px) {
    .offer-card {
        width: 560px;
    }
}
