/* eBay Smart Theme Styles */

/* Dynamic Theme Colors with eBay Brand Defaults */
:root {
    --primary-color: #3665F3;
    --secondary-color: #191919;
    --accent-color: #E53238;
    --ebay-blue: #3665F3;
    --ebay-red: #E53238;
    --ebay-yellow: #F5AF02;
    --ebay-green: #008A00;
    --ebay-light-blue: #EBF2FF;
    --ebay-bg-subtle: #F7F7F8;
    --primary-rgb: 54, 101, 243;
    --secondary-rgb: 25, 25, 25;
    --accent-rgb: 229, 50, 56;
    --livewire-progress-bar-color: #3665F3;
}

/* Suppress Livewire Default Top Progress Bar */
#nprogress,
.livewire-progress-bar,
#livewire-progress,
#global-page-progress-bar {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* eBay Native Activity Indicator Overlay (without text) */
#ebay-activity-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999999 !important;
    pointer-events: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#ebay-activity-overlay.ebay-loading {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

#ebay-activity-backdrop {
    position: absolute !important;
    inset: 0 !important;
    background-color: rgba(255, 255, 255, 0.76) !important;
    backdrop-filter: blur(3.5px) !important;
    -webkit-backdrop-filter: blur(3.5px) !important;
}

.dark #ebay-activity-backdrop {
    background-color: rgba(15, 23, 42, 0.72) !important;
}

#ebay-activity-card {
    position: relative !important;
    z-index: 10 !important;
    background: #FFFFFF !important;
    border: 1px solid #E5E5E5 !important;
    border-radius: 9999px !important;
    width: 68px !important;
    height: 68px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    transform: scale(0.9) !important;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    user-select: none !important;
}

.dark #ebay-activity-card {
    background: #1E293B !important;
    border-color: #334155 !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45) !important;
}

#ebay-activity-overlay.ebay-loading #ebay-activity-card {
    transform: scale(1) !important;
}

.ebay-spinner-ring {
    width: 36px;
    height: 36px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ebay-spinner-ring svg,
.ebay-spinner-svg {
    animation: ebay-spin 0.85s linear infinite !important;
    transform-origin: center !important;
}

@keyframes ebay-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@layer utilities {
    .glass-effect {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1px solid rgba(0, 0, 0, 0.08);
    }
    .glass-light {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(0, 0, 0, 0.06);
    }
    .glow-blue {
        box-shadow: 0 0 25px rgba(54, 101, 243, 0.25);
    }
    .glow-hover:hover {
        box-shadow: 0 10px 25px -5px rgba(54, 101, 243, 0.3);
    }
    .text-gradient {
        background: linear-gradient(135deg, #3665F3 0%, #191919 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    .text-gradient-ebay {
        background: linear-gradient(135deg, #E53238 0%, #3665F3 35%, #F5AF02 70%, #008A00 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    .hero-product-title {
        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        word-break: break-word;
        line-height: 1.25 !important;
        padding-top: 2px !important;
        padding-bottom: 2px !important;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

[x-cloak] {
    display: none !important;
}

/* eBay Smart: Pure Crisp Light Design */
:root, html, body {
    color-scheme: light !important;
}

/* Dedicated Stepper High Contrast Styling for Light & Dark Mode */
.stepper-pill {
    background-color: #f1f5f9;
    color: #475569;
}
.stepper-pill.active {
    background-color: var(--primary-color, #3665F3);
    color: #ffffff;
}

/* Fix browser auto-fill styles to match eBay clean inputs */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    -webkit-text-fill-color: #191919;
    -webkit-box-shadow: 0 0 0px 1000px #ffffff inset;
    transition: background-color 5000s ease-in-out 0s;
}

/* eBay Product Card Lift */
.ebay-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.ebay-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.08);
}

/* eBay Pill Button Styles */
.btn-ebay-primary {
    background-color: #3665F3;
    color: #ffffff;
    font-weight: 600;
    border-radius: 9999px;
    transition: background-color 0.15s ease, transform 0.1s ease;
}
.btn-ebay-primary:hover {
    background-color: #2B52CC;
}
.btn-ebay-primary:active {
    transform: scale(0.98);
}

.btn-ebay-secondary {
    background-color: #ffffff;
    color: #3665F3;
    border: 1.5px solid #3665F3;
    font-weight: 600;
    border-radius: 9999px;
    transition: all 0.15s ease;
}
.btn-ebay-secondary:hover {
    background-color: #EBF2FF;
}

/* Category Bubble */
.ebay-category-bubble {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.ebay-category-bubble:hover {
    transform: translateY(-3px);
}
.ebay-category-bubble:hover img {
    transform: scale(1.06);
}

/* eBay Native Pagination & Aspect Navigation */
.ebay-pagination-container {
    user-select: none;
}
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

