/* Top Article Categories - Frontend Styles */
.tac-categories-container {
    margin: 20px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tac-title {
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0073aa;
    color: #23282d;
    font-size: 1.2em;
    font-weight: 600;
}

.tac-categories-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.tac-category {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    transition: box-shadow 0.3s ease;
}

.tac-category:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.tac-category-title {
    margin-top: 0;
    margin-bottom: 10px;
    color: #0073aa;
    font-size: 1.1em;
    font-weight: 600;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.tac-posts-list {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

.tac-post-item {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #eee;
}

.tac-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.tac-post-link {
    color: #333;
    text-decoration: none;
    display: block;
    padding: 3px 0;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.tac-post-link:hover {
    color: #0073aa;
    padding-left: 5px;
}

.tac-post-link:before {
    content: "→";
    margin-right: 8px;
    color: #999;
    font-size: 0.9em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tac-categories-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .tac-category {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .tac-categories-container {
        padding: 12px;
    }
    
    .tac-title {
        font-size: 1.1em;
    }
    
    .tac-category-title {
        font-size: 1em;
    }
}