/* TAMBAHAN CSS UNTUK MOBILE CATEGORIES - Letakkan di bagian akhir frontend.css */

/* ===========================================
   MOBILE CATEGORIES STRIP ENHANCEMENT
   =========================================== */

/* Mobile Categories Container */
.mobile-categories-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}

/* Enhanced Mobile Category Links */
.mobile-category-link {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-500);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all var(--transition-normal) cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    min-width: fit-content;
}

/* Shimmer effect */
.mobile-category-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

/* Hover states */
.mobile-category-link:hover {
    color: var(--gray-800);
    background: rgba(255, 255, 255, 1);
    border-color: rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
    z-index: 2;
}

.mobile-category-link:hover::before {
    left: 100%;
}

/* Active states */
.mobile-category-link.active {
    color: var(--gray-900);
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    border-color: #dc2626;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.mobile-category-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #dc2626, #ef4444);
    border-radius: 1px;
}

/* Icon spacing in mobile categories */
.mobile-category-link i {
    margin-right: 4px;
    font-size: 10px;
    opacity: 0.8;
}

.mobile-category-link.active i {
    opacity: 1;
    color: #dc2626;
}

/* Scrollbar styling untuk mobile categories */
.mobile-categories-scroll {
    overflow-x: auto;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* Internet Explorer 10+ */
}

.mobile-categories-scroll::-webkit-scrollbar {
    display: none;
    /* WebKit */
}

/* Animation untuk mobile categories saat load */
.mobile-category-link {
    animation: slideInFromBottom 0.3s ease-out;
    animation-fill-mode: both;
}

.mobile-category-link:nth-child(1) {
    animation-delay: 0ms;
}

.mobile-category-link:nth-child(2) {
    animation-delay: 50ms;
}

.mobile-category-link:nth-child(3) {
    animation-delay: 100ms;
}

.mobile-category-link:nth-child(4) {
    animation-delay: 150ms;
}

.mobile-category-link:nth-child(5) {
    animation-delay: 200ms;
}

.mobile-category-link:nth-child(6) {
    animation-delay: 250ms;
}

.mobile-category-link:nth-child(7) {
    animation-delay: 300ms;
}

.mobile-category-link:nth-child(8) {
    animation-delay: 350ms;
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Enhanced responsive design untuk mobile categories */
@media (max-width: 640px) {
    .mobile-category-link {
        font-size: 10px;
        padding: 6px 10px;
        border-radius: 14px;
    }

    .mobile-category-link i {
        font-size: 9px;
        margin-right: 3px;
    }
}

@media (max-width: 480px) {
    .mobile-category-link {
        font-size: 9px;
        padding: 5px 8px;
        border-radius: 12px;
        letter-spacing: 0.015em;
    }

    .mobile-category-link i {
        font-size: 8px;
        margin-right: 2px;
    }
}

/* Touch optimization untuk mobile */
@media (hover: none) and (pointer: coarse) {
    .mobile-category-link {
        min-height: 36px;
        padding: 8px 14px;
    }

    .mobile-category-link:active {
        transform: scale(0.95);
        background: var(--gray-200);
    }
}

/* Dark mode support untuk mobile categories */
@media (prefers-color-scheme: dark) {
    .mobile-category-link {
        background: rgba(39, 39, 42, 0.8);
        color: #d4d4d8;
        border-color: rgba(255, 255, 255, 0.1);
    }

    .mobile-category-link:hover {
        background: rgba(39, 39, 42, 1);
        color: #ffffff;
    }

    .mobile-category-link.active {
        background: rgba(63, 63, 70, 1);
        color: #ffffff;
    }
}

/* Accessibility improvements */
.mobile-category-link:focus-visible {
    outline: 2px solid var(--gray-800);
    outline-offset: 2px;
    border-radius: 16px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

    .mobile-category-link,
    .mobile-category-link::before,
    .mobile-category-link::after {
        animation: none !important;
        transition: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .mobile-category-link {
        border: 2px solid currentColor;
        background: white;
        color: black;
    }

    .mobile-category-link.active {
        background: black;
        color: white;
    }
}