/**
 * Shared Category Card Styles
 * Reusable styles for category cards across blocks
 */

/* Base card structure */
.pb-category-card {
    display: block;
    position: relative;
}

.pb-category-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

/* Image wrapper with aspect ratio control */
.pb-category-image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #f5f5f5;
    border-radius: 8px;
    /* aspect-ratio set via inline style on card wrapper */
}

.pb-category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.pb-category-link:hover .pb-category-image {
    transform: scale(1.05);
}

/* Category info section */
.pb-category-info {
    padding: 12px 8px;
    text-align: center;
}

.pb-category-name {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
}

.pb-category-count {
    display: block;
    margin-top: 4px;
    font-size: 14px;
    color: #666;
}

/* Card style variants */

/* Default style (current look) */
.pb-category-card--default .pb-category-image-wrapper {
    border-radius: 8px;
}

/* Circular style (for future use) */
.pb-category-card--circle .pb-category-image-wrapper {
    border-radius: 50%;
}

/* Rounded style (for future use) */
.pb-category-card--rounded .pb-category-image-wrapper {
    border-radius: 16px;
}

/* Square style (for future use) */
.pb-category-card--square .pb-category-image-wrapper {
    border-radius: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .pb-category-name {
        font-size: 14px;
    }
    
    .pb-category-count {
        font-size: 12px;
    }
}

