/* ==========================================================================
   Dealership Boilerplate — Extra premium touches
   Developer : Ben de Kooker
   Email     : info@bdekooker.co.za
   Cell      : +27 76 481 8324

   Append this on top of app.css for: glassmorphism, gold shimmer,
   gradient borders, more dramatic shadows, animated gradient text.
   ========================================================================== */

/* ----- Glassmorphism navbar (premium upgrade) ----- */
.navbar-premium {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.navbar-premium.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 8px 32px rgba(13, 59, 102, 0.08);
}

/* ----- Brand icon with gold gradient shimmer ----- */
.navbar-premium .navbar-brand .brand-icon,
.footer-premium .footer-brand .brand-icon {
    position: relative;
    overflow: hidden;
}
.navbar-premium .navbar-brand .brand-icon::before,
.footer-premium .footer-brand .brand-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 60%;
    height: 200%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: rotate(25deg);
    animation: shimmerLogo 4s ease-in-out infinite;
}
@keyframes shimmerLogo {
    0%, 100% { left: -100%; }
    50%, 70% { left: 150%; }
}

/* ----- Premium card with gradient border on hover ----- */
.vehicle-card {
    position: relative;
}
.vehicle-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--bdk-radius);
    padding: 2px;
    background: linear-gradient(135deg, var(--bdk-gold) 0%, transparent 50%, var(--bdk-gold-light) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity .4s ease;
    pointer-events: none;
    z-index: 1;
}
.vehicle-card:hover::before { opacity: 1; }

/* ----- Hero — animated gold underline under the headline ----- */
.hero-premium h1 {
    position: relative;
    display: inline-block;
}
.hero-premium h1::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--bdk-gold), var(--bdk-gold-light));
    border-radius: 2px;
    animation: heroUnderline 1.5s ease-out 0.5s forwards;
}
@keyframes heroUnderline {
    to { width: 80px; }
}

/* ----- Hero eyebrow — pulsing gold dot ----- */
.hero-premium .hero-eyebrow {
    position: relative;
}
.hero-premium .hero-eyebrow::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--bdk-gold);
    border-radius: 50%;
    display: inline-block;
    margin-right: .5rem;
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
    animation: pulseGold 2s infinite;
}
@keyframes pulseGold {
    0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7); }
    70% { box-shadow: 0 0 0 12px rgba(212, 175, 55, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

/* ----- Premium gold gradient text (for headings on light bg) ----- */
.text-gradient-gold {
    background: linear-gradient(135deg, var(--bdk-gold) 0%, var(--bdk-gold-light) 50%, var(--bdk-gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--bdk-gold);
}

/* ----- Premium gold gradient text (navy) ----- */
.text-gradient-navy {
    background: linear-gradient(135deg, var(--bdk-navy) 0%, var(--bdk-navy-deep) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--bdk-navy);
}

/* ----- More dramatic stat numbers with subtle glow ----- */
.stats-section .stat-num {
    text-shadow: 0 0 24px rgba(212, 175, 55, 0.3);
}

/* ----- Premium CTA band — animated background glow ----- */
.cta-band::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatGlow2 12s ease-in-out infinite;
}
@keyframes floatGlow2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(50px, -30px); }
}

/* ----- Premium testimonial cards — gradient quote mark ----- */
.testimonial-card .quote-mark {
    background: linear-gradient(135deg, var(--bdk-gold), var(--bdk-gold-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ----- Premium page hero — animated gold accent ----- */
.page-hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(212, 175, 55, 0.05) 100%);
    pointer-events: none;
}

/* ----- Premium filter card — gold underline under header ----- */
.filter-card .filter-header {
    position: relative;
}
.filter-card .filter-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--bdk-gold), transparent);
}

/* ----- Premium detail price card — gold corner accent ----- */
.detail-price-card {
    position: relative;
    overflow: hidden;
}
.detail-price-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 50%);
    animation: rotateGlow 20s linear infinite;
}
@keyframes rotateGlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ----- PWA install banner ----- */
#pwaInstallBanner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    max-width: 480px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--bdk-navy) 0%, var(--bdk-navy-deep) 100%);
    color: #fff;
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
    z-index: 1080;
    display: none;
    align-items: center;
    gap: 1rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
}
#pwaInstallBanner.show { display: flex; animation: slideUp .4s ease-out; }
@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
#pwaInstallBanner .pwa-banner-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--bdk-gold), var(--bdk-gold-light));
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--bdk-navy-dark);
    font-size: 1.5rem;
    flex-shrink: 0;
}
#pwaInstallBanner .pwa-banner-text { flex: 1; }
#pwaInstallBanner .pwa-banner-text h6 {
    color: #fff;
    margin: 0 0 .15rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: .95rem;
}
#pwaInstallBanner .pwa-banner-text p {
    margin: 0;
    font-size: .8rem;
    color: rgba(255, 255, 255, 0.7);
}
#pwaInstallBanner .pwa-banner-actions {
    display: flex;
    gap: .5rem;
    flex-direction: column;
}
#pwaInstallBanner .btn { padding: .4rem 1rem; font-size: .85rem; }
#pwaInstallBanner .btn-close {
    filter: invert(1);
    opacity: .5;
}
@media (max-width: 575.98px) {
    #pwaInstallBanner { left: 12px; right: 12px; padding: 1rem; }
    #pwaInstallBanner .pwa-banner-icon { width: 40px; height: 40px; font-size: 1.2rem; }
}

/* ----- Customer account dropdown — premium badge on logged-in user ----- */
.navbar-premium .dropdown-toggle::after { display: none; }
.navbar-premium .nav-link .bi-person-circle {
    background: linear-gradient(135deg, var(--bdk-gold), var(--bdk-gold-light));
    color: var(--bdk-navy-dark);
    border-radius: 50%;
    padding: 4px;
    font-size: 1.1rem;
}

/* ----- More dramatic hover lift on cards ----- */
.vehicle-card:hover,
.card-premium:hover {
    transform: translateY(-10px);
    box-shadow:
        0 24px 48px rgba(13, 59, 102, 0.15),
        0 8px 16px rgba(212, 175, 55, 0.1);
}

/* ----- Premium scrollbar ----- */
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--bdk-slate-light), var(--bdk-navy));
    border-radius: 5px;
}