/**
 * Category Icons Frontend Styles
 * Shadcn/UI inspired styling for displaying category icons on the frontend
 */

/* Category icon containers */
.category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}

.category-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    transition: all 0.2s ease;
}

/* Category list with icons */
.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.category-list-item {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    transition: all 0.2s ease;
    gap: 8px;
}

.category-list-item:hover {
    background-color: #e2e8f0;
    border-color: #cbd5e1;
    color: #475569;
    text-decoration: none;
    transform: translateY(-1px);
}

.category-list-item:hover .category-icon svg {
    color: #3b82f6;
}

/* Category badges (smaller version) */
.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    background-color: #f1f5f9;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.category-badge:hover {
    color: #3b82f6;
    background-color: #dbeafe;
    text-decoration: none;
}

.category-badge .category-icon svg {
    width: 14px;
    height: 14px;
}

/* Header/hero category navigation */
.category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin: 32px 0;
}

.category-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    min-width: 120px;
    background-color: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    color: #64748b;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.category-nav-item:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.category-nav-item .category-icon {
    margin-right: 0;
    margin-bottom: 8px;
}

.category-nav-item .category-icon svg {
    width: 32px;
    height: 32px;
}

.category-nav-item .category-name {
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
}

/* Responsive design */
@media (max-width: 768px) {
    .category-nav {
        gap: 12px;
        margin: 24px 0;
    }
    
    .category-nav-item {
        min-width: 100px;
        padding: 12px;
    }
    
    .category-nav-item .category-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .category-nav-item .category-name {
        font-size: 14px;
    }
    
    .category-list {
        gap: 8px;
    }
    
    .category-list-item {
        padding: 6px 12px;
        font-size: 14px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .category-list-item {
        background-color: #1e293b;
        border-color: #475569;
        color: #cbd5e1;
    }
    
    .category-list-item:hover {
        background-color: #334155;
        border-color: #64748b;
        color: #e2e8f0;
    }
    
    .category-badge {
        background-color: #1e293b;
        color: #cbd5e1;
    }
    
    .category-badge:hover {
        background-color: #1e40af;
        color: #dbeafe;
    }
    
    .category-nav-item {
        background-color: #1e293b;
        border-color: #475569;
        color: #cbd5e1;
    }
    
    .category-nav-item:hover {
        border-color: #60a5fa;
        color: #60a5fa;
    }
}