/* -----------------------------------------------------------------
 * Alfaz Trading Elementor Widgets - Core Stylesheet
 * Custom CSS, Radial Glow Highlights, Hazard Stripes, Brutal Cards,
 * Animations, Modals, Toast Notifications & Responsive Enhancements
 * ----------------------------------------------------------------- */

/* Base Font & Dark Background Defaults */
.alfaz-widget-wrapper {
    background-color: #060709;
    color: #f3f4f6;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    width: 100%;
}

.font-bebas {
    font-family: 'Bebas Neue', cursive, sans-serif !important;
    letter-spacing: 0.03em;
}

.font-display {
    font-family: 'Outfit', sans-serif !important;
}

/* Universal Button Reset for Theme / Browser Overrides */
.alfaz-widget-wrapper button,
.alfaz-widget-wrapper button:focus,
.alfaz-widget-wrapper button:active,
.alfaz-widget-wrapper button:hover {
    outline: none !important;
    box-shadow: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.alfaz-widget-wrapper button:not([class*="border"]) {
    border: none !important;
}

/* Radial Glow Highlights matching index.html */
.hero-amber-glow {
    background: radial-gradient(circle, rgba(234, 179, 8, 0.35) 0%, rgba(234, 179, 8, 0.08) 45%, rgba(6, 7, 9, 0) 75%);
}

.card-yellow-glow {
    background: radial-gradient(circle at center top, rgba(234, 179, 8, 0.25) 0%, rgba(13, 14, 18, 0.95) 70%);
}

.card-green-glow {
    background: radial-gradient(circle at center top, rgba(16, 185, 129, 0.25) 0%, rgba(13, 14, 18, 0.95) 70%);
}

.card-red-glow {
    background: radial-gradient(circle at center top, rgba(239, 68, 68, 0.3) 0%, rgba(13, 14, 18, 0.95) 70%);
}

.card-cyan-glow {
    background: radial-gradient(circle at center top, rgba(6, 182, 212, 0.25) 0%, rgba(13, 14, 18, 0.95) 70%);
}

/* Hazard Caution Stripe Banner Pattern */
.hazard-stripe {
    background: repeating-linear-gradient(-45deg,
            #eab308,
            #eab308 14px,
            #060709 14px,
            #060709 28px);
}

/* Glassmorphic Brutal Cards */
.brutal-card {
    background: rgba(20, 22, 29, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.brutal-card:hover {
    border-color: rgba(234, 179, 8, 0.5);
    box-shadow: 0 0 25px -5px rgba(234, 179, 8, 0.2);
}

/* Floating Circle Badge Pulse Animation */
@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
    100% {
        transform: scale(0.95);
        opacity: 0.8;
    }
}

.pulse-ring {
    animation: pulse-ring 3s infinite ease-in-out;
}

/* Marquee Scrolling Banner Animation */
@keyframes marquee {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

.animate-marquee {
    display: flex;
    width: max-content;
    animation: marquee 22s linear infinite;
}

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

/* Prevent Elementor default container padding conflicts & eliminate gaps */
.elementor-widget-alfaz_header,
.elementor-widget-alfaz_footer,
.elementor-widget-alfaz_homepage,
.elementor-widget-alfaz_about,
.elementor-widget-alfaz_accident_claim_page,
.elementor-widget-alfaz_recovery_page,
.elementor-widget-alfaz_repair_page {
    margin: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

.elementor-widget-alfaz_footer .elementor-widget-container,
.alfaz-widget-wrapper footer {
    margin: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Modal and Drawer Z-Index & Overlay Overrides */
.alfaz-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.alfaz-cart-drawer-container {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    z-index: 99999;
    width: 100%;
    max-width: 20rem;
    background-color: #060709;
    border-left: 1px solid #1c1f29;
    transition: transform 0.3s ease-in-out;
}

/* Hide theme header/footer when global plugin header/footer injected */
body.alfaz-active-global header.site-header,
body.alfaz-active-global footer.site-footer,
body.alfaz-active-global div.header-main,
body.alfaz-active-global div.footer-main {
    display: none !important;
}

/* Responsive Fixes */
@media (max-width: 640px) {
    .font-bebas.text-5xl {
        font-size: 2.75rem !important;
        line-height: 1 !important;
    }
    .font-bebas.text-7xl,
    .font-bebas.text-8xl {
        font-size: 3.25rem !important;
        line-height: 1 !important;
    }
}
