/* 
    Donoride Premium UI System
    Enhancing visuals with CSS GPU Acceleration and Custom Shadow Utilities
*/

:root {
    --premium-gradient: linear-gradient(135deg, #ff6a00, #ff3c00);
    --premium-gradient-hover: linear-gradient(135deg, #ff7b1a, #ff4c0d);
    --premium-shadow: 0 10px 25px rgba(255, 90, 31, .25);
    --premium-shadow-hover: 0 18px 40px rgba(255, 90, 31, .35);
    --premium-radius: 8px;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --card-shadow-hover: 0 25px 60px rgba(0, 0, 0, 0.12);
}

/* 1. Premium Button System */
.btn-premium {
    background: var(--premium-gradient) !important;
    color: white !important;
    border: none !important;
    border-radius: var(--premium-radius) !important;
    padding: 14px 32px !important;
    font-weight: 700 !important;
    font-family: 'Inter', sans-serif !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-size: 13px !important;
    cursor: pointer !important;
    transition: all .4s ease !important;
    box-shadow: var(--premium-shadow) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    text-decoration: none !important;
    position: relative !important;
    overflow: hidden !important;
    will-change: transform, box-shadow !important;
}

.btn-premium:hover {
    transform: translateY(-3px) !important;
    box-shadow: var(--premium-shadow-hover) !important;
    background: var(--premium-gradient-hover) !important;
}

/* 2. Global Card Hover Elevation */
.premium-card {
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1),
        box-shadow 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    box-shadow: var(--card-shadow) !important;
    will-change: transform, box-shadow !important;
}

.premium-card:hover {
    transform: translateY(-12px) !important;
    box-shadow: var(--card-shadow-hover) !important;
}

/* 3. Image Zoom Micro-interaction */
.premium-img-zoom {
    overflow: hidden !important;
    border-radius: inherit;
    position: relative;
}

.premium-img-zoom img {
    transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    will-change: transform !important;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.premium-img-zoom:hover img {
    transform: scale(1.08) !important;
}

/* 4. Input Focus Glow Animation */
.premium-input-glow {
    transition: all 0.3s ease !important;
    border: 1px solid #E5E7EB;
    outline: none !important;
}

.premium-input-glow:focus {
    border-color: #ff6a00 !important;
    box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.1) !important;
    background-color: #fffaf7 !important;
}

/* 5. Icon Hover Bounce */
.premium-icon-hover i {
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
    will-change: transform;
}

.premium-icon-hover:hover i {
    transform: translateY(-5px) scale(1.15);
    color: #ff6a00;
}

/* 6. Animation Safety — GSAP handles the initial hidden state at runtime via gsap.from().
   Do NOT pre-hide animate-* classes with CSS; if JS fails, content would stay permanently invisible. */
/* 6. Premium SweetAlert System */
.swal2-popup {
    border-radius: 20px !important;
    padding: 2.5rem !important;
    font-family: "Inter", sans-serif !important;
    border: 1px solid rgba(255, 90, 31, .1) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.1) !important;
    background: #ffffff !important;
}

.swal2-title {
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #111 !important;
    margin-bottom: 0.5rem !important;
}

.swal2-html-container {
    font-size: 15px !important;
    color: #555 !important;
    line-height: 1.6 !important;
}

.swal2-styled.swal2-confirm {
    background: var(--premium-gradient) !important;
    border-radius: 12px !important;
    padding: 12px 35px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    box-shadow: var(--premium-shadow) !important;
    transition: all .3s ease !important;
    border: none !important;
}

.swal2-styled.swal2-confirm:hover {
    transform: translateY(-2px) !important;
    box-shadow: var(--premium-shadow-hover) !important;
}

.swal2-styled.swal2-cancel {
    border-radius: 12px !important;
    background: #f3f4f6 !important;
    color: #4b5563 !important;
    font-weight: 700 !important;
    padding: 12px 35px !important;
    border: none !important;
}

.swal2-icon.swal2-success {
    border-color: #ff6a00 !important;
    color: #ff6a00 !important;
}

.swal2-icon.swal2-success [class^=swal2-success-line] {
    background-color: #ff6a00 !important;
}

.swal2-icon.swal2-success .swal2-success-ring {
    border: .25em solid rgba(255, 106, 0, .2) !important;
}

/* 7. Premium Advertisement Popup System */
.dr-ads-popup {
    background: #fff url('{{ asset("brain/86f00027-cc6d-4863-bca7-6e409122621d/promo_popup_background_1775208726724.png") }}') no-repeat center center !important;
    background-size: cover !important;
    border-radius: 24px !important;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.25) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(5px);
    overflow: hidden !important;
    padding: 0 !important;
}

.ads-content-inner {
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.7);
    height: 100%;
}

.ads-tag {
    font-size: 13px;
    font-weight: 700;
    color: #ff6a00;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease backwards;
}

.ads-promo-text {
    font-size: 64px;
    font-weight: 800;
    color: #111;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    animation: fadeInUp 1s 0.2s ease backwards;
}

.ads-description {
    font-size: 16px;
    color: #444;
    max-width: 80%;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
    animation: fadeInUp 1.2s 0.4s ease backwards;
}

.btn-ads-claim {
    background: linear-gradient(135deg, #111, #333) !important;
    color: white !important;
    padding: 18px 50px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    border: none !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    cursor: pointer;
    font-size: 14px;
    animation: fadeInUp 1.4s 0.6s ease backwards;
}

.btn-ads-claim:hover {
    transform: scale(1.05) translateY(-3px) !important;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15) !important;
    background: #000 !important;
}

/* 8. Ultimate Preloader V4 — High-Fidelity Pure CSS Cinematic Car */
.dr-preloader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #ffffff;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                visibility 0.8s;
}

.dr-preloader.dr-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.dr-loader-container-v4 {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 500px;
}

/* Premium CSS Car Body */
.premium-css-car {
    position: relative;
    width: 320px;
    height: 120px;
    margin-bottom: 60px;
    animation: carBounce 0.4s infinite ease-in-out alternate;
    will-change: transform;
}

.car-body-v4 {
    position: absolute;
    bottom: 30px;
    width: 100%;
    height: 65px;
    background: linear-gradient(to bottom, #ff4a2d, #d32f2f);
    border-radius: 40px 100px 30px 25px;
    box-shadow: inset 0 10px 15px rgba(255,255,255,0.3), 
                0 15px 30px rgba(211, 47, 47, 0.3);
}

.car-cabin-v4 {
    position: absolute;
    top: 0;
    left: 60px;
    width: 160px;
    height: 55px;
    background: rgba(30, 30, 30, 0.85);
    border-radius: 60px 80px 0 0;
    clip-path: polygon(25% 0%, 75% 0%, 100% 100%, 0% 100%);
    border: 2px solid rgba(255,255,255,0.1);
}

.car-cabin-v4::after {
    content: '';
    position: absolute;
    top: 5px; left: 50%; width: 2px; height: 100%;
    background: rgba(255,255,255,0.1);
    transform: translateX(-50%);
}

/* Wheels */
.car-wheel-v4 {
    position: absolute;
    bottom: 0;
    width: 60px;
    height: 60px;
    background: #1a1a1a;
    border-radius: 50%;
    border: 5px solid #333;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.car-wheel-v4.front { right: 45px; }
.car-wheel-v4.back { left: 45px; }

/* Alloy Spokes Animation */
.car-wheel-v4::before {
    content: '';
    width: 40px; height: 4px;
    background: #555;
    border-radius: 2px;
    animation: wheelSpin 0.3s infinite linear;
}

.car-wheel-v4::after {
    content: '';
    width: 4px; height: 40px;
    background: #555;
    border-radius: 2px;
    position: absolute;
    animation: wheelSpin 0.3s infinite linear;
}

/* Under-car Shadow */
.car-shadow-v4 {
    position: absolute;
    bottom: -15px; left: 50%;
    width: 250px; height: 15px;
    background: rgba(0,0,0,0.15);
    transform: translateX(-50%);
    filter: blur(8px);
    border-radius: 50%;
    animation: shadowPulse 0.4s infinite ease-in-out alternate;
}

/* Loading Text V4 */
.dr-loading-text-v4 {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.loading-word-v4 {
    font-size: 20px;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: 4px;
    text-transform: uppercase;
    animation: wordGlow 2s infinite ease-in-out;
}

.loading-word-v4 span { color: #ff4a2d; }

@keyframes carBounce {
    from { transform: translateY(0); }
    to { transform: translateY(-5px); }
}

@keyframes wheelSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes shadowPulse {
    from { width: 250px; opacity: 0.15; }
    to { width: 270px; opacity: 0.1; }
}

@keyframes wordGlow {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); color: #ff4a2d; }
}



