/* ============================================ */
/* CATEGORY CARDS - Modern Design */
/* ============================================ */

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.category-card {
    background: linear-gradient(145deg, #2A2738 0%, #252035 100%);
    border-radius: 12px;
    padding: 16px 20px;
    text-decoration: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 14px;
    border: 1px solid rgba(146, 141, 171, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    min-height: 70px;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.15);
}

.category-card:hover::before {
    opacity: 1;
}

.category-card:active {
    transform: translateY(-2px);
}

/* Category Icon */
.category-icon {
    font-size: 28px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.category-card:hover .category-icon {
    transform: scale(1.1);
    background: rgba(99, 102, 241, 0.15);
}

/* Category Info */
.category-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
}

.category-info h3 {
    font-size: 14px;
    font-weight: 600;
    color: #FFFFFF;
    margin: 0;
    line-height: 1.3;
    transition: color 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-card:hover .category-info h3 {
    color: #818cf8;
}

.category-info p {
    font-size: 12px;
    color: #928DAB;
    margin: 0;
    line-height: 1.4;
    transition: color 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-card:hover .category-info p {
    color: #a8a3bd;
}

/* Category Count Badge */
.category-count {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(99, 102, 241, 0.2);
    color: #818cf8;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 10px;
    border: 1px solid rgba(99, 102, 241, 0.3);
    z-index: 2;
    transition: all 0.3s ease;
}

.category-card:hover .category-count {
    background: rgba(99, 102, 241, 0.3);
    border-color: #6366f1;
}

/* Loading State */
.categories-grid.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Stagger Animation */
.category-card {
    animation: fadeInUp 0.6s ease backwards;
}

.category-card:nth-child(1) { animation-delay: 0.1s; }
.category-card:nth-child(2) { animation-delay: 0.15s; }
.category-card:nth-child(3) { animation-delay: 0.2s; }
.category-card:nth-child(4) { animation-delay: 0.25s; }
.category-card:nth-child(5) { animation-delay: 0.3s; }
.category-card:nth-child(6) { animation-delay: 0.35s; }
.category-card:nth-child(7) { animation-delay: 0.4s; }
.category-card:nth-child(8) { animation-delay: 0.45s; }
.category-card:nth-child(9) { animation-delay: 0.5s; }
.category-card:nth-child(10) { animation-delay: 0.55s; }

/* Responsive */
@media (max-width: 1200px) {
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 14px;
    }

    .category-card {
        padding: 14px 18px;
    }

    .category-icon {
        font-size: 26px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .category-card {
        padding: 12px 16px;
    }

    .category-icon {
        font-size: 24px;
        width: 36px;
        height: 36px;
    }

    .category-info h3 {
        font-size: 13px;
    }

    .category-info p {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

