/* Profile Dropdown Styles */
.profile-dropdown .profile-dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.95);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 180px;
    min-width: 160px;
}

.profile-dropdown:hover .profile-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Custom styles for the new design */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-gradient {
    background: #ff6b35;
}

.category-card:hover {
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.auction-card {
    transition: all 0.3s ease;
}

.auction-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.progress-bar {
    background: #ff6b35;
}

.btn-primary {
    background: #ff6b35;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(255, 107, 53, 0.3);
}

.search-dropdown {
    max-height: 300px;
    overflow-y: auto;
    border-top: none;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .5;
    }
}

/* Category Slideover Styles */
#categorySlideOver {
    width: 660px;
    max-width: 90vw;
}

#categorySlideOver.show {
    transform: translateX(0);
}

#categoryOverlay.show {
    opacity: 1;
    visibility: visible;
}

#mobileSearchOverlay.show {
    transform: translateY(0);
}

@media (max-width: 1024px) {
    #categorySlideOver {
        width: 100%;
        max-width: 100vw;
    }

    #categorySlideOver .category-panel,
    #categorySlideOver .subcategory-panel {
        width: 100%;
        max-height: 45vh;
        overflow-y: auto;
    }

    #categorySlideOver .subcategory-panel {
        border-left: 0;
        border-top: 1px solid #e5e7eb;
    }
}

.category-item {
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.category-item:hover {
    background-color: #f8fafc;
    border-left-color: #fabc03;
    transform: translateX(2px);
}

.category-item.active {
    background-color: #fef3c7;
    border-left-color: #fabc03;
    color: #92400e;
}

.subcategory-item {
    transition: all 0.15s ease;
}

.subcategory-item:hover {
    background-color: #ffffff;
    transform: translateX(4px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.category-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.subcategory-loading {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-count {
    background: #e5e7eb;
    color: #6b7280;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 500;
}

/* Search Suggestions Styles */
.animate-fade-in {
    animation: fadeIn 0.2s ease-out;
}

.suggestion-item:hover {
    background-color: #f9fafb;
}

.suggestion-item.selected {
    background-color: #eff6ff;
    border-left: 2px solid #3b82f6;
}

/* Category Navigation Fade Animation Styles */
#categoryNavigation {
    will-change: opacity, transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

@media (prefers-reduced-motion: no-preference) {
    #categoryNavigation {
        transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
            transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

@media (prefers-reduced-motion: reduce) {
    #categoryNavigation {
        transition: opacity 0.1s ease;
    }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 1rem;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    /* Mobile touch targets */
    .mobile-touch-target {
        min-height: 44px;
        min-width: 44px;
    }

    /* Mobile animations */
    .mobile-slide-in {
        animation: mobileSlideIn 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .mobile-slide-out {
        animation: mobileSlideOut 0.3s cubic-bezier(0.55, 0.06, 0.68, 0.19);
    }

    .mobile-fade-in {
        animation: mobileFadeIn 0.2s ease-out;
    }

    .mobile-bounce {
        animation: mobileBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }

    /* Mobile swipe indicators */
    .swipe-indicator {
        position: relative;
    }

    .swipe-indicator::after {
        content: '';
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        width: 3px;
        height: 20px;
        background: #00a09c;
        border-radius: 2px;
        opacity: 0.6;
    }

    /* Mobile notification styles */
    .mobile-notification-panel {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .mobile-notification-item {
        border-left: 3px solid transparent;
        transition: all 0.2s ease;
    }

    .mobile-notification-item.high-priority {
        border-left-color: #ef4444;
        background: rgba(239, 68, 68, 0.05);
    }

    .mobile-notification-item.medium-priority {
        border-left-color: #fabc03;
        background: rgba(250, 188, 3, 0.05);
    }

    .mobile-notification-item.low-priority {
        border-left-color: #00a09c;
        background: rgba(0, 160, 156, 0.05);
    }

    /* Mobile search optimizations */
    .mobile-search-panel {
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
    }

    .mobile-search-input {
        font-size: 16px;
        /* Prevents zoom on iOS */
    }

    /* Mobile menu optimizations */
    .mobile-menu-item {
        padding: 12px 16px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        transition: background-color 0.2s ease;
    }

    .mobile-menu-item:active {
        background-color: rgba(250, 188, 3, 0.1);
    }

    /* Mobile performance optimizations */
    .mobile-optimized {
        will-change: transform;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        transform: translateZ(0);
    }

    /* Mobile haptic feedback simulation */
    .haptic-light:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }

    .haptic-medium:active {
        transform: scale(0.95);
        transition: transform 0.15s ease;
    }

    /* Mobile loading states */
    .mobile-loading {
        position: relative;
        overflow: hidden;
    }

    .mobile-loading::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.2);
        animation: mobileShimmer 1.5s infinite;
    }

    /* Mobile toast notifications */
    .mobile-toast {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    }
}

/* Mobile animations keyframes */
@keyframes mobileSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes mobileSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes mobileFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes mobileBounce {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }

    50% {
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes mobileShimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {

    .mobile-slide-in,
    .mobile-slide-out,
    .mobile-fade-in,
    .mobile-bounce {
        animation: none;
    }

    .mobile-loading::after {
        animation: none;
    }
}

/* Toast Container Styles */
.toast-slide-in {
    transform: translateX(0) !important;
}

.toast-slide-out {
    transform: translateX(100%) !important;
}