/* ================================================
   MODERN CATEGORY PANEL STYLES
   Clean, modern design with glassmorphism effects
   ================================================ */

/* ===================================
   MAIN PANEL CONTAINER
   =================================== */
.category-navigation-panel {
    position: sticky;
    top: 60px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 245, 255, 0.98) 100%);
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1040;
    margin: 10px 25px;
    border-bottom: 1px solid rgba(200, 106, 226, 0.15);
    box-shadow: 0 4px 12px rgba(200, 106, 226, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.4s 
cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px;
}

/* Enhanced shadow on scroll */
.category-navigation-panel.scrolled {
    box-shadow: 
        0 6px 20px rgba(200, 106, 226, 0.12),
        0 2px 6px rgba(0, 0, 0, 0.08);
}

/* ===================================
   SCROLL CONTAINER
   =================================== */
.cat-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

.cat-scroll-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

/* ===================================
   ITEMS WRAPPER
   =================================== */
.cat-items-wrapper {
    display: flex;
    gap: 24px;
    padding: 16px 24px;
    align-items: center;
    justify-content: flex-start;
    min-height: 80px;
    scroll-behavior: smooth;
}

/* Center items on desktop */
@media (min-width: 992px) {
        .cat-items-wrapper {
        justify-content: center;
        gap: 60px;
        padding: 10px 32px;
        min-height: 100px;
    }
}

/* ===================================
   CATEGORY ITEM
   =================================== */
.cat-single-item {
    flex: 0 0 auto;
    min-width: 100px;
    max-width: 110px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 8px 5px;
    border-radius: 16px;
    cursor: pointer;
    text-decoration: none;
    color: #4a4a4a;
    /* background: rgba(255, 255, 255, 0.7); */
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Hover state - Modern lift effect */
.cat-single-item:hover {
    transform: translateY(-4px);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(248, 245, 255, 0.95) 100%
    );
    box-shadow: 
        0 8px 24px rgba(200, 106, 226, 0.2),
        0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: rgba(200, 106, 226, 0.3);
    color: rgb(160, 80, 200);
}

/* Active state - Selected category */
.cat-single-item.cat-active {
    background: linear-gradient(135deg, 
        rgba(200, 106, 226, 0.12) 0%, 
        rgba(248, 245, 255, 0.95) 100%
    );
    box-shadow: 
        0 6px 20px rgba(200, 106, 226, 0.25),
        0 3px 10px rgba(0, 0, 0, 0.06);
    border-color: rgba(200, 106, 226, 0.4);
    color: rgb(160, 80, 200);
    transform: translateY(-2px);
}

/* Active item glow effect */
.cat-single-item.cat-active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, 
        rgba(200, 106, 226, 0.15) 0%, 
        transparent 70%
    );
    z-index: -1;
    opacity: 0;
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1); }
}

/* ===================================
   ICON CIRCLE
   =================================== */
.cat-icon-circle {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, 
        rgba(200, 106, 226, 0.08) 0%, 
        rgba(200, 106, 226, 0.15) 100%
    );
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 12px rgba(200, 106, 226, 0.12),
        inset 0 1px 3px rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(200, 106, 226, 0.1);
    position: relative;
    overflow: hidden;
}

/* Inner glow effect */
.cat-icon-circle::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    border-radius: 50%;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.6) 0%, 
        rgba(255, 255, 255, 0.1) 100%
    );
    pointer-events: none;
}

/* Hover effect on icon circle */
.cat-single-item:hover .cat-icon-circle {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, 
        rgba(200, 106, 226, 0.15) 0%, 
        rgba(200, 106, 226, 0.25) 100%
    );
    box-shadow: 
        0 6px 18px rgba(200, 106, 226, 0.25),
        inset 0 1px 3px rgba(255, 255, 255, 0.6);
}

/* Active state icon */
.cat-single-item.cat-active .cat-icon-circle {
    transform: scale(1.08);
    background: linear-gradient(135deg, 
        rgba(200, 106, 226, 0.2) 0%, 
        rgba(200, 106, 226, 0.35) 100%
    );
    box-shadow: 
        0 6px 20px rgba(200, 106, 226, 0.35),
        inset 0 2px 4px rgba(255, 255, 255, 0.5);
    border-color: rgba(200, 106, 226, 0.3);
}

/* ===================================
   ICON IMAGE
   =================================== */
.cat-icon-image {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(200, 106, 226, 0.3));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

/* Hover effect on image */
.cat-single-item:hover .cat-icon-image {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(200, 106, 226, 0.4));
}

/* Active state image */
.cat-single-item.cat-active .cat-icon-image {
    transform: scale(1.05);
    filter: drop-shadow(0 3px 6px rgba(160, 80, 200, 0.5));
}

/* ===================================
   LABEL TEXT
   =================================== */
.cat-item-label {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
    color: inherit;
    text-align: center;
    word-wrap: break-word;
    max-width: 100%;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
}

/* Hover effect on label */
.cat-single-item:hover .cat-item-label {
    transform: translateY(-1px);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* Tablet */
@media (max-width: 991px) {
    .cat-items-wrapper {
        gap: 20px;
        padding: 16px 20px;
    }
    
    .cat-single-item {
        min-width: 70px;
        max-width: 85px;
    }
    
    .cat-icon-circle {
        width: 52px;
        height: 52px;
    }
    
    .cat-icon-image {
        width: 30px;
        height: 30px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .category-navigation-panel {
        top: 55px; /* Mobile navbar height */
    }
    .category-navigation-panel {
    position: sticky;
    top: 55px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 245, 255, 0.98) 100%);
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1040;
    margin: 0px;
    border-bottom: 1px solid rgba(200, 106, 226, 0.15);
    box-shadow: 0 4px 12px rgba(200, 106, 226, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0px;
}
    .cat-items-wrapper {
        gap: 16px;
        padding: 12px 16px;
        min-height: 75px;
    }
    
    .cat-single-item {
        min-width: 65px;
        max-width: 80px;
        padding: 10px 6px;
        gap: 6px;
    }
    
    .cat-icon-circle {
        width: 48px;
        height: 48px;
    }
    
    .cat-icon-image {
        width: 28px;
        height: 28px;
    }
    
    .cat-item-label {
        font-size: 0.7rem;
    }
}

/* Small mobile */
@media (max-width: 576px) {
    .cat-items-wrapper {
        gap: 12px;
        padding: 10px 12px;
    }
    
    .cat-single-item {
        min-width: 60px;
        max-width: 75px;
        padding: 8px 4px;
    }
    
    .cat-icon-circle {
        width: 44px;
        height: 44px;
    }
    
    .cat-icon-image {
        width: 26px;
        height: 26px;
    }
    
    .cat-item-label {
        font-size: 0.65rem;
    }
}

/* ===================================
   DEBUG INFO STYLES
   =================================== */
.cat-debug-info {
    background: #f8f9fa;
    padding: 16px;
    margin: 16px;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.cat-debug-content {
    background: white;
    padding: 12px;
    border-radius: 8px;
    margin-top: 12px;
}

.cat-debug-info details {
    margin-top: 12px;
}

.cat-debug-info summary {
    cursor: pointer;
    color: #6f42c1;
    font-weight: bold;
    padding: 8px;
}

.cat-debug-info summary:hover {
    background: rgba(111, 66, 193, 0.05);
    border-radius: 4px;
}

.cat-debug-info pre {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    margin-top: 8px;
    font-size: 0.8em;
    overflow: auto;
    max-height: 300px;
}

/* ===================================
   ANIMATIONS
   =================================== */

/* Panel slide in */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-navigation-panel {
    animation: slideInDown 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Shimmer effect for loading */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.cat-single-item.loading {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.7) 0%,
        rgba(248, 245, 255, 0.9) 50%,
        rgba(255, 255, 255, 0.7) 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* ===================================
   ACCESSIBILITY
   =================================== */

/* Focus styles for keyboard navigation */
.cat-single-item:focus {
    outline: 3px solid rgba(200, 106, 226, 0.5);
    outline-offset: 2px;
}

.cat-single-item:focus:not(:focus-visible) {
    outline: none;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .cat-single-item,
    .cat-icon-circle,
    .cat-icon-image,
    .category-navigation-panel {
        transition: none;
        animation: none;
    }
}

/* ===================================
   PRINT STYLES
   =================================== */
@media print {
    .category-navigation-panel {
        display: none;
    }
}