/**
 * SlotsJuice Categories Widget Styles
 * Responsive design with goldilocks zone scaling and mobile optimization
 */

:root {
    /* SlotsJuice Brand Colors */
    --juice-orange: #FF6B35;
    --juice-orange-dark: #E55A2B;
    --juice-orange-light: #FF8A65;
    --juice-cream: #FFF8E1;
    --juice-green: #2E7D32;
    --juice-white: #FFFFFF;
    --juice-dark: #1A1A1A;
    
    /* Gradients */
    --juice-gradient: linear-gradient(135deg, #FF6B35, #E55A2B);
    --juice-gradient-light: linear-gradient(135deg, #FF8A65, #FF6B35);
    --juice-gradient-hero: linear-gradient(135deg, #FF6B35 0%, #E55A2B 50%, #FF8A65 100%);
    
    /* Border Radius */
    --juice-radius: 12px;
    --juice-radius-large: 20px;
    --juice-radius-drop: 50% 50% 50% 50% / 60% 60% 40% 40%;
    
    /* Goldilocks Zone - Fluid Typography and Spacing */
    --fluid-min-width: 320;
    --fluid-max-width: 1400;
    --fluid-screen: 100vw;
    --fluid-bp: calc(
        (var(--fluid-screen) - var(--fluid-min-width) / 16 * 1rem) /
        (var(--fluid-max-width) - var(--fluid-min-width))
    );
}

/* Widget Container Reset */
.slotsjuice-categories-widget {
    position: relative;
    width: 100%;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.slotsjuice-categories-widget * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Categories Section */
.slotsjuice-categories-widget .categories {
    padding: clamp(20px, 4vw, 40px) 0;
    background: #ffffff;
    position: relative;
    width: 100%;
}

.slotsjuice-categories-widget .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(10px, 2vw, 20px);
    width: 100%;
}

.slotsjuice-categories-widget .categories-wrapper {
    background: #ffffff;
    border: 2px solid rgba(255, 107, 53, 0.2);
    border-radius: var(--juice-radius-large);
    padding: clamp(25px, 5vw, 50px) clamp(15px, 4vw, 40px) clamp(40px, 6vw, 80px);
    box-shadow: 0 8px 32px rgba(255, 107, 53, 0.1);
    position: relative;
    width: 100%;
}

/* Hero Header - Kompakt narancs stílus */
.slotsjuice-categories-widget .categories-header {
    text-align: center;
    margin-bottom: clamp(15px, 3vw, 25px);
    padding: clamp(10px, 2vw, 15px) clamp(15px, 3vw, 20px);
    background: var(--juice-gradient-hero);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.slotsjuice-categories-widget .categories-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-3px) rotate(180deg); }
}

.slotsjuice-categories-widget .categories-header > * {
    position: relative;
    z-index: 2;
}

/* Header Top - Icon és Slot Reels egy sorban */
.slotsjuice-categories-widget .header-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 2vw, 15px);
    margin-bottom: clamp(5px, 1vw, 8px);
}

.slotsjuice-categories-widget .header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(28px, 5vw, 40px);
    height: clamp(28px, 5vw, 40px);
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    animation: juiceGlow 3s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(255, 165, 0, 0.3);
}

@keyframes juiceGlow {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(255, 165, 0, 0.3), 0 0 30px rgba(255, 107, 53, 0.2);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 30px rgba(255, 165, 0, 0.5), 0 0 40px rgba(255, 107, 53, 0.3);
        transform: scale(1.05);
    }
}

.slotsjuice-categories-widget .header-icon i {
    font-size: clamp(0.9rem, 2vw, 1.3rem);
    background: linear-gradient(45deg, #ffd700, #ff8c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    animation: juiceSwirl 4s ease-in-out infinite;
}

@keyframes juiceSwirl {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-5deg) scale(1.1); }
    75% { transform: rotate(5deg) scale(0.95); }
}

/* Slot Machine Reels - Kompakt */
.slotsjuice-categories-widget .slot-reels {
    display: flex;
    gap: clamp(3px, 1vw, 6px);
    justify-content: center;
}

.slotsjuice-categories-widget .reel {
    display: inline-block;
    font-size: clamp(0.8rem, 2vw, 1.1rem);
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    padding: clamp(2px, 0.5vw, 3px) clamp(3px, 1vw, 6px);
    backdrop-filter: blur(10px);
    animation: spinReel 2s ease-in-out infinite;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.2);
}

.slotsjuice-categories-widget .reel:nth-child(1) { animation-delay: 0s; }
.slotsjuice-categories-widget .reel:nth-child(2) { animation-delay: 0.3s; }
.slotsjuice-categories-widget .reel:nth-child(3) { animation-delay: 0.6s; }

@keyframes spinReel {
    0%, 100% { transform: rotateY(0deg); }
    50% { transform: rotateY(180deg); }
}

/* Small Juice Drops in Header - Kompakt */
.slotsjuice-categories-widget .juice-drops-header {
    display: flex;
    justify-content: center;
    gap: clamp(5px, 1.5vw, 10px);
    margin-top: clamp(2px, 1vw, 5px);
    opacity: 0.6;
}

.slotsjuice-categories-widget .drop-small {
    width: clamp(3px, 1vw, 6px);
    height: clamp(3px, 1vw, 6px);
    background: var(--juice-orange-light);
    border-radius: var(--juice-radius-drop);
    animation: headerDropFloat 3s ease-in-out infinite;
}

.slotsjuice-categories-widget .drop-small:nth-child(1) { animation-delay: 0s; }
.slotsjuice-categories-widget .drop-small:nth-child(2) { animation-delay: 1s; }
.slotsjuice-categories-widget .drop-small:nth-child(3) { animation-delay: 2s; }

@keyframes headerDropFloat {
    0%, 100% { transform: translateY(0px) scale(1); opacity: 0.7; }
    50% { transform: translateY(-3px) scale(1.2); opacity: 1; }
}

.slotsjuice-categories-widget .categories-title {
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: clamp(5px, 1.5vw, 8px);
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    line-height: 1.2;
}

.slotsjuice-categories-widget .categories-title .highlight {
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255,215,0,0.3);
}

.slotsjuice-categories-widget .categories-subtitle {
    font-size: clamp(0.75rem, 2vw, 0.9rem);
    color: rgba(255, 255, 255, 0.9);
    max-width: 450px;
    margin: 0 auto clamp(2px, 1vw, 5px);
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Category Grid */
.slotsjuice-categories-widget .category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: clamp(8px, 3vw, 20px);
    margin-top: clamp(15px, 3vw, 25px);
}

.slotsjuice-categories-widget .category-card {
    background: #ffffff;
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 12px;
    padding: clamp(12px, 3vw, 25px) clamp(8px, 2.5vw, 20px);
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    box-shadow: 0 2px 4px rgba(255, 107, 53, 0.1);
}

.slotsjuice-categories-widget .category-card:hover {
    background: var(--juice-cream);
    border-color: var(--juice-orange-light);
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.15);
}

.slotsjuice-categories-widget .category-card i {
    font-size: clamp(1.5rem, 3vw, 2rem);
    background: var(--juice-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: clamp(8px, 2vw, 15px);
    display: block;
}

.slotsjuice-categories-widget .category-card .category-title {
    font-size: clamp(0.9rem, 2vw, 1rem);
    font-weight: 500;
    color: var(--juice-dark);
    margin-bottom: clamp(4px, 1.5vw, 8px);
    line-height: 1.3;
}

.slotsjuice-categories-widget .category-card p {
    color: rgba(44, 62, 80, 0.6);
    font-size: clamp(0.75rem, 1.8vw, 0.85rem);
    margin-bottom: 0;
    line-height: 1.4;
}

/* Dropdown Menu - Grid design */
.slotsjuice-categories-widget .category-menu {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: opacity 0.3s ease, max-height 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
    border: 2px solid rgba(255, 107, 53, 0.15);
    border-radius: 12px;
    box-shadow: 
        0 10px 30px rgba(255, 107, 53, 0.15),
        0 4px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: absolute;
    bottom: 100%;
    left: 50%;
    width: clamp(300px, 50vw, 380px);
    z-index: 1000;
    margin-bottom: 15px;
    transform: translateX(-50%) translateY(10px) scale(0.95);
    backdrop-filter: blur(10px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0;
}

/* Kis nyíl a menü és kártya között */
.slotsjuice-categories-widget .category-menu::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid rgba(255, 107, 53, 0.15);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    z-index: 1;
}

.slotsjuice-categories-widget .category-menu::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid #ffffff;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    z-index: 2;
}

.slotsjuice-categories-widget .category-card:hover .category-menu,
.slotsjuice-categories-widget .category-card.active .category-menu {
    opacity: 1;
    max-height: 280px;
    visibility: visible;
    padding: 18px;
    transform: translateX(-50%) translateY(0) scale(1);
}

.slotsjuice-categories-widget .category-menu-item {
    display: flex;
    align-items: center;
    padding: clamp(10px, 2vw, 14px) clamp(8px, 2vw, 12px);
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.2s ease, border 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    background: transparent;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.slotsjuice-categories-widget .category-menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1), transparent);
    transition: left 0.5s ease;
}

.slotsjuice-categories-widget .category-menu-item:hover {
    background: linear-gradient(135deg, var(--juice-cream), #fff9f0);
    border: 1px solid rgba(255, 107, 53, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.15);
}

.slotsjuice-categories-widget .category-menu-item:hover::before {
    left: 100%;
}

.slotsjuice-categories-widget .category-menu-item i {
    font-size: 1rem;
    margin-right: 10px;
    min-width: 16px;
    background: var(--juice-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.slotsjuice-categories-widget .category-menu-item:hover i {
    transform: scale(1.1);
    filter: drop-shadow(0 2px 4px rgba(255, 107, 53, 0.3));
}

.slotsjuice-categories-widget .item-text {
    display: flex;
    flex-direction: column;
}

.slotsjuice-categories-widget .item-title {
    color: var(--juice-dark);
    font-weight: 600;
    font-size: clamp(0.75rem, 1.8vw, 0.85rem);
    line-height: 1.3;
    transition: color 0.3s ease;
}

.slotsjuice-categories-widget .item-subtitle {
    color: rgba(44, 62, 80, 0.6);
    font-size: clamp(0.7rem, 1.5vw, 0.75rem);
    margin-top: 2px;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.slotsjuice-categories-widget .category-menu-item:hover .item-title {
    color: var(--juice-orange-dark);
}

.slotsjuice-categories-widget .category-menu-item:hover .item-subtitle {
    color: rgba(44, 62, 80, 0.8);
}

/* Floating Juice Drops */
.slotsjuice-categories-widget .juice-drop {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--juice-orange-light);
    border-radius: var(--juice-radius-drop);
    opacity: 0.1;
    animation: dropFloat 4s ease-in-out infinite;
}

.slotsjuice-categories-widget .juice-drop:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.slotsjuice-categories-widget .juice-drop:nth-child(2) { top: 20%; right: 15%; animation-delay: 1s; }
.slotsjuice-categories-widget .juice-drop:nth-child(3) { bottom: 15%; left: 20%; animation-delay: 2s; }
.slotsjuice-categories-widget .juice-drop:nth-child(4) { bottom: 10%; right: 10%; animation-delay: 3s; }

@keyframes dropFloat {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-5px) scale(1.1); }
}

/* Responsive Design - Tablet */
@media (max-width: 1024px) {
    .slotsjuice-categories-widget .categories {
        padding: clamp(15px, 3vw, 30px) 0;
    }

    .slotsjuice-categories-widget .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: clamp(10px, 2.5vw, 15px);
        margin-top: clamp(15px, 3vw, 20px);
    }
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
    .slotsjuice-categories-widget .categories {
        padding: clamp(8px, 2vw, 15px) 0;
    }

    .slotsjuice-categories-widget .container {
        padding: 0 clamp(5px, 1.5vw, 10px);
    }

    .slotsjuice-categories-widget .categories-wrapper {
        padding: clamp(15px, 3vw, 20px) clamp(8px, 2vw, 15px) clamp(25px, 4vw, 40px);
        margin: 0;
        border-radius: 12px;
    }

    .slotsjuice-categories-widget .categories-header {
        padding: clamp(8px, 2vw, 10px) clamp(10px, 2.5vw, 15px);
        margin-bottom: clamp(10px, 2vw, 15px);
        border-radius: 10px;
    }

    .slotsjuice-categories-widget .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(8px, 2vw, 12px);
        margin-top: clamp(15px, 3vw, 20px);
    }

    .slotsjuice-categories-widget .category-card {
        padding: clamp(10px, 2.5vw, 15px) clamp(8px, 2vw, 12px);
        border-radius: 8px;
        transition: all 0.2s ease;
        -webkit-tap-highlight-color: rgba(255, 107, 53, 0.2);
        tap-highlight-color: rgba(255, 107, 53, 0.2);
    }

    .slotsjuice-categories-widget .category-card:active {
        background: var(--juice-cream);
        border-color: var(--juice-orange-light);
        transform: scale(0.98);
        box-shadow: 0 2px 8px rgba(255, 107, 53, 0.15);
    }

    .slotsjuice-categories-widget .category-card:active i {
        transform: scale(1.1);
        filter: drop-shadow(0 2px 4px rgba(255, 107, 53, 0.3));
    }

    .slotsjuice-categories-widget .category-card:active .category-title {
        color: var(--juice-orange-dark);
    }
}

/* Responsive Design - Small Mobile */
@media (max-width: 480px) {
    .slotsjuice-categories-widget .categories {
        padding: 8px 0;
    }

    .slotsjuice-categories-widget .container {
        padding: 0;
        max-width: 100%;
    }

    .slotsjuice-categories-widget .categories-wrapper {
        padding: clamp(10px, 2.5vw, 15px) clamp(5px, 1.5vw, 8px) clamp(20px, 4vw, 25px);
        margin: 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .slotsjuice-categories-widget .categories-header {
        padding: clamp(6px, 1.5vw, 8px) clamp(8px, 2vw, 10px);
        margin-bottom: clamp(8px, 2vw, 10px);
        border-radius: 6px;
    }

    .slotsjuice-categories-widget .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(6px, 1.5vw, 8px);
        margin-top: clamp(12px, 2.5vw, 15px);
    }

    .slotsjuice-categories-widget .category-card {
        padding: clamp(8px, 2vw, 12px) clamp(6px, 1.5vw, 8px);
        position: relative;
        border-radius: 8px;
        transition: all 0.2s ease;
        -webkit-tap-highlight-color: rgba(255, 107, 53, 0.2);
        tap-highlight-color: rgba(255, 107, 53, 0.2);
    }

    /* Mobile Modal Overlay */
    .slotsjuice-categories-widget .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.65);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        z-index: 9999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.25s ease;
    }

    .slotsjuice-categories-widget .modal-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Mobile Modal Content */
    .slotsjuice-categories-widget .modal-content {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.8);
        background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
        border: 2px solid rgba(255, 107, 53, 0.2);
        border-radius: 16px;
        box-shadow: 
            0 25px 80px rgba(255, 107, 53, 0.2),
            0 10px 30px rgba(0, 0, 0, 0.15),
            0 0 0 1px rgba(255, 107, 53, 0.1);
        max-width: 92vw;
        max-height: 85vh;
        width: 360px;
        z-index: 10000;
        transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
        overflow: hidden;
    }

    .slotsjuice-categories-widget .modal-overlay.active .modal-content {
        transform: translate(-50%, -50%) scale(1);
    }

    /* Modal Header */
    .slotsjuice-categories-widget .modal-header {
        background: var(--juice-gradient-hero);
        padding: 15px 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-radius: 14px 14px 0 0;
        margin: -2px -2px 0 -2px;
    }

    .slotsjuice-categories-widget .modal-title {
        color: white;
        font-size: 1.1rem;
        font-weight: 600;
        text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    }

    .slotsjuice-categories-widget .modal-close {
        background: rgba(255, 255, 255, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s ease;
        backdrop-filter: blur(10px);
    }

    .slotsjuice-categories-widget .modal-close:active {
        background: rgba(255, 255, 255, 0.4);
        transform: scale(0.95);
    }

    .slotsjuice-categories-widget .modal-close i {
        color: white;
        font-size: 0.9rem;
    }

    /* Modal Body */
    .slotsjuice-categories-widget .modal-body {
        padding: 20px;
        max-height: calc(85vh - 80px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .slotsjuice-categories-widget .modal-menu-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .slotsjuice-categories-widget .modal-menu-item {
        display: flex;
        align-items: center;
        padding: 15px 12px;
        border-radius: 10px;
        text-decoration: none;
        transition: all 0.25s ease;
        background: transparent;
        border: 1px solid rgba(255, 107, 53, 0.1);
        position: relative;
        overflow: hidden;
    }

    .slotsjuice-categories-widget .modal-menu-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1), transparent);
        transition: left 0.5s ease;
    }

    .slotsjuice-categories-widget .modal-menu-item:active,
    .slotsjuice-categories-widget .modal-menu-item:focus {
        background: linear-gradient(135deg, var(--juice-cream), #fff9f0);
        border: 1px solid rgba(255, 107, 53, 0.4);
        transform: scale(0.98);
        box-shadow: 0 4px 12px rgba(255, 107, 53, 0.25);
    }

    .slotsjuice-categories-widget .modal-menu-item:active::before,
    .slotsjuice-categories-widget .modal-menu-item:focus::before {
        left: 100%;
    }

    /* Touch feedback for better mobile experience */
    .slotsjuice-categories-widget .modal-menu-item {
        -webkit-tap-highlight-color: rgba(255, 107, 53, 0.2);
        tap-highlight-color: rgba(255, 107, 53, 0.2);
    }

    .slotsjuice-categories-widget .modal-menu-item i {
        font-size: 1rem;
        margin-right: 10px;
        min-width: 18px;
        background: var(--juice-gradient);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        transition: all 0.3s ease;
    }

    .slotsjuice-categories-widget .modal-menu-item:active i,
    .slotsjuice-categories-widget .modal-menu-item:focus i {
        transform: scale(1.15);
        filter: drop-shadow(0 2px 6px rgba(255, 107, 53, 0.4));
    }

    .slotsjuice-categories-widget .modal-item-text {
        display: flex;
        flex-direction: column;
    }

    .slotsjuice-categories-widget .modal-item-title {
        color: var(--juice-dark);
        font-weight: 600;
        font-size: 0.85rem;
        line-height: 1.3;
        transition: color 0.3s ease;
    }

    .slotsjuice-categories-widget .modal-item-subtitle {
        color: rgba(44, 62, 80, 0.6);
        font-size: 0.7rem;
        margin-top: 2px;
        line-height: 1.2;
        transition: color 0.3s ease;
    }

    .slotsjuice-categories-widget .modal-menu-item:active .modal-item-title,
    .slotsjuice-categories-widget .modal-menu-item:focus .modal-item-title {
        color: var(--juice-orange-dark);
        font-weight: 700;
    }

    .slotsjuice-categories-widget .modal-menu-item:active .modal-item-subtitle,
    .slotsjuice-categories-widget .modal-menu-item:focus .modal-item-subtitle {
        color: rgba(44, 62, 80, 0.9);
    }

    /* Hide original dropdown menu on mobile */
    .slotsjuice-categories-widget .category-menu {
        display: none !important;
    }
}

/* High DPI/Retina display optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi), (min-resolution: 2dppx) {
    .slotsjuice-categories-widget .categories-header,
    .slotsjuice-categories-widget .category-card,
    .slotsjuice-categories-widget .category-menu {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .slotsjuice-categories-widget *,
    .slotsjuice-categories-widget *::before,
    .slotsjuice-categories-widget *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus styles for accessibility */
.slotsjuice-categories-widget .category-card:focus,
.slotsjuice-categories-widget .category-menu-item:focus,
.slotsjuice-categories-widget .modal-menu-item:focus {
    outline: 2px solid var(--juice-orange);
    outline-offset: 2px;
}