/**
 * Categories Section Styles
 * Matching Next.js CategoriesSection component exactly
 * 
 * @component CategoriesSection
 * @version 1.0.0
 */

/* Categories Section Container - matching Next.js */
.modeo-categories-section {
    position: relative;
    width: 100%;
}

/* Ensure SVG icons are properly sized and styled - matching Next.js CustomIcon */
.modeo-category-icon {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    flex-shrink: 0; /* Prevent icon from shrinking */
}

/* SVG icon color change on hover - matching Next.js behavior */
.group:hover .modeo-category-icon {
    filter: brightness(0) saturate(100%) invert(20%) sepia(94%) saturate(7476%) hue-rotate(351deg) brightness(93%) contrast(81%);
}

/* Category Card Wrapper - ensures full height */
.modeo-category-card-wrapper {
    height: 100%;
}

/* Category Card - base styles matching Next.js */
.modeo-category-card {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.modeo-category-card:hover,
.modeo-category-card:focus {
    text-decoration: none;
    color: inherit;
    outline: none;
}

/* Ensure proper line clamping for descriptions */
.modeo-category-card .line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive grid adjustments - matching Next.js CategoriesGrid */
@media (max-width: 640px) {
    .modeo-categories-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .modeo-categories-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .modeo-categories-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

@media (min-width: 1025px) {
    .modeo-categories-grid {
        grid-template-columns: repeat(5, 1fr) !important;
    }
}

