/* CH Directory Frontend Styles */
.chd-category-directory {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.chd-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.chd-category-card {
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    background-color: #f8f9fa;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.chd-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    text-decoration: none;
    color: inherit;
}

/* Container Sizes */
.chd-size-small {
    height: 120px;
}

.chd-size-medium {
    height: 180px;
}

.chd-size-big {
    height: 240px;
}

.chd-category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
}

.chd-category-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chd-category-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.3;
    flex: 1;
}

.chd-category-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-left: 15px;
}

.chd-post-count {
    font-size: 20px;
    font-weight: bold;
    color: #007cba;
    line-height: 1;
}

.chd-post-label {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.no-categories {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px 20px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .chd-category-directory {
        padding: 0 15px;
        margin: 20px auto;
    }
    
    .chd-category-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .chd-category-overlay {
        padding: 15px;
    }
    
    .chd-category-content {
        flex-direction: column;
        text-align: center;
    }
    
    .chd-category-meta {
        margin-left: 0;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .chd-size-small,
    .chd-size-medium,
    .chd-size-big {
        height: 150px;
    }
}
